a reverb is a reverb is a reverb
[ardour.git] / gtk2_ardour / keyeditor.h
index d9b8ed976831e7f1b48eb3df7d7d5e454eb713ef..3e4c5d068ccdc460f69c4ac2c90d24f8d4f01851 100644 (file)
@@ -43,13 +43,19 @@ class KeyEditor : public ArdourWindow
        void add_tab (std::string const &name, Gtkmm2ext::Bindings&);
        void remove_tab (std::string const &name);
 
+       static sigc::signal<void> UpdateBindings;
+
+       void disconnect () {
+               _refresh_connection.disconnect ();
+       }
+
        private:
        class Tab : public Gtk::VBox
        {
                public:
                Tab (KeyEditor&, std::string const &name, Gtkmm2ext::Bindings*);
 
-               void populate ();
+               uint32_t populate ();
                void unbind ();
                void bind (GdkEventKey* release_event, guint pressed_key);
                void action_selected ();
@@ -89,8 +95,8 @@ class KeyEditor : public ArdourWindow
                guint last_keyval;
 
                protected:
-               bool on_key_press_event (GdkEventKey*);
-               bool on_key_release_event (GdkEventKey*);
+               bool key_press_event (GdkEventKey*);
+               bool key_release_event (GdkEventKey*);
                Gtk::TreeModel::iterator find_action_path (Gtk::TreeModel::const_iterator begin, Gtk::TreeModel::const_iterator end, const std::string& path) const;
        };
 
@@ -105,6 +111,7 @@ class KeyEditor : public ArdourWindow
        Gtk::Label reset_label;
        Gtkmm2ext::SearchBar filter_entry;
        std::string filter_string;
+       Gtk::Button print_button;
 
        typedef std::vector<Tab*> Tabs;
 
@@ -113,12 +120,16 @@ class KeyEditor : public ArdourWindow
 
        void unbind ();
        void reset ();
+       void refresh ();
        void page_change (GtkNotebookPage*, guint);
 
        unsigned int sort_column;
        Gtk::SortType sort_type;
        void toggle_sort_type ();
        void search_string_updated (const std::string&);
+       void print () const;
+
+       sigc::connection _refresh_connection;
 };
 
 #endif /* __ardour_gtk_key_editor_h__ */