Code

add tab to layers dialog
authormental <mental@users.sourceforge.net>
Wed, 2 Jul 2008 01:45:20 +0000 (01:45 +0000)
committermental <mental@users.sourceforge.net>
Wed, 2 Jul 2008 01:45:20 +0000 (01:45 +0000)
src/dialogs/layers-panel.cpp
src/dialogs/layers-panel.h

index d54fb6fc770f6e48e175f35fee472c59f1530e7f..7863e19f1b3b72dfa9b3f4e89ec55a285386f848 100644 (file)
@@ -732,10 +732,13 @@ LayersPanel::LayersPanel() :
 
     _watching.push_back( &_compositeSettings );
 
-    _getContents()->pack_start( _scroller, Gtk::PACK_EXPAND_WIDGET );
+    _layersPage.pack_start( _scroller, Gtk::PACK_EXPAND_WIDGET );
+    _layersPage.pack_end(_compositeSettings, Gtk::PACK_SHRINK);
+    _layersPage.pack_end(_buttonsRow, Gtk::PACK_SHRINK);
 
-    _getContents()->pack_end(_compositeSettings, Gtk::PACK_SHRINK);
-    _getContents()->pack_end(_buttonsRow, Gtk::PACK_SHRINK);
+    _notebook.append_page(_layersPage, _("Layers"));
+
+    _getContents()->pack_start(_notebook, Gtk::PACK_EXPAND_WIDGET);
 
     SPDesktop* targetDesktop = getDesktop();
 
index e554ad0bfc0a35a11e7fb8f5773a62a462d199fb..62596e4071d3befafdaecfed64614a49f847bb46 100644 (file)
@@ -19,6 +19,7 @@
 #include <gtkmm/box.h>
 #include <gtkmm/buttonbox.h>
 #include <gtkmm/spinbutton.h>
+#include <gtkmm/notebook.h>
 
 //#include "ui/previewholder.h"
 #include "ui/widget/panel.h"
@@ -115,6 +116,8 @@ private:
     Gtk::ScrolledWindow _scroller;
     Gtk::Menu _popupMenu;
     Gtk::SpinButton _spinBtn;
+    Gtk::Notebook _notebook;
+    Gtk::VBox _layersPage;
 
     UI::Widget::StyleSubject::CurrentLayer _subject;
     UI::Widget::ObjectCompositeSettings _compositeSettings;