1 /* === S I N F G =========================================================== */
3 ** \brief Template Header
5 ** $Id: layeractionmanager.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 __SINFG_LAYER_ACTION_MANAGER_H
25 #define __SINFG_LAYER_ACTION_MANAGER_H
27 /* === H E A D E R S ======================================================= */
29 #include <gtkmm/uimanager.h>
30 #include <gtkmm/treeview.h>
31 #include <sinfgapp/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 LayerActionManager
45 Glib::RefPtr<Gtk::UIManager> ui_manager_;
46 //Glib::RefPtr<Gtk::TreeSelection> tree_selection_;
47 LayerTree* layer_tree_;
48 etl::handle<sinfgapp::CanvasInterface> canvas_interface_;
50 Glib::RefPtr<Gtk::ActionGroup> action_group_;
51 Gtk::UIManager::ui_merge_id popup_id_;
54 Glib::RefPtr<Gtk::ActionGroup> action_group_copy_paste;
56 Glib::RefPtr<Gtk::Action> action_cut_;
57 Glib::RefPtr<Gtk::Action> action_copy_;
58 Glib::RefPtr<Gtk::Action> action_paste_;
60 Glib::RefPtr<Gtk::Action> action_amount_inc_;
61 Glib::RefPtr<Gtk::Action> action_amount_dec_;
62 Glib::RefPtr<Gtk::Action> action_amount_;
65 std::list<sinfg::Layer::Handle> clipboard_;
68 sigc::connection selection_changed_connection;
71 sigc::connection queue_refresh_connection;
73 std::list<sigc::connection> update_connection_list;
86 ~LayerActionManager();
88 void set_ui_manager(const Glib::RefPtr<Gtk::UIManager> &x);
89 Glib::RefPtr<Gtk::UIManager> get_ui_manager()const { return ui_manager_; }
91 void set_layer_tree(LayerTree* x);
92 LayerTree* get_layer_tree()const { return layer_tree_; }
94 void set_canvas_interface(const etl::handle<sinfgapp::CanvasInterface> &x);
95 etl::handle<sinfgapp::CanvasInterface> get_canvas_interface()const { return canvas_interface_; }
97 etl::loose_handle<sinfgapp::Instance> get_instance()const { return canvas_interface_->get_instance(); }
101 }; // END of LayerActionManager
103 }; // END of namespace studio
105 /* === E N D =============================================================== */