58 EXTERN_ACTION (aboutQt) |
58 EXTERN_ACTION (aboutQt) |
59 EXTERN_ACTION (undo) |
59 EXTERN_ACTION (undo) |
60 EXTERN_ACTION (redo) |
60 EXTERN_ACTION (redo) |
61 EXTERN_ACTION (showHistory) |
61 EXTERN_ACTION (showHistory) |
62 |
62 |
|
63 EXTERN_ACTION (moveXNeg) |
|
64 EXTERN_ACTION (moveYNeg) |
|
65 EXTERN_ACTION (moveZNeg) |
|
66 EXTERN_ACTION (moveXPos) |
|
67 EXTERN_ACTION (moveYPos) |
|
68 EXTERN_ACTION (moveZPos) |
|
69 |
63 #ifndef RELEASE |
70 #ifndef RELEASE |
64 EXTERN_ACTION (addTestQuad) |
71 EXTERN_ACTION (addTestQuad) |
65 #endif // RELEASE |
72 #endif // RELEASE |
66 |
73 |
67 vector<actionmeta> g_ActionMeta; |
74 vector<actionmeta> g_ActionMeta; |
177 qEditMenu->addAction (ACTION_NAME (cut)); // Cut |
184 qEditMenu->addAction (ACTION_NAME (cut)); // Cut |
178 qEditMenu->addAction (ACTION_NAME (copy)); // Copy |
185 qEditMenu->addAction (ACTION_NAME (copy)); // Copy |
179 qEditMenu->addAction (ACTION_NAME (paste)); // Paste |
186 qEditMenu->addAction (ACTION_NAME (paste)); // Paste |
180 qEditMenu->addAction (ACTION_NAME (del)); // Delete |
187 qEditMenu->addAction (ACTION_NAME (del)); // Delete |
181 qEditMenu->addSeparator (); // ----- |
188 qEditMenu->addSeparator (); // ----- |
182 qEditMenu->addAction (ACTION_NAME (moveUp)); // Move Up |
|
183 qEditMenu->addAction (ACTION_NAME (moveDown)); // Move Down |
|
184 qEditMenu->addSeparator (); // ----- |
|
185 qEditMenu->addAction (ACTION_NAME (setColor)); // Set Color |
189 qEditMenu->addAction (ACTION_NAME (setColor)); // Set Color |
186 qEditMenu->addAction (ACTION_NAME (inlineContents)); // Inline |
190 qEditMenu->addAction (ACTION_NAME (inlineContents)); // Inline |
187 qEditMenu->addAction (ACTION_NAME (deepInline)); // Deep Inline |
191 qEditMenu->addAction (ACTION_NAME (deepInline)); // Deep Inline |
188 qEditMenu->addAction (ACTION_NAME (splitQuads)); // Split Quads |
192 qEditMenu->addAction (ACTION_NAME (splitQuads)); // Split Quads |
189 qEditMenu->addAction (ACTION_NAME (setContents)); // Set Contents |
193 qEditMenu->addAction (ACTION_NAME (setContents)); // Set Contents |
190 qEditMenu->addAction (ACTION_NAME (makeBorders)); // Make Borders |
194 qEditMenu->addAction (ACTION_NAME (makeBorders)); // Make Borders |
|
195 |
|
196 // Move menu |
|
197 qMoveMenu = menuBar ()->addMenu (tr ("&Move")); |
|
198 qMoveMenu->addAction (ACTION_NAME (moveUp)); // Move Up |
|
199 qMoveMenu->addAction (ACTION_NAME (moveDown)); // Move Down |
|
200 qMoveMenu->addSeparator (); // ----- |
|
201 qMoveMenu->addAction (ACTION_NAME (moveXPos)); // Move +X |
|
202 qMoveMenu->addAction (ACTION_NAME (moveXNeg)); // Move -X |
|
203 qMoveMenu->addAction (ACTION_NAME (moveYPos)); // Move +Y |
|
204 qMoveMenu->addAction (ACTION_NAME (moveYNeg)); // Move -Y |
|
205 qMoveMenu->addAction (ACTION_NAME (moveZPos)); // Move +Z |
|
206 qMoveMenu->addAction (ACTION_NAME (moveZNeg)); // Move -Z |
191 |
207 |
192 // Control menu |
208 // Control menu |
193 qControlMenu = menuBar ()->addMenu (tr ("&Control")); |
209 qControlMenu = menuBar ()->addMenu (tr ("&Control")); |
194 qControlMenu->addAction (ACTION_NAME (showHistory)); // Show History |
210 qControlMenu->addAction (ACTION_NAME (showHistory)); // Show History |
195 |
211 |
268 ADD_TOOLBAR_ITEM (del) |
284 ADD_TOOLBAR_ITEM (del) |
269 |
285 |
270 initSingleToolBar ("Move"); |
286 initSingleToolBar ("Move"); |
271 ADD_TOOLBAR_ITEM (moveUp) |
287 ADD_TOOLBAR_ITEM (moveUp) |
272 ADD_TOOLBAR_ITEM (moveDown) |
288 ADD_TOOLBAR_ITEM (moveDown) |
|
289 ADD_TOOLBAR_ITEM (moveXPos) |
|
290 ADD_TOOLBAR_ITEM (moveXNeg) |
|
291 ADD_TOOLBAR_ITEM (moveYPos) |
|
292 ADD_TOOLBAR_ITEM (moveYNeg) |
|
293 ADD_TOOLBAR_ITEM (moveZPos) |
|
294 ADD_TOOLBAR_ITEM (moveZNeg) |
273 |
295 |
274 // ========================================== |
296 // ========================================== |
275 // Color toolbar |
297 // Color toolbar |
276 qColorToolBar = new QToolBar ("Quick Colors"); |
298 qColorToolBar = new QToolBar ("Quick Colors"); |
277 addToolBar (Qt::RightToolBarArea, qColorToolBar); |
299 addToolBar (Qt::RightToolBarArea, qColorToolBar); |