Added dialog to allow adding any Midi CC track.
[ardour.git] / gtk2_ardour / keyboard.h
index c6a9cd08c77774d29e87aa9ef2b2c75c991bb80b..3d9e1c9f41e254091033de37d3b56500185b713e 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_keyboard_h__
@@ -35,7 +34,7 @@
 using std::vector;
 using std::string;
 
-class Keyboard : public sigc::trackable, Stateful
+class Keyboard : public sigc::trackable, PBD::Stateful
 {
   public:
        Keyboard ();
@@ -91,6 +90,10 @@ class Keyboard : public sigc::trackable, Stateful
 
        static Keyboard& the_keyboard() { return *_the_keyboard; }
 
+       static bool some_magic_widget_has_focus ();
+       static void magic_widget_grab_focus ();
+       static void magic_widget_drop_focus ();
+
   private:
        static Keyboard* _the_keyboard;
 
@@ -105,6 +108,8 @@ class Keyboard : public sigc::trackable, Stateful
 
        static gint _snooper (GtkWidget*, GdkEventKey*, gpointer);
        gint snooper (GtkWidget*, GdkEventKey*);
+
+       static bool _some_magic_widget_has_focus;
 };
 
 #endif /* __ardour_keyboard_h__ */