25 #ifndef __SYNFIG_DOCKMANAGER_H
26 #define __SYNFIG_DOCKMANAGER_H
33 #include <synfig/string.h>
34 #include <sigc++/signal.h>
35 #include <sigc++/object.h>
36 #include <ETL/smart_ptr>
38 #include <gtkmm/widget.h>
60 std::list<Dockable*> dockable_list_;
61 std::list<DockDialog*> dock_dialog_list_;
63 sigc::signal<void,Dockable*> signal_dockable_registered_;
64 sigc::signal<void,Dockable*> signal_dockable_unregistered_;
66 etl::smart_ptr<DockSettings> dock_settings;
69 static std::map<Gtk::Container*, bool> containers_to_remove_;
71 void write_separator(std::string &x,
bool continue_ =
true);
72 void write_string(std::string &x,
const std::string &str);
73 void write_int(std::string &x,
int i);
74 void write_bool(std::string &x,
bool b);
75 void write_widget(std::string &x, Gtk::Widget* widget);
77 bool read_separator(std::string &x);
78 std::string read_string(std::string &x);
79 int read_int(std::string &x);
80 bool read_bool(std::string &x);
81 Gtk::Widget* read_widget(std::string &x);
110 static std::string
layout_from_template(
const std::string &tpl,
float dx,
float dy,
float sx,
float sy);
112 static bool swap_widgets(Gtk::Widget &widget1, Gtk::Widget &widget2);
117 static bool add_widget(Gtk::Widget &dest_widget, Gtk::Widget &src_widget,
bool vertical,
bool first);
118 static bool add_dockable(Gtk::Widget &dest_widget,
Dockable &dockable,
bool vertical,
bool first);