mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-23 10:30:53 +01:00
Amelioration de l'interface Fichier > Exporter
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@42 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
45
exportdialog.h
Normal file
45
exportdialog.h
Normal file
@@ -0,0 +1,45 @@
|
||||
#ifndef EXPORTDIALOG_H
|
||||
#define EXPORTDIALOG_H
|
||||
#include <QtGui>
|
||||
#include "schema.h"
|
||||
/**
|
||||
Cette classe represente le dialogue permettant d'exporter un schema
|
||||
sous forme d'image selon les desirs de l'utilisateur
|
||||
*/
|
||||
class ExportDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ExportDialog(Schema &, QWidget * = 0);
|
||||
|
||||
private:
|
||||
// elements graphiques
|
||||
QLineEdit *filename;
|
||||
QPushButton *button_browse;
|
||||
QComboBox *format;
|
||||
QSpinBox *width;
|
||||
QSpinBox *height;
|
||||
QCheckBox *keep_aspect_ratio;
|
||||
QCheckBox *export_grid;
|
||||
QCheckBox *keep_colors;
|
||||
QDialogButtonBox *buttons;
|
||||
|
||||
// booleens pour ne pas avoir de boucle lors de l'edition des dimensions de l'image
|
||||
bool dontchangewidth;
|
||||
bool dontchangeheight;
|
||||
|
||||
// elements relatifs au traitement effectue par le dialogue
|
||||
Schema *schema_schema;
|
||||
QSize schema_size;
|
||||
QString schema_path;
|
||||
qreal schema_ratio;
|
||||
|
||||
QGroupBox *setupDimensionsGroupBox();
|
||||
QGroupBox *setupOptionsGroupBox();
|
||||
|
||||
public slots:
|
||||
void slot_correctWidth();
|
||||
void slot_correctHeight();
|
||||
void slot_chooseAFile();
|
||||
void slot_check();
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user