X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ftempo_dialog.h;h=720a87c4ba6fd4f11b1ec6fd9cc2d224468e4c47;hb=ca49f7cba731bd443c4a62184c8dec892b4ce5e7;hp=9756f62e8ec27a8f1f72503816c0900926aecd46;hpb=cdd680f0b72a2081e05ad981d0467526310150c8;p=ardour.git diff --git a/gtk2_ardour/tempo_dialog.h b/gtk2_ardour/tempo_dialog.h index 9756f62e8e..720a87c4ba 100644 --- a/gtk2_ardour/tempo_dialog.h +++ b/gtk2_ardour/tempo_dialog.h @@ -33,14 +33,16 @@ struct TempoDialog : public ArdourDialog Gtk::Frame when_frame; char buf[64]; - TempoDialog (ARDOUR::TempoMap&, jack_nframes_t, string action); - TempoDialog (ARDOUR::TempoSection&, string action); + TempoDialog (ARDOUR::TempoMap&, 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 @@ -64,8 +66,8 @@ struct MeterDialog : public ArdourDialog Gtk::Frame when_frame; char buf[64]; - MeterDialog (ARDOUR::TempoMap&, jack_nframes_t, string action); - MeterDialog (ARDOUR::MeterSection&, string action); + MeterDialog (ARDOUR::TempoMap&, nframes_t, const string & action); + MeterDialog (ARDOUR::MeterSection&, const string & action); double get_bpb (); double get_note_type (); @@ -73,6 +75,9 @@ struct MeterDialog : public ArdourDialog 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__ */