mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@43 bfdf4180-ca20-0410-9c96-a3a8aa849046
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 *diagram;
|
|
QSize diagram_size;
|
|
QString diagram_path;
|
|
qreal diagram_ratio;
|
|
|
|
QGroupBox *setupDimensionsGroupBox();
|
|
QGroupBox *setupOptionsGroupBox();
|
|
|
|
public slots:
|
|
void slot_correctWidth();
|
|
void slot_correctHeight();
|
|
void slot_chooseAFile();
|
|
void slot_check();
|
|
};
|
|
#endif
|