Sat, 16 Mar 2013 01:32:47 +0200
Added logf function to write to message log. Write warnings of unparsable files into the message log.
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; | |
37 | QAction* qAct_about, *qAct_aboutQt; | |
38 | ||
39 | LDForgeWindow (); | |
40 | void buildObjList (); | |
7
098e3c4949c6
Set window title dynamically based on filename
Santeri Piippo <crimsondusk64@gmail.com>
parents:
0
diff
changeset
|
41 | void setTitle (); |
0 | 42 | |
43 | private: | |
44 | void createMenuActions (); | |
45 | void createMenus (); | |
46 | void createToolbars (); | |
47 | ||
48 | private slots: | |
49 | void slot_new (); | |
50 | void slot_open (); | |
51 | void slot_save (); | |
52 | void slot_saveAs (); | |
53 | void slot_exit (); | |
54 | ||
55 | void slot_newSubfile (); | |
56 | void slot_newLine (); | |
57 | void slot_newTriangle (); | |
58 | void slot_newQuad (); | |
59 | void slot_newCondLine (); | |
60 | void slot_newComment (); | |
61 | void slot_newVector (); | |
62 | void slot_newVertex (); | |
63 | ||
64 | void slot_cut (); | |
65 | void slot_copy (); | |
66 | void slot_paste (); | |
67 | ||
68 | void slot_about (); | |
69 | void slot_aboutQt (); | |
70 | }; | |
71 | ||
72 | enum { | |
73 | LDOLC_Icon, | |
74 | LDOLC_Data, | |
75 | NUM_LDOL_Columns | |
76 | }; | |
77 | ||
78 | #endif |