summaryrefslogtreecommitdiff
path: root/gtk2_ardour/keyboard_target.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2005-09-26 18:24:59 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2005-09-26 18:24:59 +0000
commit4b233612261e2d13ebbd1931f4d999c6da1451e9 (patch)
treee2b0cbcb2c870a2197a0c065c5d451a85c055d7d /gtk2_ardour/keyboard_target.h
parent08d33fcb0d35b6448ac1b5a4bcc54095cacbfccd (diff)
continuing fixes to get this shibboleth to compile
git-svn-id: svn://localhost/trunk/ardour2@43 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/keyboard_target.h')
-rw-r--r--gtk2_ardour/keyboard_target.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/gtk2_ardour/keyboard_target.h b/gtk2_ardour/keyboard_target.h
index 88b1de6f88..f542261b54 100644
--- a/gtk2_ardour/keyboard_target.h
+++ b/gtk2_ardour/keyboard_target.h
@@ -24,19 +24,20 @@
#include <map>
#include <string>
#include <sigc++/signal.h>
+#include <sigc++/slot.h>
#include <gdk/gdk.h>
-#include <gtkmm/window.h>
#include <pbd/xml++.h>
#include "keyboard.h"
-using std::map;
-using std::string;
+namespace Gtk {
+ class Window;
+}
class KeyboardTarget
{
public:
- KeyboardTarget(Gtk::Window& w, string name);
+ KeyboardTarget(Gtk::Window& w, std::string name);
virtual ~KeyboardTarget();
sigc::signal<void> Hiding;
@@ -44,35 +45,35 @@ class KeyboardTarget
typedef sigc::slot<void> KeyAction;
- string name() const { return _name; }
+ std::string name() const { return _name; }
void key_press_event (GdkEventKey *, Keyboard::State&, bool& handled);
void key_release_event (GdkEventKey *, Keyboard::State&);
- int add_binding (string keys, string name);
- string get_binding (string name); /* returns keys bound to name */
+ int add_binding (std::string keys, std::string name);
+ std::string get_binding (std::string name); /* returns keys bound to name */
XMLNode& get_binding_state () const;
int set_binding_state (const XMLNode&);
- static int32_t add_action (string, KeyAction);
- static int32_t find_action (string, KeyAction&);
- static int32_t remove_action (string);
+ static int32_t add_action (std::string, KeyAction);
+ static int32_t find_action (std::string, KeyAction&);
+ static int32_t remove_action (std::string);
static void show_all_actions();
Gtk::Window& window() const { return _window; }
protected:
- typedef map<Keyboard::State,KeyAction> KeyMap;
- typedef map<string,string> BindingMap;
+ typedef std::map<Keyboard::State,KeyAction> KeyMap;
+ typedef std::map<std::string,std::string> BindingMap;
KeyMap keymap;
BindingMap bindings;
private:
- typedef map<string,KeyAction> ActionMap;
+ typedef map<std::string,KeyAction> ActionMap;
static ActionMap actions;
- string _name;
+ std::string _name;
Gtk::Window& _window;
int load_bindings (const XMLNode&);