ardour
time_fx_dialog.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2000-2009 Paul Davis
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 
18 */
19 
20 #ifndef __ardour_time_fx_dialog_h__
21 #define __ardour_time_fx_dialog_h__
22 
23 #include <gtkmm.h>
24 
25 #include "ardour/timefx_request.h"
26 
27 #include "ardour_dialog.h"
28 #include "progress_reporter.h"
29 
30 class Editor;
31 
33 {
34 public:
37  bool pitching;
38  Gtk::Adjustment pitch_octave_adjustment;
39  Gtk::Adjustment pitch_semitone_adjustment;
40  Gtk::Adjustment pitch_cent_adjustment;
41  Gtk::SpinButton pitch_octave_spinner;
42  Gtk::SpinButton pitch_semitone_spinner;
43  Gtk::SpinButton pitch_cent_spinner;
44  Gtk::ProgressBar progress_bar;
46 
47  /* SoundTouch */
48  Gtk::CheckButton quick_button;
49  Gtk::CheckButton antialias_button;
50  Gtk::VBox upper_button_box;
51 
52  /* RubberBand */
53  Gtk::ComboBoxText stretch_opts_selector;
54  Gtk::Label stretch_opts_label;
55  Gtk::CheckButton precise_button;
56  Gtk::CheckButton preserve_formants_button;
57 
58  Gtk::Button* cancel_button;
59  Gtk::Button* action_button;
60  Gtk::VBox packer;
61  int status;
62 
63  TimeFXDialog (Editor& e, bool for_pitch);
64 
65  sigc::connection first_cancel;
66  sigc::connection first_delete;
67  void cancel_in_progress ();
68  gint delete_in_progress (GdkEventAny*);
69 
70 private:
71 
72  void update_progress_gui (float);
73 };
74 
75 #endif /* __ardour_time_fx_dialog_h__ */
sigc::connection first_delete
Gtk::CheckButton precise_button
Gtk::ComboBoxText stretch_opts_selector
Gtk::Button * action_button
Gtk::ProgressBar progress_bar
Gtk::VBox packer
Gtk::SpinButton pitch_octave_spinner
Gtk::SpinButton pitch_semitone_spinner
Gtk::CheckButton antialias_button
Gtk::Button * cancel_button
Gtk::Adjustment pitch_semitone_adjustment
Gtk::Label stretch_opts_label
Gtk::VBox upper_button_box
gint delete_in_progress(GdkEventAny *)
ARDOUR::RegionList regions
Gtk::CheckButton quick_button
void update_progress_gui(float)
void cancel_in_progress()
Editor & editor
std::list< boost::shared_ptr< Region > > RegionList
Definition: types.h:87
ARDOUR::TimeFXRequest request
Definition: editor.h:134
Gtk::Adjustment pitch_octave_adjustment
TimeFXDialog(Editor &e, bool for_pitch)
sigc::connection first_cancel
Gtk::SpinButton pitch_cent_spinner
Gtk::Adjustment pitch_cent_adjustment
Gtk::CheckButton preserve_formants_button