25 #ifndef __SYNFIG_STUDIO_DOCKABLE_H
26 #define __SYNFIG_STUDIO_DOCKABLE_H
30 #include <gtkmm/stockid.h>
31 #include <gtkmm/button.h>
33 #include <synfig/string.h>
34 #include <gtkmm/table.h>
35 #include <gtkmm/tooltip.h>
36 #include <gtkmm/label.h>
37 #include <gtkmm/frame.h>
38 #include <gtkmm/handlebox.h>
39 #include <gtkmm/box.h>
40 #include <gtkmm/scrolledwindow.h>
41 #include <gtkmm/toolbar.h>
42 #include <gtkmm/toolbutton.h>
61 sigc::signal<void> signal_stock_id_changed_;
62 sigc::connection prev_widget_delete_connection;
70 Gtk::Toolbar *toolbar_;
73 synfig::String local_name_;
75 Gtk::Label title_label_;
77 Gtk::HBox header_box_;
80 Gtk::ScrolledWindow *scrolled_;
81 Gtk::Widget *prev_widget_;
85 Gtk::StockID stock_id_;
95 Dockable(
const synfig::String& name,
const synfig::String& local_name,Gtk::StockID stock_id_=Gtk::StockID(
" "));
100 const synfig::String&
get_name()
const {
return name_; }
113 void add(Gtk::Widget& x);
115 Gtk::ToolButton*
add_button(
const Gtk::StockID& stock_id,
const synfig::String& tooltip=synfig::String());
126 void on_drag_data_get(
const Glib::RefPtr<Gdk::DragContext>&, Gtk::SelectionData& selection_data,
guint info,
guint time);
127 void on_drag_end(
const Glib::RefPtr<Gdk::DragContext>&context);
128 void on_drag_begin(
const Glib::RefPtr<Gdk::DragContext>&context);
129 void on_drag_data_received(
const Glib::RefPtr<Gdk::DragContext>& context,
int,
int,
const Gtk::SelectionData& selection_data,
guint,
guint time);