gui.h

changeset 99
920d51fec412
parent 97
52bcca21579e
child 100
e40358266290
equal deleted inserted replaced
98:5dcc551f260a 99:920d51fec412
98 98
99 // Object list view 99 // Object list view
100 QTreeWidget* qObjList; 100 QTreeWidget* qObjList;
101 QTextEdit* qMessageLog; 101 QTextEdit* qMessageLog;
102 QMenu* qFileMenu, *qEditMenu, *qInsertMenu, *qHelpMenu, *qControlMenu; 102 QMenu* qFileMenu, *qEditMenu, *qInsertMenu, *qHelpMenu, *qControlMenu;
103 QMenu* qRecentFilesMenu;
104 std::vector<QAction*> qaRecentFiles;
103 105
104 #ifndef RELEASE 106 #ifndef RELEASE
105 QMenu* qDebugMenu; 107 QMenu* qDebugMenu;
106 QToolBar* qDebugToolBar; 108 QToolBar* qDebugToolBar;
107 #endif // RELEASE 109 #endif // RELEASE
116 void refresh (); 118 void refresh ();
117 std::vector<LDObject*> getSelectedObjects (); 119 std::vector<LDObject*> getSelectedObjects ();
118 ulong getInsertionPoint (); 120 ulong getInsertionPoint ();
119 void deleteSelection (vector<ulong>* ulapIndices, std::vector<LDObject*>* papObjects); 121 void deleteSelection (vector<ulong>* ulapIndices, std::vector<LDObject*>* papObjects);
120 void updateToolBars (); 122 void updateToolBars ();
123 void updateRecentFilesMenu ();
121 124
122 private: 125 private:
123 void createMenuActions (); 126 void createMenuActions ();
124 void createMenus (); 127 void createMenus ();
125 void createToolbars (); 128 void createToolbars ();
126 void initSingleToolBar (const char* sName); 129 void initSingleToolBar (const char* sName);
127 130
128 private slots: 131 private slots:
129 void slot_selectionChanged (); 132 void slot_selectionChanged ();
130 void slot_action (); 133 void slot_action ();
134 void slot_recentFile ();
131 }; 135 };
132 136
133 // ----------------------------------------------------------------------------- 137 // -----------------------------------------------------------------------------
134 // Other GUI-related stuff not directly part of ForgeWindow: 138 // Other GUI-related stuff not directly part of ForgeWindow:
135 QIcon getIcon (const char* sIconName); 139 QIcon getIcon (const char* sIconName);

mercurial