| 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 GUI_H |
19 #ifndef LDFORGE_GUI_H |
| 20 #define GUI_H |
20 #define LDFORGE_GUI_H |
| 21 |
21 |
| 22 #include <QMainWindow> |
22 #include <QMainWindow> |
| 23 #include <QAction> |
23 #include <QAction> |
| 24 #include <QListWidget> |
24 #include <QListWidget> |
| 25 #include <QRadioButton> |
25 #include <QRadioButton> |
| 93 |
93 |
| 94 public: |
94 public: |
| 95 ForgeWindow(); |
95 ForgeWindow(); |
| 96 void buildObjList(); |
96 void buildObjList(); |
| 97 void updateTitle(); |
97 void updateTitle(); |
| 98 void fullRefresh(); |
98 void doFullRefresh(); |
| 99 void refresh(); |
99 void refresh(); |
| 100 int getInsertionPoint(); |
100 int getInsertionPoint(); |
| 101 void updateToolBars(); |
101 void updateToolBars(); |
| 102 void updateRecentFilesMenu(); |
102 void updateRecentFilesMenu(); |
| 103 void updateSelection(); |
103 void updateSelection(); |
| 104 void updateGridToolBar(); |
104 void updateGridToolBar(); |
| 105 void updateEditModeActions(); |
105 void updateEditModeActions(); |
| 106 void updateFileList(); |
106 void updateFileList(); |
| 107 void updateFileListItem (LDFile* f); |
107 void updateFileListItem (LDFile* f); |
| 108 short getSelectedColor(); |
108 int getSelectedColor(); |
| 109 LDObject::Type uniformSelectedType(); |
109 LDObject::Type getUniformSelectedType(); |
| 110 void scrollToSelection(); |
110 void scrollToSelection(); |
| 111 void spawnContextMenu (const QPoint pos); |
111 void spawnContextMenu (const QPoint pos); |
| 112 void deleteObjVector (QList< LDObject* > objs); |
112 void deleteObjects (QList<LDObject*> objs); |
| 113 int deleteSelection(); |
113 int deleteSelection(); |
| 114 void deleteByColor (const short int colnum); |
114 void deleteByColor (const int colnum); |
| 115 void save (LDFile* f, bool saveAs); |
115 void save (LDFile* f, bool saveAs); |
| 116 |
116 |
| 117 inline GLRenderer* R() |
117 inline GLRenderer* R() |
| 118 { return m_renderer; |
118 { return m_renderer; |
| 119 } |
119 } |