/*
- Copyright (C) 2000-2009 Paul Davis
+ Copyright (C) 2000-2009 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <gtkmm.h>
+#include "ardour/timefx_request.h"
+
#include "ardour_dialog.h"
-#include "region_selection.h"
+#include "progress_reporter.h"
class Editor;
-struct TimeFXDialog : public ArdourDialog {
+class TimeFXDialog : public ArdourDialog, public ProgressReporter
+{
+public:
ARDOUR::TimeFXRequest request;
Editor& editor;
bool pitching;
Gtk::SpinButton pitch_octave_spinner;
Gtk::SpinButton pitch_semitone_spinner;
Gtk::SpinButton pitch_cent_spinner;
- RegionSelection regions;
Gtk::ProgressBar progress_bar;
+ ARDOUR::RegionList regions;
/* SoundTouch */
- Gtk::ToggleButton quick_button;
- Gtk::ToggleButton antialias_button;
- Gtk::HBox upper_button_box;
+ Gtk::CheckButton quick_button;
+ Gtk::CheckButton antialias_button;
+ Gtk::VBox upper_button_box;
/* RubberBand */
Gtk::ComboBoxText stretch_opts_selector;
Gtk::Label stretch_opts_label;
- Gtk::ToggleButton precise_button;
- Gtk::ToggleButton preserve_formants_button;
- Gtk::HBox opts_box;
+ Gtk::CheckButton precise_button;
+ Gtk::CheckButton preserve_formants_button;
Gtk::Button* cancel_button;
Gtk::Button* action_button;
TimeFXDialog (Editor& e, bool for_pitch);
- gint update_progress ();
sigc::connection first_cancel;
sigc::connection first_delete;
void cancel_in_progress ();
gint delete_in_progress (GdkEventAny*);
+
+private:
+
+ void update_progress_gui (float);
};
#endif /* __ardour_time_fx_dialog_h__ */