1 /* === S Y N F I G ========================================================= */
3 ** \brief Template Header
8 ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
10 ** This package is free software; you can redistribute it and/or
11 ** modify it under the terms of the GNU General Public License as
12 ** published by the Free Software Foundation; either version 2 of
13 ** the License, or (at your option) any later version.
15 ** This package is distributed in the hope that it will be useful,
16 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 ** General Public License for more details.
21 /* ========================================================================= */
23 /* === S T A R T =========================================================== */
25 #ifndef __SYNFIG_STUDIO_DOCK_DIALOG_H
26 #define __SYNFIG_STUDIO_DOCK_DIALOG_H
28 /* === H E A D E R S ======================================================= */
30 #include <gtkmm/stockid.h>
31 #include <gtkmm/button.h>
32 #include "dialogsettings.h"
33 #include <synfig/string.h>
34 #include <gtkmm/dialog.h>
35 #include <gtkmm/tooltips.h>
36 #include <gtkmm/label.h>
37 #include <gtkmm/frame.h>
38 #include <gtkmm/handlebox.h>
39 #include <gtkmm/scrolledwindow.h>
40 #include <gtkmm/accelgroup.h>
42 /* === M A C R O S ========================================================= */
44 /* === T Y P E D E F S ===================================================== */
46 /* === C L A S S E S & S T R U C T S ======================================= */
48 namespace Gtk { class Box; class Paned; };
54 class Widget_CompSelect;
57 class DockDialog : public Gtk::Window
59 friend class DockManager;
60 friend class DockBook;
61 friend class Dockable;
62 sigc::connection empty_sig;
64 bool composition_selector_;
71 std::list<DockBook*> dock_book_list;
73 std::vector<Gtk::Paned*> panels_;
74 std::vector<int> dock_book_sizes_;
77 DockBook* last_dock_book;
79 Widget_CompSelect* widget_comp_select;
90 void set_id(int x) { id_=x; }
92 void refresh_accel_group();
94 void drop_on_append(const Glib::RefPtr<Gdk::DragContext>& context, int, int, const Gtk::SelectionData& selection_data, guint, guint time);
95 void drop_on_prepend(const Glib::RefPtr<Gdk::DragContext>& context, int, int, const Gtk::SelectionData& selection_data, guint, guint time);
99 const std::vector<int>& get_dock_book_sizes()const { return dock_book_sizes_;}
100 void set_dock_book_sizes(const std::vector<int>&);
101 void rebuild_sizes();
105 int get_id()const { return id_; }
107 DockBook* append_dock_book();
108 DockBook* prepend_dock_book();
109 void erase_dock_book(DockBook*);
111 void set_composition_selector(bool x);
112 bool get_composition_selector()const { return composition_selector_; }
117 DockBook& get_dock_book();
118 const DockBook& get_dock_book()const;
120 synfig::String get_contents()const;
121 void set_contents(const synfig::String& x);
122 }; // END of studio::DockDialog
124 }; // END of namespace studio
126 /* === E N D =============================================================== */