1 /*! ========================================================================
3 ** Template Header File
4 ** $Id: toolbox.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
6 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
8 ** This software and associated documentation
9 ** are CONFIDENTIAL and PROPRIETARY property of
10 ** the above-mentioned copyright holder.
12 ** You may not copy, print, publish, or in any
13 ** other way distribute this software without
14 ** a prior written agreement with
15 ** the copyright holder.
17 ** === N O T E S ===========================================================
19 ** ========================================================================= */
21 /* === S T A R T =========================================================== */
23 #ifndef __SYNFIG_GTKMM_TOOLBOX_H
24 #define __SYNFIG_GTKMM_TOOLBOX_H
26 /* === H E A D E R S ======================================================= */
28 #include <gtkmm/window.h>
29 #include <gtkmm/tooltips.h>
30 #include <gtkmm/button.h>
31 #include <gtkmm/togglebutton.h>
32 #include <gtkmm/menu.h>
33 #include <gtkmm/table.h>
34 #include <synfig/string.h>
37 #include "dialogsettings.h"
39 /* === M A C R O S ========================================================= */
41 /* === T Y P E D E F S ===================================================== */
43 /* === C L A S S E S & S T R U C T S ======================================= */
50 class Toolbox : public Gtk::Window
52 friend class studio::StateManager;
54 DialogSettings dialog_settings;
56 Gtk::Tooltips tooltips;
57 Gtk::Button *button_undo;
58 Gtk::Button *button_redo;
60 Gtk::Button *button_eyedrop;
61 Gtk::Button *button_rotoscope;
62 Gtk::Button *button_rotoscope_bline;
63 Gtk::Button *button_rotoscope_polygon;
65 Gtk::Table *tool_table;
67 std::map<synfig::String,Gtk::ToggleButton *> state_button_map;
69 Gtk::Menu *recent_files_menu;
71 Gtk::Menu *dock_dialogs;
75 void on_recent_files_changed();
76 void on_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context, int x, int y, const Gtk::SelectionData& selection_data, guint info, guint time);
78 void change_state_(const Smach::state_base *state);
82 void change_state(const synfig::String& statename);
84 void update_undo_redo();
86 void refresh() { update_undo_redo(); }
88 void set_active_state(const synfig::String& statename);
90 void add_state(const Smach::state_base *state);
93 void dockable_registered(Dockable* x);
100 }; // END of namespace studio
102 /* === E N D =============================================================== */