X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fwidget%2Fdock.h;h=dd501f186e4765ae340e022408a1e0dccccc608c;hb=17eb9e57e1550f744916bf486947162aa523bdda;hp=be0c4ef1db5ae7692a5088b632812de6795c6127;hpb=a0df1b8dd5b14367c583ce2f72a2ca6bf1cde799;p=inkscape.git diff --git a/src/ui/widget/dock.h b/src/ui/widget/dock.h index be0c4ef1d..dd501f186 100644 --- a/src/ui/widget/dock.h +++ b/src/ui/widget/dock.h @@ -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 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 _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;