Stop transport rec button going red immediately on being clicked. Fixes #3340.
[ArdourMidi.git] / gtk2_ardour / time_fx_dialog.h
blobaee9d40b161fc7c01ee6096427dce4d7f32be8db
1 /*
2 Copyright (C) 2000-2009 Paul Davis
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.
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.
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.
20 #ifndef __ardour_time_fx_dialog_h__
21 #define __ardour_time_fx_dialog_h__
23 #include <gtkmm.h>
25 #include "ardour_dialog.h"
26 #include "region_selection.h"
28 class Editor;
30 struct TimeFXDialog : public ArdourDialog {
31 ARDOUR::TimeFXRequest request;
32 Editor& editor;
33 bool pitching;
34 Gtk::Adjustment pitch_octave_adjustment;
35 Gtk::Adjustment pitch_semitone_adjustment;
36 Gtk::Adjustment pitch_cent_adjustment;
37 Gtk::SpinButton pitch_octave_spinner;
38 Gtk::SpinButton pitch_semitone_spinner;
39 Gtk::SpinButton pitch_cent_spinner;
40 RegionSelection regions;
41 Gtk::ProgressBar progress_bar;
43 /* SoundTouch */
44 Gtk::CheckButton quick_button;
45 Gtk::CheckButton antialias_button;
46 Gtk::VBox upper_button_box;
48 /* RubberBand */
49 Gtk::ComboBoxText stretch_opts_selector;
50 Gtk::Label stretch_opts_label;
51 Gtk::CheckButton precise_button;
52 Gtk::CheckButton preserve_formants_button;
54 Gtk::Button* cancel_button;
55 Gtk::Button* action_button;
56 Gtk::VBox packer;
57 int status;
59 TimeFXDialog (Editor& e, bool for_pitch);
61 gint update_progress ();
62 sigc::connection first_cancel;
63 sigc::connection first_delete;
64 void cancel_in_progress ();
65 gint delete_in_progress (GdkEventAny*);
68 #endif /* __ardour_time_fx_dialog_h__ */