1 #ifndef __ardour_gtk_tempo_dialog_h__
2 #define __ardour_gtk_tempo_dialog_h__
4 #include <gtkmm/entry.h>
5 #include <gtkmm/frame.h>
7 #include <gtkmm/button.h>
8 #include <gtkmm/label.h>
9 #include <gtkmm/table.h>
10 #include <gtkmm/entry.h>
11 #include <gtkmm/comboboxtext.h>
13 #include <ardour/types.h>
14 #include <ardour/tempo.h>
16 #include "ardour_dialog.h"
18 struct TempoDialog : public ArdourDialog
23 Gtk::Button ok_button;
24 Gtk::Button cancel_button;
28 Gtk::Entry when_bar_entry;
29 Gtk::Entry when_beat_entry;
30 Gtk::Label when_bar_label;
31 Gtk::Label when_beat_label;
32 Gtk::Table when_table;
33 Gtk::Frame when_frame;
36 TempoDialog (ARDOUR::TempoMap&, jack_nframes_t, string action);
37 TempoDialog (ARDOUR::TempoSection&, string action);
40 bool get_bbt_time (ARDOUR::BBT_Time&);
43 void init (const ARDOUR::BBT_Time& start, double, bool);
46 struct MeterDialog : public ArdourDialog
49 Gtk::ComboBoxText note_types;
50 vector<const gchar *> strings;
51 Gtk::Frame note_frame;
54 Gtk::Button ok_button;
55 Gtk::Button cancel_button;
57 Gtk::HBox hspacer1, hspacer2;
58 Gtk::VBox vspacer1, vspacer2;
59 Gtk::Entry when_bar_entry;
60 Gtk::Entry when_beat_entry;
61 Gtk::Label when_bar_label;
62 Gtk::Label when_beat_label;
63 Gtk::Table when_table;
64 Gtk::Frame when_frame;
67 MeterDialog (ARDOUR::TempoMap&, jack_nframes_t, string action);
68 MeterDialog (ARDOUR::MeterSection&, string action);
71 double get_note_type ();
72 bool get_bbt_time (ARDOUR::BBT_Time&);
75 void init (const ARDOUR::BBT_Time&, double, double, bool);
78 #endif /* __ardour_gtk_tempo_dialog_h__ */