src/dialogs.h

changeset 262
56f8987f4c7c
parent 259
69a842af73f7
child 266
12e7302f14e9
equal deleted inserted replaced
261:c4ad4e3c6839 262:56f8987f4c7c
19 #ifndef DIALOGS_H 19 #ifndef DIALOGS_H
20 #define DIALOGS_H 20 #define DIALOGS_H
21 21
22 #include <QDialog> 22 #include <QDialog>
23 #include "common.h" 23 #include "common.h"
24 #include "types.h"
24 25
26 class QCheckBox;
25 class QProgressBar; 27 class QProgressBar;
26 class QGroupBox; 28 class QGroupBox;
27 class QDialogButtonBox; 29 class QDialogButtonBox;
28 class QDoubleSpinBox; 30 class QDoubleSpinBox;
29 class QPushButton; 31 class QPushButton;
61 void slot_dimensionsChanged (); 63 void slot_dimensionsChanged ();
62 void fillDefaults (int newcam); 64 void fillDefaults (int newcam);
63 }; 65 };
64 66
65 class ReplaceCoordsDialog : public QDialog { 67 class ReplaceCoordsDialog : public QDialog {
68 Q_OBJECT
69
66 public: 70 public:
67 explicit ReplaceCoordsDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 71 explicit ReplaceCoordsDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
68 72
69 vector< int > axes () const; 73 vector<int> axes () const;
70 double searchValue () const; 74 double searchValue () const;
71 double replacementValue () const; 75 double replacementValue () const;
76 bool any () const;
77 bool rel () const;
72 78
73 private: 79 private:
74 CheckBoxGroup* cbg_axes; 80 CheckBoxGroup* cbg_axes;
75 QLabel* lb_search, *lb_replacement; 81 QLabel* lb_search, *lb_replacement;
76 QDoubleSpinBox* dsb_search, *dsb_replacement; 82 QDoubleSpinBox* dsb_search, *dsb_replacement;
83 QCheckBox* cb_any, *cb_rel;
84
85 private slots:
86 void anyChanged (int state);
77 }; 87 };
78 88
79 // ============================================================================= 89 // =============================================================================
80 // SetContentsDialog 90 // SetContentsDialog
81 // 91 //

mercurial