zz_ldrawPathDialog.h

changeset 180
16306e69a895
parent 179
f98391b179ab
equal deleted inserted replaced
179:f98391b179ab 180:16306e69a895
28 28
29 class LDrawPathDialog : public QDialog { 29 class LDrawPathDialog : public QDialog {
30 Q_OBJECT 30 Q_OBJECT
31 31
32 public: 32 public:
33 explicit LDrawPathDialog (QWidget* parent = null, Qt::WindowFlags f = 0); 33 explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0);
34 str path () const; 34 str path () const;
35 void setPath (str path); 35 void setPath (str path);
36 void (*callback ()) () const { return m_callback; } 36 void (*callback ()) () const { return m_callback; }
37 void setCallback (void (*callback) ()) { m_callback = callback; } 37 void setCallback (void (*callback) ()) { m_callback = callback; }
38 38
39 private: 39 private:
40 Q_DISABLE_COPY (LDrawPathDialog) 40 Q_DISABLE_COPY (LDrawPathDialog)
41 41
42 QLabel* lb_resolution; 42 QLabel* lb_resolution;
43 QLineEdit* le_path; 43 QLineEdit* le_path;
44 QPushButton* btn_findPath, *btn_tryConfigure, *btn_exit; 44 QPushButton* btn_findPath, *btn_tryConfigure, *btn_cancel;
45 QDialogButtonBox* dbb_buttons; 45 QDialogButtonBox* dbb_buttons;
46 void (*m_callback) (); 46 void (*m_callback) ();
47 const bool m_validDefault;
47 48
48 QPushButton* okButton (); 49 QPushButton* okButton ();
49 50
50 private slots: 51 private slots:
51 void slot_findPath (); 52 void slot_findPath ();

mercurial