gui.cpp

changeset 111
125e8031dbf1
parent 110
a62ab18d1b80
child 112
fa2f00081357
equal deleted inserted replaced
110:a62ab18d1b80 111:125e8031dbf1
52 EXTERN_ACTION (newCondLine) 52 EXTERN_ACTION (newCondLine)
53 EXTERN_ACTION (newTriangle) 53 EXTERN_ACTION (newTriangle)
54 EXTERN_ACTION (newQuad) 54 EXTERN_ACTION (newQuad)
55 EXTERN_ACTION (newVertex) 55 EXTERN_ACTION (newVertex)
56 EXTERN_ACTION (newComment) 56 EXTERN_ACTION (newComment)
57 EXTERN_ACTION (newRadial)
57 EXTERN_ACTION (help) 58 EXTERN_ACTION (help)
58 EXTERN_ACTION (about) 59 EXTERN_ACTION (about)
59 EXTERN_ACTION (aboutQt) 60 EXTERN_ACTION (aboutQt)
60 EXTERN_ACTION (undo) 61 EXTERN_ACTION (undo)
61 EXTERN_ACTION (redo) 62 EXTERN_ACTION (redo)
69 EXTERN_ACTION (moveYPos) 70 EXTERN_ACTION (moveYPos)
70 EXTERN_ACTION (moveZPos) 71 EXTERN_ACTION (moveZPos)
71 72
72 #ifndef RELEASE 73 #ifndef RELEASE
73 EXTERN_ACTION (addTestQuad) 74 EXTERN_ACTION (addTestQuad)
75 EXTERN_ACTION (addTestRadial)
74 #endif // RELEASE 76 #endif // RELEASE
75 77
76 vector<actionmeta> g_ActionMeta; 78 vector<actionmeta> g_ActionMeta;
77 79
78 static bool g_bSelectionLocked = false; 80 static bool g_bSelectionLocked = false;
178 qInsertMenu->addAction (ACTION_NAME (newTriangle)); // New Triangle 180 qInsertMenu->addAction (ACTION_NAME (newTriangle)); // New Triangle
179 qInsertMenu->addAction (ACTION_NAME (newQuad)); // New Quad 181 qInsertMenu->addAction (ACTION_NAME (newQuad)); // New Quad
180 qInsertMenu->addAction (ACTION_NAME (newCondLine)); // New Conditional Line 182 qInsertMenu->addAction (ACTION_NAME (newCondLine)); // New Conditional Line
181 qInsertMenu->addAction (ACTION_NAME (newComment)); // New Comment 183 qInsertMenu->addAction (ACTION_NAME (newComment)); // New Comment
182 qInsertMenu->addAction (ACTION_NAME (newVertex)); // New Vertex 184 qInsertMenu->addAction (ACTION_NAME (newVertex)); // New Vertex
185 qInsertMenu->addAction (ACTION_NAME (newRadial)); // New Radial
183 186
184 // Edit menu 187 // Edit menu
185 qEditMenu = menuBar ()->addMenu (tr ("&Edit")); 188 qEditMenu = menuBar ()->addMenu (tr ("&Edit"));
186 qEditMenu->addAction (ACTION_NAME (undo)); // Undo 189 qEditMenu->addAction (ACTION_NAME (undo)); // Undo
187 qEditMenu->addAction (ACTION_NAME (redo)); // Redo 190 qEditMenu->addAction (ACTION_NAME (redo)); // Redo
220 223
221 #ifndef RELEASE 224 #ifndef RELEASE
222 // Debug menu 225 // Debug menu
223 qDebugMenu = menuBar ()->addMenu (tr ("&Debug")); 226 qDebugMenu = menuBar ()->addMenu (tr ("&Debug"));
224 qDebugMenu->addAction (ACTION_NAME (addTestQuad)); // Add Test Quad 227 qDebugMenu->addAction (ACTION_NAME (addTestQuad)); // Add Test Quad
228 qDebugMenu->addAction (ACTION_NAME (addTestRadial)); // Add Test Radial
225 #endif // RELEASE 229 #endif // RELEASE
226 230
227 // Help menu 231 // Help menu
228 qHelpMenu = menuBar ()->addMenu (tr ("&Help")); 232 qHelpMenu = menuBar ()->addMenu (tr ("&Help"));
229 qHelpMenu->addAction (ACTION_NAME (help)); // Help 233 qHelpMenu->addAction (ACTION_NAME (help)); // Help
281 ADD_TOOLBAR_ITEM (newTriangle) 285 ADD_TOOLBAR_ITEM (newTriangle)
282 ADD_TOOLBAR_ITEM (newQuad) 286 ADD_TOOLBAR_ITEM (newQuad)
283 ADD_TOOLBAR_ITEM (newCondLine) 287 ADD_TOOLBAR_ITEM (newCondLine)
284 ADD_TOOLBAR_ITEM (newComment) 288 ADD_TOOLBAR_ITEM (newComment)
285 ADD_TOOLBAR_ITEM (newVertex) 289 ADD_TOOLBAR_ITEM (newVertex)
290 ADD_TOOLBAR_ITEM (newRadial)
286 291
287 initSingleToolBar ("Edit"); 292 initSingleToolBar ("Edit");
288 ADD_TOOLBAR_ITEM (undo) 293 ADD_TOOLBAR_ITEM (undo)
289 ADD_TOOLBAR_ITEM (redo) 294 ADD_TOOLBAR_ITEM (redo)
290 ADD_TOOLBAR_ITEM (cut) 295 ADD_TOOLBAR_ITEM (cut)

mercurial