| 72 private: |
73 private: |
| 73 QLabel* lb_contents, *lb_errorIcon, *lb_error; |
74 QLabel* lb_contents, *lb_errorIcon, *lb_error; |
| 74 QLineEdit* le_contents; |
75 QLineEdit* le_contents; |
| 75 }; |
76 }; |
| 76 |
77 |
| |
78 // ============================================================================= |
| 77 class LDrawPathDialog : public QDialog { |
79 class LDrawPathDialog : public QDialog { |
| 78 Q_OBJECT |
80 Q_OBJECT |
| 79 |
81 |
| 80 public: |
82 public: |
| 81 explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0); |
83 explicit LDrawPathDialog (const bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0); |
| 97 void slot_findPath (); |
99 void slot_findPath (); |
| 98 void slot_tryConfigure (); |
100 void slot_tryConfigure (); |
| 99 void slot_exit (); |
101 void slot_exit (); |
| 100 }; |
102 }; |
| 101 |
103 |
| |
104 // ============================================================================= |
| 102 class NewPartDialog : public QDialog { |
105 class NewPartDialog : public QDialog { |
| 103 public: |
106 public: |
| 104 enum { CCAL, NonCA, NoLicense }; |
107 enum { CCAL, NonCA, NoLicense }; |
| 105 enum { CCW, CW, NoWinding }; |
108 enum { CCW, CW, NoWinding }; |
| 106 |
109 |
| 110 QLabel* lb_brickIcon, *lb_name, *lb_author, *lb_license, *lb_BFC; |
113 QLabel* lb_brickIcon, *lb_name, *lb_author, *lb_license, *lb_BFC; |
| 111 QLineEdit* le_name, *le_author; |
114 QLineEdit* le_name, *le_author; |
| 112 RadioBox* rb_license, *rb_BFC; |
115 RadioBox* rb_license, *rb_BFC; |
| 113 }; |
116 }; |
| 114 |
117 |
| |
118 // ============================================================================= |
| |
119 class RotationPointDialog : public QDialog { |
| |
120 Q_OBJECT |
| |
121 |
| |
122 public: |
| |
123 explicit RotationPointDialog (QWidget* parent = null, Qt::WindowFlags f = 0); |
| |
124 |
| |
125 vertex customPos () const; |
| |
126 bool custom () const; |
| |
127 void setCustom (bool custom); |
| |
128 void setCustomPos (const vertex& pos); |
| |
129 |
| |
130 private: |
| |
131 QDoubleSpinBox* dsb_customX, *dsb_customY, *dsb_customZ; |
| |
132 RadioBox* rb_rotpoint; |
| |
133 QGroupBox* gb_customPos; |
| |
134 |
| |
135 private slots: |
| |
136 void radioBoxChanged (); |
| |
137 }; |
| |
138 |
| 115 #endif // DIALOGS_H |
139 #endif // DIALOGS_H |