summaryrefslogtreecommitdiff
path: root/gtk2_ardour/plugin_ui.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2008-10-29 07:35:40 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2008-10-29 07:35:40 +0000
commitdeeef0a263d24b5ddbe38a601f89ec99a8f19823 (patch)
tree68b27a834f9eafc5f79098da99ca29f508f13700 /gtk2_ardour/plugin_ui.h
parent01c2be0bab9209d74542888ad6e2e9fc27d19cf7 (diff)
step 2 of keyboard focus work for plugin windows
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4026 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/plugin_ui.h')
-rw-r--r--gtk2_ardour/plugin_ui.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk2_ardour/plugin_ui.h b/gtk2_ardour/plugin_ui.h
index 4f0d92c21c..2bf55b2e0d 100644
--- a/gtk2_ardour/plugin_ui.h
+++ b/gtk2_ardour/plugin_ui.h
@@ -34,6 +34,7 @@
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/label.h>
#include <gtkmm/menu.h>
+#include <gtkmm/image.h>
#include <gtkmm/adjustment.h>
#include <gtkmm/togglebutton.h>
#include <gtkmm/socket.h>
@@ -85,10 +86,15 @@ class PlugUIBase : public virtual sigc::trackable
Gtk::ComboBoxText preset_combo;
Gtk::Button save_button;
Gtk::ToggleButton bypass_button;
+ Gtk::EventBox focus_button;
+
+ Gtk::Image* focus_out_image;
+ Gtk::Image* focus_in_image;
void setting_selected();
void save_plugin_setting (void);
void bypass_toggled();
+ bool focus_toggled(GdkEventButton*);
void redirect_active_changed (ARDOUR::Redirect* r, void* src);
};
@@ -212,6 +218,8 @@ class PluginUIWindow : public Gtk::Window
bool on_enter_notify_event (GdkEventCrossing*);
bool on_leave_notify_event (GdkEventCrossing*);
+ bool on_focus_in_event (GdkEventFocus*);
+ bool on_focus_out_event (GdkEventFocus*);
bool on_key_press_event (GdkEventKey*);
bool on_key_release_event (GdkEventKey*);
void on_show ();