gui.cpp

changeset 102
cacd4681ccb4
parent 101
69d1464801d7
child 103
b0a345196435
--- a/gui.cpp	Fri Apr 12 01:03:08 2013 +0300
+++ b/gui.cpp	Fri Apr 12 02:54:25 2013 +0300
@@ -60,6 +60,13 @@
 EXTERN_ACTION (redo)
 EXTERN_ACTION (showHistory)
 
+EXTERN_ACTION (moveXNeg)
+EXTERN_ACTION (moveYNeg)
+EXTERN_ACTION (moveZNeg)
+EXTERN_ACTION (moveXPos)
+EXTERN_ACTION (moveYPos)
+EXTERN_ACTION (moveZPos)
+
 #ifndef RELEASE
 EXTERN_ACTION (addTestQuad)
 #endif // RELEASE
@@ -179,9 +186,6 @@
 	qEditMenu->addAction (ACTION_NAME (paste));				// Paste
 	qEditMenu->addAction (ACTION_NAME (del));				// Delete
 	qEditMenu->addSeparator ();								// -----
-	qEditMenu->addAction (ACTION_NAME (moveUp));			// Move Up
-	qEditMenu->addAction (ACTION_NAME (moveDown));			// Move Down
-	qEditMenu->addSeparator ();								// -----
 	qEditMenu->addAction (ACTION_NAME (setColor));			// Set Color
 	qEditMenu->addAction (ACTION_NAME (inlineContents));	// Inline
 	qEditMenu->addAction (ACTION_NAME (deepInline));		// Deep Inline
@@ -189,6 +193,18 @@
 	qEditMenu->addAction (ACTION_NAME (setContents));		// Set Contents
 	qEditMenu->addAction (ACTION_NAME (makeBorders));		// Make Borders
 	
+	// Move menu
+	qMoveMenu = menuBar ()->addMenu (tr ("&Move"));
+	qMoveMenu->addAction (ACTION_NAME (moveUp));			// Move Up
+	qMoveMenu->addAction (ACTION_NAME (moveDown));			// Move Down
+	qMoveMenu->addSeparator ();								// -----
+	qMoveMenu->addAction (ACTION_NAME (moveXPos));			// Move +X
+	qMoveMenu->addAction (ACTION_NAME (moveXNeg));			// Move -X
+	qMoveMenu->addAction (ACTION_NAME (moveYPos));			// Move +Y
+	qMoveMenu->addAction (ACTION_NAME (moveYNeg));			// Move -Y
+	qMoveMenu->addAction (ACTION_NAME (moveZPos));			// Move +Z
+	qMoveMenu->addAction (ACTION_NAME (moveZNeg));			// Move -Z
+	
 	// Control menu
 	qControlMenu = menuBar ()->addMenu (tr ("&Control"));
 	qControlMenu->addAction (ACTION_NAME (showHistory));	// Show History
@@ -270,6 +286,12 @@
 	initSingleToolBar ("Move");
 	ADD_TOOLBAR_ITEM (moveUp)
 	ADD_TOOLBAR_ITEM (moveDown)
+	ADD_TOOLBAR_ITEM (moveXPos)
+	ADD_TOOLBAR_ITEM (moveXNeg)
+	ADD_TOOLBAR_ITEM (moveYPos)
+	ADD_TOOLBAR_ITEM (moveYNeg)
+	ADD_TOOLBAR_ITEM (moveZPos)
+	ADD_TOOLBAR_ITEM (moveZNeg)
 	
 	// ==========================================
 	// Color toolbar

mercurial