mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
|
#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
|