Superficial code cleanup.
[ardour.git] / gtk2_ardour / actions.h
index 5816325265465c0c28c8c5ca99ccff7625acc793..d8b2c64edad14a244ff11dd0f713089d3a157492 100644 (file)
@@ -27,6 +27,8 @@
 #include <gtkmm/actiongroup.h>
 #include <gtkmm/accelkey.h>
 
+#include <ardour/configuration.h>
+
 namespace Gtk {
        class UIManager;
 }
@@ -49,12 +51,13 @@ class ActionManager
        static std::vector<Glib::RefPtr<Gtk::Action> > time_selection_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > line_selection_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > playlist_selection_sensitive_actions;
+       static std::vector<Glib::RefPtr<Gtk::Action> > mouse_edit_point_requires_canvas_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 std::vector<Glib::RefPtr<Gtk::Action> > edit_cursor_in_region_sensitive_actions;
+       static std::vector<Glib::RefPtr<Gtk::Action> > edit_point_in_region_sensitive_actions;
 
        static void map_some_state (const char* group, const char* action, bool (ARDOUR::Configuration::*get)() const);
        static void toggle_config_state (const char* group, const char* action, bool (ARDOUR::Configuration::*set)(bool), bool (ARDOUR::Configuration::*get)(void) const);
@@ -67,6 +70,7 @@ class ActionManager
 
        static Gtk::Widget* get_widget (const char * name);
        static Glib::RefPtr<Gtk::Action> get_action (const char* group, const char* name);
+       static Glib::RefPtr<Gtk::Action> get_action (const char* path);
 
        static void add_action_group (Glib::RefPtr<Gtk::ActionGroup>);
 
@@ -97,6 +101,10 @@ class ActionManager
                                     std::vector<std::string>& keys, 
                                     std::vector<Gtk::AccelKey>& bindings);
 
+       static void get_all_actions (std::vector<std::string>& groups, 
+                                    std::vector<std::string>& paths, 
+                                    std::vector<Gtk::AccelKey>& bindings);
+
        static void uncheck_toggleaction (const char * actionname);
 };