2011-04-05 20:32:12 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2009-2011 Carl Hetherington <carl@carlh.net>
|
|
|
|
* Copyright (C) 2012-2017 Robin Gareus <robin@gareus.org>
|
|
|
|
* Copyright (C) 2012-2018 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
*
|
|
|
|
* 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.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2011-04-05 20:32:12 -04:00
|
|
|
|
2013-09-26 05:58:07 -04:00
|
|
|
#ifndef __gtk_ardour_rc_option_editor_h__
|
|
|
|
#define __gtk_ardour_rc_option_editor_h__
|
|
|
|
|
2017-07-16 22:55:52 -04:00
|
|
|
#include "widgets/tabbable.h"
|
2015-07-07 22:12:21 -04:00
|
|
|
|
2009-05-13 20:15:38 -04:00
|
|
|
#include "option_editor.h"
|
2011-10-29 16:08:48 -04:00
|
|
|
#include "visibility_group.h"
|
2018-09-18 18:52:20 -04:00
|
|
|
#include "transport_masters_dialog.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
|
|
|
*/
|
2015-10-05 10:17:49 -04: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. */
|
2017-07-16 22:55:52 -04:00
|
|
|
class RCOptionEditor : public OptionEditorContainer, public ARDOUR::SessionHandlePtr, public ArdourWidgets::Tabbable
|
2009-05-13 20:15:38 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
RCOptionEditor ();
|
|
|
|
|
2018-09-18 18:52:20 -04:00
|
|
|
void set_session (ARDOUR::Session*);
|
2012-10-10 23:10:18 -04:00
|
|
|
|
2015-07-09 12:40:51 -04:00
|
|
|
Gtk::Window* use_own_window (bool and_fill_it);
|
2022-04-06 23:56:45 -04:00
|
|
|
XMLNode& get_state () const;
|
2015-10-26 14:35:06 -04:00
|
|
|
|
2021-04-26 12:50:30 -04:00
|
|
|
bool on_key_release_event (GdkEventKey*);
|
|
|
|
|
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-23 19:32:36 -04:00
|
|
|
BoolOption* _sync_framerate;
|
|
|
|
HSliderOption* _ltc_volume_slider;
|
|
|
|
Gtk::Adjustment* _ltc_volume_adjustment;
|
|
|
|
BoolOption* _ltc_send_continuously;
|
2016-03-14 19:27:03 -04:00
|
|
|
BoolOption* _plugin_prefer_inline;
|
2023-01-20 18:35:43 -05:00
|
|
|
BoolOption* _cairo_image_surface;
|
2018-09-18 18:52:20 -04:00
|
|
|
TransportMastersWidget _transport_masters_widget;
|
2012-10-11 11:50:54 -04:00
|
|
|
|
2015-12-08 15:53:24 -05:00
|
|
|
PBD::ScopedConnection parameter_change_connection;
|
2015-12-15 18:29:49 -05:00
|
|
|
PBD::ScopedConnection engine_started_connection;
|
2015-12-08 15:53:24 -05:00
|
|
|
|
2021-02-18 10:43:25 -05:00
|
|
|
void show_audio_setup ();
|
|
|
|
void show_transport_masters ();
|
|
|
|
|
2022-02-01 09:45:29 -05:00
|
|
|
void reset_clip_library_dir ();
|
|
|
|
|
2022-04-16 14:08:36 -04:00
|
|
|
EntryOption* mrl_option;
|
|
|
|
EntryOption* mru_option;
|
|
|
|
std::string get_default_lower_midi_note ();
|
|
|
|
bool set_default_lower_midi_note (std::string);
|
|
|
|
std::string get_default_upper_midi_note ();
|
|
|
|
bool set_default_upper_midi_note (std::string);
|
|
|
|
|
2015-12-08 15:53:24 -05:00
|
|
|
/* plugin actions */
|
|
|
|
void plugin_scan_refresh ();
|
2020-06-26 06:45:39 -04:00
|
|
|
void plugin_reset_stats ();
|
2020-09-10 19:51:23 -04:00
|
|
|
void clear_vst2_cache ();
|
|
|
|
void clear_vst2_blacklist ();
|
|
|
|
void clear_vst3_cache ();
|
|
|
|
void clear_vst3_blacklist ();
|
2015-12-08 15:53:24 -05:00
|
|
|
void clear_au_cache ();
|
|
|
|
void clear_au_blacklist ();
|
2021-07-07 12:07:52 -04:00
|
|
|
void edit_vst_path (std::string const&, std::string const&, sigc::slot<std::string>, sigc::slot<bool, std::string>);
|
2009-05-13 20:15:38 -04:00
|
|
|
};
|
2013-09-26 05:58:07 -04:00
|
|
|
|
|
|
|
#endif /* __gtk_ardour_rc_option_editor_h__ */
|
2023-01-22 19:40:35 -05:00
|
|
|
|