summaryrefslogtreecommitdiff
path: root/gtk2_ardour/tempo_dialog.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-02-02 20:55:16 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-02-02 20:55:16 +0000
commitdfc75e0561c4994c65d4893d107355a8d1db05b9 (patch)
tree8b27d469b9737d773b7a210fca40a9781b8502c6 /gtk2_ardour/tempo_dialog.h
parent182bc69eac310248e92aa1bd4d6a5463d03f9fb2 (diff)
new keyboard bindings for moving playhead to region starts+ends ; use spin button for tempo, as per #1449
git-svn-id: svn://localhost/ardour2/trunk@1409 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/tempo_dialog.h')
-rw-r--r--gtk2_ardour/tempo_dialog.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk2_ardour/tempo_dialog.h b/gtk2_ardour/tempo_dialog.h
index 720a87c4ba..09a91dd3e3 100644
--- a/gtk2_ardour/tempo_dialog.h
+++ b/gtk2_ardour/tempo_dialog.h
@@ -8,6 +8,7 @@
#include <gtkmm/label.h>
#include <gtkmm/table.h>
#include <gtkmm/entry.h>
+#include <gtkmm/spinbutton.h>
#include <gtkmm/comboboxtext.h>
#include <ardour/types.h>
@@ -17,8 +18,9 @@
struct TempoDialog : public ArdourDialog
{
- Gtk::Entry bpm_entry;
- Gtk::Frame bpm_frame;
+ Gtk::Adjustment bpm_adjustment;
+ Gtk::SpinButton bpm_spinner;
+ Gtk::Frame bpm_frame;
Gtk::VBox vpacker;
Gtk::Button ok_button;
Gtk::Button cancel_button;
@@ -41,8 +43,9 @@ struct TempoDialog : public ArdourDialog
private:
void init (const ARDOUR::BBT_Time& start, double, bool);
- bool bpm_key_press (GdkEventKey* );
- bool bpm_key_release (GdkEventKey* );
+ void bpm_changed ();
+ bool bpm_button_press (GdkEventButton* );
+ bool bpm_button_release (GdkEventButton* );
};
struct MeterDialog : public ArdourDialog