Code

first crack at enabling blend for layers dialog
[inkscape.git] / src / ui / widget / dock.h
index be0c4ef1db5ae7692a5088b632812de6795c6127..dd501f186e4765ae340e022408a1e0dccccc608c 100644 (file)
@@ -37,10 +37,11 @@ public:
 
     Gtk::Widget& getWidget();     //< return the top widget
     Gtk::Paned *getParentPaned();
-
     Gtk::Paned *getPaned();
 
-    bool isEmpty() const;     //< true iff none of the dock's items are in state != UNATTACHED
+    GtkWidget* getGdlWidget();    //< return the top gdl widget
+
+    bool isEmpty() const;         //< true iff none of the dock's items are in a docked state
     bool hasIconifiedItems() const;
 
     Glib::SignalProxy0<void> signal_layout_changed();
@@ -51,6 +52,9 @@ public:
     /** Toggle size of dock between the previous dimensions and the ones sent as parameters */
     void toggleDockable(int width=0, int height=0);
 
+    /** Scrolls the scrolled window container to make the provided dock item visible, if needed */
+    void scrollToItem(DockItem& item);
+
 protected:
 
     std::list<const DockItem *> _dock_items;   //< added dock items
@@ -67,8 +71,10 @@ protected:
 
     /** Internal signal handlers */
     void _onLayoutChanged();
+    void _onPanedButtonEvent(GdkEventButton *event);
 
-    void _onFoo();
+    static gboolean _on_paned_button_event(GtkWidget *widget, GdkEventButton *event, 
+                                           gpointer user_data);
 
     /** GdlDock signal proxy structures */
     static const Glib::SignalProxyInfo _signal_layout_changed_proxy;