]> Shamusworld >> Repos - architektonas/blob - src/forms/printpreviewoptions.h
7c34ba533a8890384b62a25e65836af9dba254c8
[architektonas] / src / forms / printpreviewoptions.h
1 #ifndef __PRINTPREVIEWOPTIONS_H__
2 #define __PRINTPREVIEWOPTIONS_H__
3
4 #include "ui_printpreviewoptions.h"
5
6 class RS_ActionInterface;
7 class RS_ActionPrintPreview;
8
9 class PrintPreviewOptions: public QWidget
10 {
11         Q_OBJECT
12
13         public:
14                 PrintPreviewOptions(QWidget * parent = 0, Qt::WindowFlags fl = 0);
15                 ~PrintPreviewOptions();
16
17         public slots:
18                 void setAction(RS_ActionInterface * a, bool update);
19                 void updateData();
20                 void center();
21                 void setBlackWhite(bool on);
22                 void fit();
23                 void scale(const QString & s);
24
25         protected:
26                 RS_ActionPrintPreview * action;
27
28         private:
29                 QStringList imperialScales;
30                 QStringList metricScales;
31                 bool updateDisabled;
32
33         private:
34                 Ui::PrintPreviewOptions ui;
35 };
36
37 #endif // QG_PRINTPREVIEWOPTIONS_H