| 72 private: |
72 private: |
| 73 QLabel* lb_contents, *lb_errorIcon, *lb_error; |
73 QLabel* lb_contents, *lb_errorIcon, *lb_error; |
| 74 QLineEdit* le_contents; |
74 QLineEdit* le_contents; |
| 75 }; |
75 }; |
| 76 |
76 |
| |
77 class LDrawPathDialog : public QDialog { |
| |
78 Q_OBJECT |
| |
79 |
| |
80 public: |
| |
81 explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0); |
| |
82 str path () const; |
| |
83 void setPath (str path); |
| |
84 |
| |
85 private: |
| |
86 Q_DISABLE_COPY (LDrawPathDialog) |
| |
87 |
| |
88 QLabel* lb_resolution; |
| |
89 QLineEdit* le_path; |
| |
90 QPushButton* btn_findPath, *btn_tryConfigure, *btn_cancel; |
| |
91 QDialogButtonBox* dbb_buttons; |
| |
92 const bool m_validDefault; |
| |
93 |
| |
94 QPushButton* okButton (); |
| |
95 |
| |
96 private slots: |
| |
97 void slot_findPath (); |
| |
98 void slot_tryConfigure (); |
| |
99 void slot_exit (); |
| |
100 }; |
| |
101 |
| |
102 class NewPartDialog : public QDialog { |
| |
103 public: |
| |
104 enum { CCAL, NonCA, NoLicense }; |
| |
105 enum { CCW, CW, NoWinding }; |
| |
106 |
| |
107 explicit NewPartDialog (QWidget* parent = null, Qt::WindowFlags f = 0); |
| |
108 static void StaticDialog (); |
| |
109 |
| |
110 QLabel* lb_brickIcon, *lb_name, *lb_author, *lb_license, *lb_BFC; |
| |
111 QLineEdit* le_name, *le_author; |
| |
112 RadioBox* rb_license, *rb_BFC; |
| |
113 }; |
| |
114 |
| 77 #endif // DIALOGS_H |
115 #endif // DIALOGS_H |