2011-04-05 20:32:12 -04:00
|
|
|
/*
|
|
|
|
Copyright (C) 2001-2011 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
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2013-09-26 05:58:07 -04:00
|
|
|
#ifndef __gtk_ardour_rc_option_editor_h__
|
|
|
|
#define __gtk_ardour_rc_option_editor_h__
|
|
|
|
|
2009-05-13 20:15:38 -04:00
|
|
|
#include "option_editor.h"
|
2011-10-29 16:08:48 -04:00
|
|
|
#include "visibility_group.h"
|
2009-05-13 20:15:38 -04:00
|
|
|
|
|
|
|
/** @file rc_option_editor.h
|
2009-11-15 21:18:51 -05:00
|
|
|
* @brief Editing of options which are obtained from and written back to one of the .rc files.
|
2009-05-13 20:15:38 -04:00
|
|
|
*
|
|
|
|
* This is subclassed from OptionEditor. Simple options (e.g. boolean and simple choices)
|
|
|
|
* are expressed using subclasses of Option. More complex UI elements are represented
|
2010-07-06 20:40:58 -04:00
|
|
|
* using individual classes subclassed from OptionEditorBox.
|
2009-05-13 20:15:38 -04:00
|
|
|
*/
|
2014-12-22 13:39:41 -05:00
|
|
|
|
2009-05-13 20:15:38 -04:00
|
|
|
/** Editor for options which are obtained from and written back to one of the .rc files. */
|
|
|
|
class RCOptionEditor : public OptionEditor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RCOptionEditor ();
|
|
|
|
|
2012-10-10 23:10:18 -04:00
|
|
|
void populate_sync_options ();
|
|
|
|
|
2009-05-13 20:15:38 -04:00
|
|
|
private:
|
2011-01-04 15:52:30 -05:00
|
|
|
void parameter_changed (std::string const &);
|
2012-10-23 19:32:36 -04:00
|
|
|
void ltc_generator_volume_changed ();
|
2009-05-13 20:15:38 -04:00
|
|
|
ARDOUR::RCConfiguration* _rc_config;
|
2011-01-04 15:52:30 -05:00
|
|
|
BoolOption* _solo_control_is_listen_control;
|
|
|
|
ComboOption<ARDOUR::ListenPosition>* _listen_position;
|
2011-10-29 16:08:48 -04:00
|
|
|
VisibilityGroup _mixer_strip_visibility;
|
2012-10-10 23:10:18 -04:00
|
|
|
ComboOption<ARDOUR::SyncSource>* _sync_source;
|
2012-10-23 19:32:36 -04:00
|
|
|
BoolOption* _sync_framerate;
|
|
|
|
BoolOption* _sync_genlock;
|
2012-11-07 18:02:11 -05:00
|
|
|
BoolOption* _sync_source_2997;
|
2012-10-23 19:32:36 -04:00
|
|
|
ComboStringOption* _ltc_port;
|
|
|
|
HSliderOption* _ltc_volume_slider;
|
|
|
|
Gtk::Adjustment* _ltc_volume_adjustment;
|
|
|
|
BoolOption* _ltc_send_continuously;
|
2012-10-11 11:50:54 -04:00
|
|
|
|
|
|
|
PBD::ScopedConnection parameter_change_connection;
|
2009-05-13 20:15:38 -04:00
|
|
|
};
|
2013-09-26 05:58:07 -04:00
|
|
|
|
|
|
|
#endif /* __gtk_ardour_rc_option_editor_h__ */
|