src/dialogs.h

changeset 603
47e7773c7841
parent 600
209e3f1f7b2c
child 606
3dd6f343ec06
equal deleted inserted replaced
602:ac1744536b33 603:47e7773c7841
39 class Ui_OverlayUI; 39 class Ui_OverlayUI;
40 class Ui_LDPathUI; 40 class Ui_LDPathUI;
41 class Ui_OpenProgressUI; 41 class Ui_OpenProgressUI;
42 42
43 class OverlayDialog : public QDialog 43 class OverlayDialog : public QDialog
44 { Q_OBJECT 44 {
45 Q_OBJECT
45 46
46 public: 47 public:
47 explicit OverlayDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 48 explicit OverlayDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
48 virtual ~OverlayDialog(); 49 virtual ~OverlayDialog();
49 50
65 void fillDefaults (int newcam); 66 void fillDefaults (int newcam);
66 }; 67 };
67 68
68 // ============================================================================= 69 // =============================================================================
69 class LDrawPathDialog : public QDialog 70 class LDrawPathDialog : public QDialog
70 { Q_OBJECT 71 {
72 Q_OBJECT
71 73
72 public: 74 public:
73 explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0); 75 explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0);
74 virtual ~LDrawPathDialog(); 76 virtual ~LDrawPathDialog();
75 str filename() const; 77 str filename() const;
89 void slot_accept(); 91 void slot_accept();
90 }; 92 };
91 93
92 // ============================================================================= 94 // =============================================================================
93 class OpenProgressDialog : public QDialog 95 class OpenProgressDialog : public QDialog
94 { Q_OBJECT 96 {
97 Q_OBJECT
95 PROPERTY (public, int, Progress, NUM_OPS, STOCK_WRITE) 98 PROPERTY (public, int, Progress, NUM_OPS, STOCK_WRITE)
96 PROPERTY (public, int, NumLines, NUM_OPS, CUSTOM_WRITE) 99 PROPERTY (public, int, NumLines, NUM_OPS, CUSTOM_WRITE)
97 100
98 public: 101 public:
99 explicit OpenProgressDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 102 explicit OpenProgressDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
108 void updateValues(); 111 void updateValues();
109 }; 112 };
110 113
111 // ============================================================================= 114 // =============================================================================
112 class ExtProgPathPrompt : public QDialog 115 class ExtProgPathPrompt : public QDialog
113 { Q_OBJECT 116 {
117 Q_OBJECT
114 118
115 public: 119 public:
116 explicit ExtProgPathPrompt (str progName, QWidget* parent = 0, Qt::WindowFlags f = 0); 120 explicit ExtProgPathPrompt (str progName, QWidget* parent = 0, Qt::WindowFlags f = 0);
117 virtual ~ExtProgPathPrompt(); 121 virtual ~ExtProgPathPrompt();
118 str getPath() const; 122 str getPath() const;
124 Ui_ExtProgPath* ui; 128 Ui_ExtProgPath* ui;
125 }; 129 };
126 130
127 // ============================================================================= 131 // =============================================================================
128 class AboutDialog : public QDialog 132 class AboutDialog : public QDialog
129 { Q_OBJECT 133 {
134 Q_OBJECT
130 135
131 public: 136 public:
132 AboutDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 137 AboutDialog (QWidget* parent = null, Qt::WindowFlags f = 0);
133 138
134 private slots: 139 private slots:

mercurial