Consolidate PinDialog Session/recording checks
[ardour.git] / gtk2_ardour / tempo_dialog.h
index 06c9732fe5b296c85bb52daac3a3cd03c6951882..f9f0dd34a01e423b107b4b6a9022cc0d43344a8d 100644 (file)
@@ -38,7 +38,7 @@
 class TempoDialog : public ArdourDialog
 {
 public:
-       TempoDialog (ARDOUR::TempoMap&, framepos_t, const std::string & action);
+       TempoDialog (ARDOUR::TempoMap&, samplepos_t, const std::string & action);
        TempoDialog (ARDOUR::TempoMap&, ARDOUR::TempoSection&, const std::string & action);
 
        double get_bpm ();
@@ -58,9 +58,12 @@ private:
        void pulse_change ();
        void tempo_type_change ();
        void lock_style_change ();
-       bool tap_tempo_button_press (GdkEventButton* );
+       bool tap_tempo_key_press (GdkEventKey*);
+       bool tap_tempo_button_press (GdkEventButton*);
        bool tap_tempo_focus_out (GdkEventFocus* );
 
+       void tap_tempo ();
+
        typedef std::map<std::string,float> NoteTypes;
        NoteTypes note_types;
 
@@ -99,7 +102,7 @@ class MeterDialog : public ArdourDialog
 {
 public:
 
-       MeterDialog (ARDOUR::TempoMap&, framepos_t, const std::string & action);
+       MeterDialog (ARDOUR::TempoMap&, samplepos_t, const std::string & action);
        MeterDialog (ARDOUR::TempoMap&, ARDOUR::MeterSection&, const std::string & action);
 
        double get_bpb ();