X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Ftempo_dialog.h;h=eda4e61f1a27a2145086f1629b3d53c40e9a8cc4;hb=0038820f473664a9a4fb524537cd846a9e024661;hp=616be2433e3cf4c0d4cf49dc6ae19c02d6bf0c69;hpb=7815aa1e89e07e2785d6995b94a28a72a96c74cb;p=ardour.git diff --git a/gtk2_ardour/tempo_dialog.h b/gtk2_ardour/tempo_dialog.h index 616be2433e..eda4e61f1a 100644 --- a/gtk2_ardour/tempo_dialog.h +++ b/gtk2_ardour/tempo_dialog.h @@ -47,16 +47,19 @@ public: private: void init (const Timecode::BBT_Time& start, double, double, bool); + bool is_user_input_valid() const; void bpm_changed (); bool bpm_button_press (GdkEventButton* ); bool bpm_button_release (GdkEventButton* ); bool entry_key_release (GdkEventKey* ); void pulse_change (); - void tap_tempo (); + bool tap_tempo_button_press (GdkEventButton* ); + bool tap_tempo_focus_out (GdkEventFocus* ); typedef std::map NoteTypes; NoteTypes note_types; + bool tapped; // whether the tap-tempo button has been clicked gint64 last_tap; double average_interval; @@ -84,6 +87,7 @@ public: private: void init (const Timecode::BBT_Time&, double, double, bool); + bool is_user_input_valid() const; bool entry_key_press (GdkEventKey* ); bool entry_key_release (GdkEventKey* ); void note_type_change ();