#ifndef __ardour_gtk_tempo_dialog_h__
#define __ardour_gtk_tempo_dialog_h__
-#include <gtkmm.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/frame.h>
+#include <gtkmm/box.h>
+#include <gtkmm/button.h>
+#include <gtkmm/label.h>
+#include <gtkmm/table.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/comboboxtext.h>
+
#include <ardour/types.h>
#include <ardour/tempo.h>
Gtk::Frame when_frame;
char buf[64];
- TempoDialog (ARDOUR::TempoMap&, jack_nframes_t, string action);
- TempoDialog (ARDOUR::TempoSection&, string action);
+ TempoDialog (ARDOUR::TempoMap&, jack_nframes_t, const string & action);
+ TempoDialog (ARDOUR::TempoSection&, const string & action);
double get_bpm ();
bool get_bbt_time (ARDOUR::BBT_Time&);
private:
void init (const ARDOUR::BBT_Time& start, double, bool);
+ bool bpm_key_press (GdkEventKey* );
+ bool bpm_key_release (GdkEventKey* );
};
struct MeterDialog : public ArdourDialog
{
Gtk::Entry bpb_entry;
- Gtk::Combo note_types;
- vector<const gchar *> strings;
+ Gtk::ComboBoxText note_types;
+ vector<string> strings;
Gtk::Frame note_frame;
Gtk::Frame bpb_frame;
Gtk::VBox vpacker;
Gtk::Frame when_frame;
char buf[64];
- MeterDialog (ARDOUR::TempoMap&, jack_nframes_t, string action);
- MeterDialog (ARDOUR::MeterSection&, string action);
+ MeterDialog (ARDOUR::TempoMap&, jack_nframes_t, const string & action);
+ MeterDialog (ARDOUR::MeterSection&, const string & action);
double get_bpb ();
double get_note_type ();
private:
void init (const ARDOUR::BBT_Time&, double, double, bool);
+ bool bpb_key_press (GdkEventKey* );
+ bool bpb_key_release (GdkEventKey* );
+ void note_types_change ();
};
#endif /* __ardour_gtk_tempo_dialog_h__ */