button hacks and more
[ardour.git] / gtk2_ardour / actions.h
index f7f5577f5333834fb0155308c1b8e61c012fd794..32b0840c7afa42a639a2dcad8158c85332f8098d 100644 (file)
@@ -18,16 +18,22 @@ class ActionManager
        ActionManager() {}
        virtual ~ActionManager () {}
 
+       static void init ();
+
        static std::vector<Glib::RefPtr<Gtk::Action> > session_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > region_list_selection_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > region_selection_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > track_selection_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > plugin_selection_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > range_sensitive_actions;
+       static std::vector<Glib::RefPtr<Gtk::Action> > transport_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > jack_sensitive_actions;
+       static std::vector<Glib::RefPtr<Gtk::Action> > jack_opposite_sensitive_actions;
+
+       static void set_sensitive (std::vector<Glib::RefPtr<Gtk::Action> >& actions, bool);
 
        static std::string unbound_string;  /* the key string returned if an action is not bound */
-       static Gtk::UIManager ui_manager;
+       static Glib::RefPtr<Gtk::UIManager> ui_manager;
 
        static Gtk::Widget* get_widget (Glib::ustring name);
        static Glib::RefPtr<Gtk::Action> get_action (Glib::ustring name);
@@ -60,7 +66,8 @@ class ActionManager
                                     std::vector<std::string>& paths, 
                                     std::vector<std::string>& keys, 
                                     std::vector<Gtk::AccelKey>& bindings);
-       
+
+       static void uncheck_toggleaction (const std::string& actionname);
 };
 
 #endif /* __ardour_gtk_actions_h__ */