r18249 by craig - #11383: Make some of the changes to the View menu

scribus-commit scribus-commit at lists.scribus.net
Sun Apr 14 14:06:55 UTC 2013


Author: craig
Date: Sun Apr 14 14:06:55 2013
New Revision: 18249

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18249
Log:
#11383: Make some of the changes to the View  menu

Modified:
    trunk/Scribus/scribus/scribus.cpp

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18249&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Sun Apr 14 14:06:55 2013
@@ -990,30 +990,35 @@
 
 	//View menu
 	scrMenuMgr->createMenu("View", ActionManager::defaultMenuNameEntryTranslated("View"));
-	scrMenuMgr->addMenuItem(scrActions["viewFitInWindow"], "View", false);
-	scrMenuMgr->addMenuItem(scrActions["viewFitWidth"], "View", false);
-	scrMenuMgr->addMenuItem(scrActions["viewFit50"], "View", false);
-	scrMenuMgr->addMenuItem(scrActions["viewFit75"], "View", false);
-	scrMenuMgr->addMenuItem(scrActions["viewFit100"], "View", false);
-	scrMenuMgr->addMenuItem(scrActions["viewFit200"], "View", false);
-	scrMenuMgr->addMenuItem(scrActions["viewFit400"], "View", false);
-	scrMenuMgr->addMenuSeparator("View");
-	scrMenuMgr->addMenuItem(scrActions["viewPreviewMode"], "View", true);
-	scrMenuMgr->addMenuSeparator("View");
-	scrMenuMgr->addMenuItem(scrActions["viewShowMargins"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowBleeds"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowFrames"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowLayerMarkers"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowImages"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowGrid"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowGuides"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowColumnBorders"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowBaseline"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowTextChain"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowTextControls"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["viewShowRulers"], "View", false);
-	scrMenuMgr->addMenuItem(scrActions["viewRulerMode"], "View", true);
-	scrMenuMgr->addMenuItem(scrActions["showMouseCoordinates"], "View", true);
+	scrMenuMgr->createMenu("ViewZoom", tr("Zoom"), "View");
+	scrMenuMgr->addMenuItem(scrActions["viewFitInWindow"], "ViewZoom", false);
+	scrMenuMgr->addMenuItem(scrActions["viewFitWidth"], "ViewZoom", false);
+	scrMenuMgr->addMenuItem(scrActions["viewFit50"], "ViewZoom", false);
+	scrMenuMgr->addMenuItem(scrActions["viewFit75"], "ViewZoom", false);
+	scrMenuMgr->addMenuItem(scrActions["viewFit100"], "ViewZoom", false);
+	scrMenuMgr->addMenuItem(scrActions["viewFit200"], "ViewZoom", false);
+	scrMenuMgr->addMenuItem(scrActions["viewFit400"], "ViewZoom", false);
+	scrMenuMgr->createMenu("ViewPreview", tr("Preview"), "View");
+	scrMenuMgr->addMenuItem(scrActions["viewPreviewMode"], "ViewPreview", true);
+	scrMenuMgr->createMenu("ViewMeasuring", tr("Measures"), "View");
+	scrMenuMgr->addMenuItem(scrActions["viewShowRulers"], "ViewMeasuring", false);
+	scrMenuMgr->addMenuItem(scrActions["viewRulerMode"], "ViewMeasuring", true);
+	scrMenuMgr->addMenuItem(scrActions["showMouseCoordinates"], "ViewMeasuring", true);
+	scrMenuMgr->createMenu("ViewTextFrames", tr("Text Frames"), "View");
+	scrMenuMgr->addMenuItem(scrActions["viewShowBaseline"], "ViewTextFrames", true);
+	scrMenuMgr->addMenuItem(scrActions["viewShowColumnBorders"], "ViewTextFrames", true);
+	scrMenuMgr->addMenuItem(scrActions["viewShowTextChain"], "ViewTextFrames", true);
+	scrMenuMgr->addMenuItem(scrActions["viewShowTextControls"], "ViewTextFrames", true);
+	scrMenuMgr->createMenu("ViewImageFrames", tr("Image Frames"), "View");
+	scrMenuMgr->addMenuItem(scrActions["viewShowImages"], "ViewImageFrames", true);
+	scrMenuMgr->createMenu("ViewDocument", tr("Document"), "View");
+	scrMenuMgr->addMenuItem(scrActions["viewShowMargins"], "ViewDocument", true);
+	scrMenuMgr->addMenuItem(scrActions["viewShowBleeds"], "ViewDocument", true);
+	scrMenuMgr->addMenuItem(scrActions["viewShowFrames"], "ViewDocument", true);
+	scrMenuMgr->addMenuItem(scrActions["viewShowLayerMarkers"], "ViewDocument", true);
+	scrMenuMgr->createMenu("ViewGrids", tr("Grids and Guides"), "View");
+	scrMenuMgr->addMenuItem(scrActions["viewShowGrid"], "ViewGrids", true);
+	scrMenuMgr->addMenuItem(scrActions["viewShowGuides"], "ViewGrids", true);
 
 	//CB If this is viewNewView imeplemented, it should be on the windows menu
 //	scrMenuMgr->addMenuItem(scrActions["viewNewView"], "View");
@@ -1075,9 +1080,9 @@
 	scrMenuMgr->addMenuToMenuBar("Item");
 	scrMenuMgr->addMenuToMenuBar("Insert");
 	scrMenuMgr->addMenuToMenuBar("Page");
-	scrMenuMgr->addMenuToMenuBar("View");
 	scrMenuMgr->addMenuToMenuBar("ItemTable");
 	scrMenuMgr->addMenuToMenuBar("Extras");
+	scrMenuMgr->addMenuToMenuBar("View");
 	scrMenuMgr->addMenuToMenuBar("Windows");
 	menuBar()->addSeparator();
 	scrMenuMgr->addMenuToMenuBar("Help");




More information about the scribus-commit mailing list