src/dialogs.h

changeset 198
f246725199dc
child 199
10dd5909a50e
equal deleted inserted replaced
197:82a868e9e929 198:f246725199dc
1 #ifndef DIALOGS_H
2 #define DIALOGS_H
3
4 #include <QDialog>
5 #include "common.h"
6
7 class QDialogButtonBox;
8 class QDoubleSpinBox;
9 class QPushButton;
10 class QLineEdit;
11 class QSpinBox;
12 class RadioBox;
13
14 class OverlayDialog : public QDialog {
15 Q_OBJECT
16
17 public:
18 explicit OverlayDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
19
20 str fpath () const;
21 ushort ofsx () const;
22 ushort ofsy () const;
23 double lwidth () const;
24 double lheight () const;
25 int camera () const;
26
27 private:
28 RadioBox* rb_camera;
29 QPushButton* btn_fpath;
30 QLineEdit* le_fpath;
31 QSpinBox* sb_ofsx, *sb_ofsy;
32 QDoubleSpinBox* dsb_lwidth, *dsb_lheight;
33 QDialogButtonBox* dbb_buttons;
34
35 private slots:
36 void slot_fpath ();
37 void slot_help ();
38 void slot_dimensionsChanged ();
39 void fillDefaults (int newcam);
40 };
41
42 #endif // DIALOGS_H

mercurial