mp4chaps Lua script: don't clutter global environment
[ardour.git] / gtk2_ardour / time_fx_dialog.h
index 03e0ccfdcd0aad5e5a3947ca2ae1f57ca9532ddf..426453ff48d4e80b1d8a82ac4e9aa4f67468b7b0 100644 (file)
@@ -38,7 +38,7 @@ class AudioClock;
 
 class TimeFXDialog : public ArdourDialog, public ProgressReporter
 {
-  public:
+public:
        /* We need a position so that BBT mode in the clock can function */
        TimeFXDialog (Editor& e, bool for_pitch, ARDOUR::framecnt_t old_length, ARDOUR::framecnt_t new_length, ARDOUR::framepos_t position);
 
@@ -74,7 +74,16 @@ class TimeFXDialog : public ArdourDialog, public ProgressReporter
 
        void start_updates ();
 
-  private:
+       void on_response (int response_id) {
+               Gtk::Dialog::on_response (response_id);
+       }
+
+       void hide () {
+               regions.clear ();
+               ArdourDialog::hide ();
+       }
+
+private:
        ARDOUR::framecnt_t      original_length;
        Gtk::Adjustment pitch_octave_adjustment;
        Gtk::Adjustment pitch_semitone_adjustment;