]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Minor adjustments for the panels:
authorPeter Penz <peter.penz19@gmail.com>
Sat, 6 Jan 2007 21:46:38 +0000 (21:46 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 6 Jan 2007 21:46:38 +0000 (21:46 +0000)
- only let them align on the left and the right side
- summarize the panels inside a sub menu entry

svn path=/trunk/playground/utils/dolphin/; revision=620656

src/dolphinmainwindow.cpp
src/dolphinui.rc

index 96a919747e17fb53567929d885d7fb5bb9a8736a..7d0e0992624a31bdb9cf9aac33efd2a504901efb 100644 (file)
@@ -1306,23 +1306,21 @@ void DolphinMainWindow::setupActions()
 
 void DolphinMainWindow::setupDockWidgets()
 {
-    QDockWidget *shortcutsDock = new QDockWidget(i18n("Shortcuts"));
-
-    shortcutsDock->setObjectName("shortcutsDock");
+    QDockWidget* shortcutsDock = new QDockWidget(i18n("Shortcuts"));
+    shortcutsDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
     shortcutsDock->setWidget(new BookmarksSidebarPage(this));
 
-    shortcutsDock->toggleViewAction()->setObjectName("show_shortcuts_pane");
+    shortcutsDock->toggleViewAction()->setObjectName("show_shortcuts_panel");
     shortcutsDock->toggleViewAction()->setText(i18n("Show Shortcuts Panel"));
     actionCollection()->insert(shortcutsDock->toggleViewAction());
 
     addDockWidget(Qt::LeftDockWidgetArea, shortcutsDock);
 
-    QDockWidget *infoDock = new QDockWidget(i18n("Information"));
-
-    infoDock->setObjectName("infoDock");
+    QDockWidget* infoDock = new QDockWidget(i18n("Information"));
+    infoDock->setAllowedAreas(Qt::LeftDockWidgetArea | Qt::RightDockWidgetArea);
     infoDock->setWidget(new InfoSidebarPage(this));
 
-    infoDock->toggleViewAction()->setObjectName("show_info_pane");
+    infoDock->toggleViewAction()->setObjectName("show_info_panel");
     infoDock->toggleViewAction()->setText(i18n("Show Information Panel"));
     actionCollection()->insert(infoDock->toggleViewAction());
 
index 33b689e76daf7a0be6a82aa8580fd92f953e2fc5..22bfe909ec7bb9bcefb09989500c7f5aa0188b2c 100644 (file)
@@ -1,7 +1,7 @@
 <!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
 <kpartgui version="2" name="dolphin" >
  <MenuBar>
-  <Menu name="file" >
+  <Menu name="file">
    <Action name="new_window" />
    <Menu name="create_new" >
     <text>Create New</text>
    <Separator/>
    <Action name="properties" />
   </Menu>
-  <Menu name="edit" >
+  <Menu name="edit">
    <Action name="select_all" />
    <Action name="invert_selection" />
   </Menu>
-  <Menu name="view" >
+  <Menu name="view">
    <Menu name="view_mode" >
     <text>View Mode</text>
     <Action name="icons" />
     <Action name="details" />
    </Menu>
-   <Menu name="sort" >
+   <Menu name="sort">
     <text>Sort</text>
     <Action name="by_name" />
     <Action name="by_size" />
    <Action name="reload" />
    <Action name="stop" />
    <Separator/>
-   <Menu name="navigation_bar" >
+   <Menu name="panels">
+    <text>Panels</text>
+    <Action name="show_shortcuts_panel" />
+    <Action name="show_info_panel" />
+   </Menu>
+   <Menu name="navigation_bar">
     <text>Navigation Bar</text>
     <Action name="editable_location" />
     <Action name="edit_location" />
    </Menu>
-   <Action name="show_shortcuts_pane" />
-   <Action name="show_info_pane" />
    <Separator/>
    <Action name="view_properties" />
   </Menu>