94 g_ActionMeta.push_back (meta); |
94 g_ActionMeta.push_back (meta); |
95 } |
95 } |
96 }; |
96 }; |
97 |
97 |
98 // ============================================================================= |
98 // ============================================================================= |
|
99 // ObjectList |
|
100 // |
|
101 // Object list class for ForgeWindow |
|
102 // ============================================================================= |
|
103 class ObjectList : public QListWidget { |
|
104 Q_OBJECT |
|
105 |
|
106 protected: |
|
107 void contextMenuEvent (QContextMenuEvent* ev); |
|
108 }; |
|
109 |
|
110 // ============================================================================= |
99 // ForgeWindow |
111 // ForgeWindow |
100 // |
112 // |
101 // The one main GUI class. Hosts the renderer, object list, message log. Contains |
113 // The one main GUI class. Hosts the renderer, object list, message log. Contains |
102 // slot_action, which is what all actions connect to. Manages menus and toolbars. |
114 // slot_action, which is what all actions connect to. Manages menus and toolbars. |
103 // Large and in charge. |
115 // Large and in charge. |
107 |
119 |
108 public: |
120 public: |
109 GLRenderer* R; |
121 GLRenderer* R; |
110 |
122 |
111 // Object list view |
123 // Object list view |
112 QTreeWidget* qObjList; |
124 ObjectList* objList; |
113 QTextEdit* qMessageLog; |
125 QTextEdit* qMessageLog; |
114 QMenu* qFileMenu, *qEditMenu, *qViewMenu, *qInsertMenu, *qMoveMenu, |
126 QMenu* qFileMenu, *qEditMenu, *qViewMenu, *qInsertMenu, *qMoveMenu, |
115 *qHelpMenu, *qControlMenu; |
127 *qHelpMenu, *qControlMenu; |
116 QMenu* qRecentFilesMenu; |
128 QMenu* qRecentFilesMenu; |
117 std::vector<QAction*> qaRecentFiles; |
129 std::vector<QAction*> qaRecentFiles; |