1 /* === S Y N F I G ========================================================= */
3 ** \brief Template Header
5 ** $Id: groupactionmanager.h,v 1.1.1.1 2005/01/07 03:34:36 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SYNFIG_GROUP_ACTION_MANAGER_H
25 #define __SYNFIG_GROUP_ACTION_MANAGER_H
27 /* === H E A D E R S ======================================================= */
29 #include <gtkmm/uimanager.h>
30 #include <gtkmm/treeview.h>
31 #include <synfigapp/canvasinterface.h>
33 /* === M A C R O S ========================================================= */
35 /* === T Y P E D E F S ===================================================== */
37 /* === C L A S S E S & S T R U C T S ======================================= */
43 class GroupActionManager
45 Glib::RefPtr<Gtk::UIManager> ui_manager_;
46 LayerGroupTree* group_tree_;
47 etl::handle<synfigapp::CanvasInterface> canvas_interface_;
49 Glib::RefPtr<Gtk::ActionGroup> action_group_;
50 Gtk::UIManager::ui_merge_id popup_id_;
52 sigc::connection selection_changed_connection;
55 sigc::connection queue_refresh_connection;
65 ~GroupActionManager();
67 void set_ui_manager(const Glib::RefPtr<Gtk::UIManager> &x);
68 Glib::RefPtr<Gtk::UIManager> get_ui_manager()const { return ui_manager_; }
70 void set_group_tree(LayerGroupTree* x);
71 LayerGroupTree* get_group_tree()const { return group_tree_; }
73 void set_canvas_interface(const etl::handle<synfigapp::CanvasInterface> &x);
74 etl::handle<synfigapp::CanvasInterface> get_canvas_interface()const { return canvas_interface_; }
78 }; // END of GroupActionManager
80 }; // END of namespace studio
82 /* === E N D =============================================================== */