src/addObjectDialog.h

changeset 493
16766ac1bbd9
parent 479
f179241a72a8
child 497
c51941e590b6
equal deleted inserted replaced
492:e964085e6913 493:16766ac1bbd9
14 * 14 *
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #ifndef ZZ_ADDOBJECTDIALOG_H 19 #ifndef LDFORGE_ADDOBJECTDIALOG_H
20 #define ZZ_ADDOBJECTDIALOG_H 20 #define LDFORGE_ADDOBJECTDIALOG_H
21 21
22 #include <QDialog> 22 #include <QDialog>
23 #include "ldtypes.h" 23 #include "ldtypes.h"
24 24
25 class QTreeWidgetItem; 25 class QTreeWidgetItem;
29 class QSpinBox; 29 class QSpinBox;
30 class QLabel; 30 class QLabel;
31 class QTreeWidget; 31 class QTreeWidget;
32 class QDoubleSpinBox; 32 class QDoubleSpinBox;
33 33
34 class AddObjectDialog : public QDialog { 34 class AddObjectDialog : public QDialog
35 Q_OBJECT 35 { Q_OBJECT
36 36
37 public: 37 public:
38 AddObjectDialog (const LDObject::Type type, LDObject* obj, QWidget* parent = null); 38 AddObjectDialog (const LDObject::Type type, LDObject* obj, QWidget* parent = null);
39 static void staticDialog (const LDObject::Type type, LDObject* obj); 39 static void staticDialog (const LDObject::Type type, LDObject* obj);
40 40
41 QLabel* lb_typeIcon; 41 QLabel* lb_typeIcon;
42 42
43 // Comment line edit 43 // Comment line edit
44 QLineEdit* le_comment; 44 QLineEdit* le_comment;
45 45
46 // Coordinate edits for.. anything with coordinates, really. 46 // Coordinate edits for.. anything with coordinates, really.
47 QDoubleSpinBox* dsb_coords[12]; 47 QDoubleSpinBox* dsb_coords[12];
48 48
49 // Color selection dialog button 49 // Color selection dialog button
50 QPushButton* pb_color; 50 QPushButton* pb_color;
51 51
52 // BFC-related widgets 52 // BFC-related widgets
53 RadioGroup* rb_bfcType; 53 RadioGroup* rb_bfcType;
54 54
55 // Subfile stuff 55 // Subfile stuff
56 QTreeWidget* tw_subfileList; 56 QTreeWidget* tw_subfileList;
57 QLineEdit* le_subfileName; 57 QLineEdit* le_subfileName;
58 QLabel* lb_subfileName; 58 QLabel* lb_subfileName;
59 QLineEdit* le_matrix; 59 QLineEdit* le_matrix;
60 60
61 private: 61 private:
62 void setButtonBackground (QPushButton* button, short color); 62 void setButtonBackground (QPushButton* button, short color);
63 str currentSubfileName(); 63 str currentSubfileName();
64 64
65 short colnum; 65 short colnum;
66 66
67 private slots: 67 private slots:
68 void slot_colorButtonClicked(); 68 void slot_colorButtonClicked();
69 void slot_subfileTypeChanged(); 69 void slot_subfileTypeChanged();
70 }; 70 };
71 71
72 #endif // ZZ_ADDOBJECTDIALOG_H 72 #endif // ZZ_ADDOBJECTDIALOG_H

mercurial