Optimize automation-event process splitting
[ardour.git] / gtk2_ardour / rc_option_editor.h
1 /*
2     Copyright (C) 2001-2011 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 __gtk_ardour_rc_option_editor_h__
21 #define __gtk_ardour_rc_option_editor_h__
22
23 #include "widgets/tabbable.h"
24
25 #include "option_editor.h"
26 #include "visibility_group.h"
27 #include "transport_masters_dialog.h"
28
29 /** @file rc_option_editor.h
30  *  @brief Editing of options which are obtained from and written back to one of the .rc files.
31  *
32  *  This is subclassed from OptionEditor.  Simple options (e.g. boolean and simple choices)
33  *  are expressed using subclasses of Option.  More complex UI elements are represented
34  *  using individual classes subclassed from OptionEditorBox.
35  */
36
37 /** Editor for options which are obtained from and written back to one of the .rc files. */
38 class RCOptionEditor : public OptionEditorContainer, public ARDOUR::SessionHandlePtr, public ArdourWidgets::Tabbable
39 {
40 public:
41         RCOptionEditor ();
42
43         void set_session (ARDOUR::Session*);
44
45         Gtk::Window* use_own_window (bool and_fill_it);
46         XMLNode& get_state ();
47
48 private:
49         void parameter_changed (std::string const &);
50         void ltc_generator_volume_changed ();
51         ARDOUR::RCConfiguration* _rc_config;
52         BoolOption* _solo_control_is_listen_control;
53         ComboOption<ARDOUR::ListenPosition>* _listen_position;
54         VisibilityGroup _mixer_strip_visibility;
55         BoolOption* _sync_framerate;
56         ComboStringOption* _ltc_port;
57         HSliderOption* _ltc_volume_slider;
58         Gtk::Adjustment* _ltc_volume_adjustment;
59         BoolOption* _ltc_send_continuously;
60         BoolOption* _plugin_prefer_inline;
61         TransportMastersWidget _transport_masters_widget;
62
63         PBD::ScopedConnection parameter_change_connection;
64         PBD::ScopedConnection engine_started_connection;
65
66         /* plugin actions */
67         void plugin_scan_refresh ();
68         void clear_vst_cache ();
69         void clear_vst_blacklist ();
70         void clear_au_cache ();
71         void clear_au_blacklist ();
72         void edit_lxvst_path ();
73         void edit_vst_path ();
74 };
75
76 #endif /* __gtk_ardour_rc_option_editor_h__ */