add JAG to author list
[ardour.git] / gtk2_ardour / actions.h
index 5816325265465c0c28c8c5ca99ccff7625acc793..c84ad2c15bd959cd34cc037fa1de29960500689d 100644 (file)
@@ -27,6 +27,8 @@
 #include <gtkmm/actiongroup.h>
 #include <gtkmm/accelkey.h>
 
+#include <ardour/configuration.h>
+
 namespace Gtk {
        class UIManager;
 }
@@ -40,6 +42,7 @@ class ActionManager
        static void init ();
 
        static std::vector<Glib::RefPtr<Gtk::Action> > session_sensitive_actions;
+       static std::vector<Glib::RefPtr<Gtk::Action> > write_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > region_list_selection_sensitive_actions;
        static std::vector<Glib::RefPtr<Gtk::Action> > plugin_selection_sensitive_actions;
 
@@ -49,12 +52,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 +71,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>);
 
@@ -92,11 +97,15 @@ class ActionManager
 
        static bool lookup_entry (const Glib::ustring accel_path, Gtk::AccelKey& key);
 
-       static void get_all_actions (std::vector<std::string>& names, 
+       static void get_all_actions (std::vector<std::string>& labels, 
                                     std::vector<std::string>& paths, 
                                     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);
 };