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