Sat, 16 Mar 2013 03:11:19 +0200
this thing got its own reinterpret_cast now. :P Added SetContents action for altering an object by contents and reinterpreting it.
0 | 1 | #ifndef __GUI_H__ |
2 | #define __GUI_H__ | |
3 | ||
4 | #include <QMainWindow> | |
5 | #include <QMenu> | |
6 | #include <QToolBar> | |
7 | #include <QAction> | |
8 | #include <QTreeWidget> | |
9 | #include <QToolBar> | |
10 | #include <QTextEdit> | |
11 | #include "draw.h" | |
12 | ||
13 | class LDForgeWindow : public QMainWindow { | |
14 | Q_OBJECT | |
15 | ||
16 | public: | |
17 | renderer* R; | |
18 | ||
19 | // Object list view | |
20 | QTreeWidget* qObjList; | |
21 | ||
22 | // Message log | |
23 | QTextEdit* qMessageLog; | |
13
3955ff2a7d72
Added logf function to write to message log. Write warnings of unparsable files into the message log.
Santeri Piippo <crimsondusk64@gmail.com>
parents:
7
diff
changeset
|
24 | str zMessageLogHTML; |
0 | 25 | |
26 | // Menus | |
27 | QMenu* qFileMenu, *qEditMenu, *qInsertMenu, *qHelpMenu; | |
28 | ||
29 | // Toolbars | |
30 | QToolBar* qFileToolBar, *qEditToolBar, *qInsertToolBar; | |
31 | ||
32 | // ACTION ARMADA | |
33 | QAction* qAct_new, *qAct_open, *qAct_save, *qAct_saveAs, *qAct_exit; | |
34 | QAction* qAct_cut, *qAct_copy, *qAct_paste; | |
35 | QAction* qAct_newSubfile, *qAct_newLine, *qAct_newTriangle, *qAct_newQuad; | |
36 | QAction* qAct_newCondLine, *qAct_newComment, *qAct_newVector, *qAct_newVertex; | |
14
6d9d8efae2f8
this thing got its own reinterpret_cast now. :P Added SetContents action for altering an object by contents and reinterpreting it.
Santeri Piippo <crimsondusk64@gmail.com>
parents:
13
diff
changeset
|
37 | QAction* qAct_setContents; |
0 | 38 | QAction* qAct_about, *qAct_aboutQt; |
39 | ||
40 | LDForgeWindow (); | |
41 | void buildObjList (); | |
7
098e3c4949c6
Set window title dynamically based on filename
Santeri Piippo <crimsondusk64@gmail.com>
parents:
0
diff
changeset
|
42 | void setTitle (); |
0 | 43 | |
44 | private: | |
45 | void createMenuActions (); | |
46 | void createMenus (); | |
47 | void createToolbars (); | |
48 | ||
49 | private slots: | |
14
6d9d8efae2f8
this thing got its own reinterpret_cast now. :P Added SetContents action for altering an object by contents and reinterpreting it.
Santeri Piippo <crimsondusk64@gmail.com>
parents:
13
diff
changeset
|
50 | void slot_selectionChanged (); |
6d9d8efae2f8
this thing got its own reinterpret_cast now. :P Added SetContents action for altering an object by contents and reinterpreting it.
Santeri Piippo <crimsondusk64@gmail.com>
parents:
13
diff
changeset
|
51 | |
0 | 52 | void slot_new (); |
53 | void slot_open (); | |
54 | void slot_save (); | |
55 | void slot_saveAs (); | |
56 | void slot_exit (); | |
57 | ||
58 | void slot_newSubfile (); | |
59 | void slot_newLine (); | |
60 | void slot_newTriangle (); | |
61 | void slot_newQuad (); | |
62 | void slot_newCondLine (); | |
63 | void slot_newComment (); | |
64 | void slot_newVector (); | |
65 | void slot_newVertex (); | |
66 | ||
14
6d9d8efae2f8
this thing got its own reinterpret_cast now. :P Added SetContents action for altering an object by contents and reinterpreting it.
Santeri Piippo <crimsondusk64@gmail.com>
parents:
13
diff
changeset
|
67 | void slot_setContents (); |
6d9d8efae2f8
this thing got its own reinterpret_cast now. :P Added SetContents action for altering an object by contents and reinterpreting it.
Santeri Piippo <crimsondusk64@gmail.com>
parents:
13
diff
changeset
|
68 | |
0 | 69 | void slot_cut (); |
70 | void slot_copy (); | |
71 | void slot_paste (); | |
72 | ||
73 | void slot_about (); | |
74 | void slot_aboutQt (); | |
75 | }; | |
76 | ||
77 | enum { | |
78 | LDOLC_Icon, | |
79 | LDOLC_Data, | |
80 | NUM_LDOL_Columns | |
81 | }; | |
82 | ||
83 | #endif |