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 |