src/dialogs.h

changeset 199
10dd5909a50e
parent 198
f246725199dc
child 200
5583af82087e
equal deleted inserted replaced
198:f246725199dc 199:10dd5909a50e
8 class QDoubleSpinBox; 8 class QDoubleSpinBox;
9 class QPushButton; 9 class QPushButton;
10 class QLineEdit; 10 class QLineEdit;
11 class QSpinBox; 11 class QSpinBox;
12 class RadioBox; 12 class RadioBox;
13 template<class T> class CheckBoxGroup;
14 class QLabel;
15 class QAbstractButton;
13 16
14 class OverlayDialog : public QDialog { 17 class OverlayDialog : public QDialog {
15 Q_OBJECT 18 Q_OBJECT
16 19
17 public: 20 public:
37 void slot_help (); 40 void slot_help ();
38 void slot_dimensionsChanged (); 41 void slot_dimensionsChanged ();
39 void fillDefaults (int newcam); 42 void fillDefaults (int newcam);
40 }; 43 };
41 44
45 class ReplaceCoordsDialog : public QDialog {
46 public:
47 explicit ReplaceCoordsDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
48
49 vector<Axis> axes () const;
50 double searchValue () const;
51 double replacementValue () const;
52
53 private:
54 CheckBoxGroup<Axis>* cbg_axes;
55 QLabel* lb_search, *lb_replacement;
56 QDoubleSpinBox* dsb_search, *dsb_replacement;
57 };
58
59 // =============================================================================
60 // SetContentsDialog
61 //
62 // Performs the Set Contents dialog on the given LDObject. Object's contents
63 // are exposed to the user and is reinterpreted if the user accepts the new
64 // contents.
65 // =============================================================================
66 class SetContentsDialog : public QDialog {
67 public:
68 explicit SetContentsDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
69 str text () const;
70 void setObject (LDObject* obj);
71
72 private:
73 QLabel* lb_contents, *lb_errorIcon, *lb_error;
74 QLineEdit* le_contents;
75 };
76
42 #endif // DIALOGS_H 77 #endif // DIALOGS_H

mercurial