X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=gtk2_ardour%2Frc_option_editor.cc;h=a6e76bda2a181448d61d2d1e78e07a2f63d3fb17;hb=f3a1ac21cbe0793f830143ccbad77a0cf7ef16fe;hp=f0cac85f8cb6b882a8baa0a1f34434b190abf58b;hpb=cd92974a60b9e4d75de0b6532d661a88b882caac;p=ardour.git diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index f0cac85f8c..a6e76bda2a 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -21,6 +21,10 @@ #include "gtk2ardour-config.h" #endif +#if !defined USE_CAIRO_IMAGE_SURFACE && !defined NDEBUG +#define OPTIONAL_CAIRO_IMAGE_SURFACE +#endif + #include #include @@ -46,7 +50,6 @@ #include "canvas/wave_view.h" -#include "ardour_ui.h" #include "ardour_window.h" #include "ardour_dialog.h" #include "gui_thread.h" @@ -73,28 +76,44 @@ class ClickOptions : public OptionEditorBox public: ClickOptions (RCConfiguration* c, Gtk::Window* p) : _rc_config (c) + , _click_browse_button (_("Browse...")) + , _click_emphasis_browse_button (_("Browse...")) { - Table* t = manage (new Table (2, 3)); + Table* t = manage (new Table (3, 3)); t->set_spacings (4); - Label* l = manage (left_aligned_label (_("Click audio file:"))); + Label* l = manage (left_aligned_label (_("Use default Click:"))); t->attach (*l, 0, 1, 0, 1, FILL); - t->attach (_click_path_entry, 1, 2, 0, 1, FILL); - Button* b = manage (new Button (_("Browse..."))); - b->signal_clicked().connect (sigc::mem_fun (*this, &ClickOptions::click_browse_clicked)); - t->attach (*b, 2, 3, 0, 1, FILL); + t->attach (_use_default_click_check_button, 1, 2, 0, 1, FILL); + _use_default_click_check_button.signal_toggled().connect ( + sigc::mem_fun (*this, &ClickOptions::use_default_click_toggled)); - l = manage (left_aligned_label (_("Click emphasis audio file:"))); + l = manage (left_aligned_label (_("Click audio file:"))); t->attach (*l, 0, 1, 1, 2, FILL); - t->attach (_click_emphasis_path_entry, 1, 2, 1, 2, FILL); - b = manage (new Button (_("Browse..."))); - b->signal_clicked().connect (sigc::mem_fun (*this, &ClickOptions::click_emphasis_browse_clicked)); - t->attach (*b, 2, 3, 1, 2, FILL); + t->attach (_click_path_entry, 1, 2, 1, 2, FILL); + _click_browse_button.signal_clicked ().connect ( + sigc::mem_fun (*this, &ClickOptions::click_browse_clicked)); + t->attach (_click_browse_button, 2, 3, 1, 2, FILL); + + l = manage (left_aligned_label (_("Click emphasis audio file:"))); + t->attach (*l, 0, 1, 2, 3, FILL); + t->attach (_click_emphasis_path_entry, 1, 2, 2, 3, FILL); + _click_emphasis_browse_button.signal_clicked ().connect ( + sigc::mem_fun (*this, &ClickOptions::click_emphasis_browse_clicked)); + t->attach (_click_emphasis_browse_button, 2, 3, 2, 3, FILL); _box->pack_start (*t, false, false); _click_path_entry.signal_activate().connect (sigc::mem_fun (*this, &ClickOptions::click_changed)); _click_emphasis_path_entry.signal_activate().connect (sigc::mem_fun (*this, &ClickOptions::click_emphasis_changed)); + + if (_rc_config->get_click_sound ().empty() && + _rc_config->get_click_emphasis_sound().empty()) { + _use_default_click_check_button.set_active (true); + + } else { + _use_default_click_check_button.set_active (false); + } } void parameter_changed (string const & p) @@ -160,9 +179,29 @@ private: click_emphasis_chosen (_click_emphasis_path_entry.get_text ()); } + void use_default_click_toggled () + { + if (_use_default_click_check_button.get_active ()) { + _rc_config->set_click_sound (""); + _rc_config->set_click_emphasis_sound (""); + _click_path_entry.set_sensitive (false); + _click_emphasis_path_entry.set_sensitive (false); + _click_browse_button.set_sensitive (false); + _click_emphasis_browse_button.set_sensitive (false); + } else { + _click_path_entry.set_sensitive (true); + _click_emphasis_path_entry.set_sensitive (true); + _click_browse_button.set_sensitive (true); + _click_emphasis_browse_button.set_sensitive (true); + } + } + RCConfiguration* _rc_config; + CheckButton _use_default_click_check_button; Entry _click_path_entry; Entry _click_emphasis_path_entry; + Button _click_browse_button; + Button _click_emphasis_browse_button; }; class UndoOptions : public OptionEditorBox @@ -912,12 +951,11 @@ private: class FontScalingOptions : public OptionEditorBox { public: - FontScalingOptions (UIConfiguration* uic) : - _ui_config (uic), + FontScalingOptions () : _dpi_adjustment (100, 50, 250, 1, 5), _dpi_slider (_dpi_adjustment) { - _dpi_adjustment.set_value (_ui_config->get_font_scale() / 1024.); + _dpi_adjustment.set_value (UIConfiguration::instance().get_font_scale() / 1024.); Label* l = manage (new Label (_("GUI and Font scaling:"))); l->set_name ("OptionsLabel"); @@ -956,7 +994,7 @@ public: void parameter_changed (string const & p) { if (p == "font-scale") { - _dpi_adjustment.set_value (_ui_config->get_font_scale() / 1024.); + _dpi_adjustment.set_value (UIConfiguration::instance().get_font_scale() / 1024.); } } @@ -969,12 +1007,11 @@ private: void dpi_changed () { - _ui_config->set_font_scale ((long) floor (_dpi_adjustment.get_value() * 1024.)); + UIConfiguration::instance().set_font_scale ((long) floor (_dpi_adjustment.get_value() * 1024.)); /* XXX: should be triggered from the parameter changed signal */ - reset_dpi (); + UIConfiguration::instance().reset_dpi (); } - UIConfiguration* _ui_config; Adjustment _dpi_adjustment; HScale _dpi_slider; }; @@ -982,12 +1019,11 @@ private: class ClipLevelOptions : public OptionEditorBox { public: - ClipLevelOptions (UIConfiguration* c) - : _ui_config (c) - , _clip_level_adjustment (-.5, -50.0, 0.0, 0.1, 1.0) /* units of dB */ + ClipLevelOptions () + : _clip_level_adjustment (-.5, -50.0, 0.0, 0.1, 1.0) /* units of dB */ , _clip_level_slider (_clip_level_adjustment) { - _clip_level_adjustment.set_value (_ui_config->get_waveform_clip_level ()); + _clip_level_adjustment.set_value (UIConfiguration::instance().get_waveform_clip_level ()); Label* l = manage (new Label (_("Waveform Clip Level (dBFS):"))); l->set_name ("OptionsLabel"); @@ -1006,7 +1042,7 @@ public: void parameter_changed (string const & p) { if (p == "waveform-clip-level") { - _clip_level_adjustment.set_value (_ui_config->get_waveform_clip_level()); + _clip_level_adjustment.set_value (UIConfiguration::instance().get_waveform_clip_level()); } } @@ -1019,12 +1055,11 @@ private: void clip_level_changed () { - _ui_config->set_waveform_clip_level (_clip_level_adjustment.get_value()); + UIConfiguration::instance().set_waveform_clip_level (_clip_level_adjustment.get_value()); /* XXX: should be triggered from the parameter changed signal */ ArdourCanvas::WaveView::set_clip_level (_clip_level_adjustment.get_value()); } - UIConfiguration* _ui_config; Adjustment _clip_level_adjustment; HScale _clip_level_slider; }; @@ -1467,9 +1502,8 @@ private: class PluginOptions : public OptionEditorBox { public: - PluginOptions (RCConfiguration* c, UIConfiguration* uic) + PluginOptions (RCConfiguration* c) : _rc_config (c) - , _ui_config (uic) , _display_plugin_scan_progress (_("Always Display Plugin Scan Progress")) , _discover_vst_on_start (_("Scan for [new] VST Plugins on Application Start")) , _discover_au_on_start (_("Scan for AudioUnit Plugins on Application Start")) @@ -1535,14 +1569,14 @@ public: _("When enabled new VST plugins are searched, tested and added to the cache index on application start. When disabled new plugins will only be available after triggering a 'Scan' manually")); #ifdef LXVST_SUPPORT - t->attach (*manage (left_aligned_label (_("Linux VST Path:"))), 0, 1, n, n+1); + t->attach (*manage (right_aligned_label (_("Linux VST Path:"))), 0, 1, n, n+1); b = manage (new Button (_("Edit"))); b->signal_clicked().connect (sigc::mem_fun (*this, &PluginOptions::edit_lxvst_path_clicked)); t->attach (*b, 1, 2, n, n+1, FILL); ++n; #endif #ifdef WINDOWS_VST_SUPPORT - t->attach (*manage (left_aligned_label (_("Windows VST Path:"))), 0, 1, n, n+1); + t->attach (*manage (right_aligned_label (_("Windows VST Path:"))), 0, 1, n, n+1); b = manage (new Button (_("Edit"))); b->signal_clicked().connect (sigc::mem_fun (*this, &PluginOptions::edit_vst_path_clicked)); t->attach (*b, 1, 2, n, n+1, FILL); ++n; @@ -1584,7 +1618,7 @@ public: void parameter_changed (string const & p) { if (p == "show-plugin-scan-window") { - bool const x = _ui_config->get_show_plugin_scan_window(); + bool const x = UIConfiguration::instance().get_show_plugin_scan_window(); _display_plugin_scan_progress.set_active (x); } else if (p == "discover-vst-on-start") { @@ -1615,7 +1649,6 @@ public: private: RCConfiguration* _rc_config; - UIConfiguration* _ui_config; CheckButton _display_plugin_scan_progress; CheckButton _discover_vst_on_start; CheckButton _discover_au_on_start; @@ -1625,7 +1658,7 @@ private: void display_plugin_scan_progress_toggled () { bool const x = _display_plugin_scan_progress.get_active(); - _ui_config->set_show_plugin_scan_window(x); + UIConfiguration::instance().set_show_plugin_scan_window(x); } void discover_vst_on_start_toggled () { @@ -1765,7 +1798,6 @@ private: RCOptionEditor::RCOptionEditor () : OptionEditor (Config, string_compose (_("%1 Preferences"), PROGRAM_NAME)) , _rc_config (Config) - , _ui_config (ARDOUR_UI::config()) , _mixer_strip_visibility ("mixer-element-visibility") { /* MISC */ @@ -1822,8 +1854,8 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "only-copy-imported-files", _("Always copy imported files"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_only_copy_imported_files), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_only_copy_imported_files) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_only_copy_imported_files), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_only_copy_imported_files) )); add_option (_("Misc"), new DirectoryOption ( @@ -2091,8 +2123,8 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "draggable-playhead", _("Allow dragging of playhead"), - sigc::mem_fun (*ARDOUR_UI::config(), &UIConfiguration::get_draggable_playhead), - sigc::mem_fun (*ARDOUR_UI::config(), &UIConfiguration::set_draggable_playhead) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_draggable_playhead), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_draggable_playhead) )); add_option (_("Editor"), @@ -2107,16 +2139,16 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "show-track-meters", _("Show meters on tracks in the editor"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_show_track_meters), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_show_track_meters) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_track_meters), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_track_meters) )); add_option (_("Editor"), new BoolOption ( "show-editor-meter", _("Display master-meter in the toolbar"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_show_editor_meter), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_show_editor_meter) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_editor_meter), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_editor_meter) )); ComboOption* fadeshape = new ComboOption ( @@ -2164,16 +2196,16 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "rubberbanding-snaps-to-grid", _("Make rubberband selection rectangle snap to the grid"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_rubberbanding_snaps_to_grid), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_rubberbanding_snaps_to_grid) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_rubberbanding_snaps_to_grid), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_rubberbanding_snaps_to_grid) )); add_option (_("Editor"), new BoolOption ( "show-waveforms", _("Show waveforms in regions"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_show_waveforms), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_show_waveforms) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_waveforms), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_waveforms) )); add_option (_("Editor"), @@ -2182,15 +2214,15 @@ RCOptionEditor::RCOptionEditor () _("Show gain envelopes in audio regions"), _("in all modes"), _("only in Draw and Internal Edit modes"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_show_region_gain), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_show_region_gain) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_region_gain), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_region_gain) )); ComboOption* wfs = new ComboOption ( "waveform-scale", _("Waveform scale"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_waveform_scale), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_waveform_scale) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_waveform_scale), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_waveform_scale) ); wfs->add (Linear, _("linear")); @@ -2201,8 +2233,8 @@ RCOptionEditor::RCOptionEditor () ComboOption* wfsh = new ComboOption ( "waveform-shape", _("Waveform shape"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_waveform_shape), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_waveform_shape) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_waveform_shape), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_waveform_shape) ); wfsh->add (Traditional, _("traditional")); @@ -2210,37 +2242,37 @@ RCOptionEditor::RCOptionEditor () add_option (_("Editor"), wfsh); - add_option (_("Editor"), new ClipLevelOptions (_ui_config)); + add_option (_("Editor"), new ClipLevelOptions ()); add_option (_("Editor"), new BoolOption ( "show-waveforms-while-recording", _("Show waveforms for audio while it is being recorded"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_show_waveforms_while_recording), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_show_waveforms_while_recording) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_waveforms_while_recording), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_waveforms_while_recording) )); add_option (_("Editor"), new BoolOption ( "show-zoom-tools", _("Show zoom toolbar"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_show_zoom_tools), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_show_zoom_tools) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_zoom_tools), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_zoom_tools) )); add_option (_("Editor"), new BoolOption ( "update-editor-during-summary-drag", _("Update editor window during drags of the summary"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_update_editor_during_summary_drag), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_update_editor_during_summary_drag) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_update_editor_during_summary_drag), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_update_editor_during_summary_drag) )); bo = new BoolOption ( "name-new-markers", _("Name new markers"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_name_new_markers), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_name_new_markers) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_name_new_markers), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_name_new_markers) ); add_option (_("Editor"), bo); @@ -2251,8 +2283,8 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "autoscroll-editor", _("Auto-scroll editor window when dragging near its edges"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_autoscroll_editor), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_autoscroll_editor) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_autoscroll_editor), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_autoscroll_editor) )); ComboOption *rsas = new ComboOption ( @@ -2653,16 +2685,16 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "never-display-periodic-midi", _("Never display periodic MIDI messages (MTC, MIDI Clock)"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_never_display_periodic_midi), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_never_display_periodic_midi) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_never_display_periodic_midi), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_never_display_periodic_midi) )); add_option (_("MIDI"), new BoolOption ( "sound-midi-notes", _("Sound MIDI notes as they are selected"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_sound_midi_notes), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_sound_midi_notes) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_sound_midi_notes), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_sound_midi_notes) )); add_option (_("MIDI"), new OptionEditorHeading (_("Midi Audition"))); @@ -2735,29 +2767,42 @@ RCOptionEditor::RCOptionEditor () #if (defined WINDOWS_VST_SUPPORT || defined LXVST_SUPPORT || defined AUDIOUNIT_SUPPORT) /* Plugin options (currrently VST only) */ - add_option (_("Plugins"), new PluginOptions (_rc_config, _ui_config)); + add_option (_("Plugins"), new PluginOptions (_rc_config)); #endif /* INTERFACE */ +#ifdef OPTIONAL_CAIRO_IMAGE_SURFACE + BoolOption* bgc = new BoolOption ( + "cairo-image-surface", + _("Disable Graphics Hardware Acceleration (requires restart)"), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_cairo_image_surface), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_cairo_image_surface) + ); + + Gtkmm2ext::UI::instance()->set_tip (bgc->tip_widget(), string_compose ( + _("Render large parts of the application user-interface in software, instead of using 2D-graphics acceleration.\nThis requires restarting %1 before having an effect"), PROGRAM_NAME)); + add_option (S_("Preferences|GUI"), bgc); +#endif + #ifdef CAIRO_SUPPORTS_FORCE_BUGGY_GRADIENTS_ENVIRONMENT_VARIABLE BoolOption* bgo = new BoolOption ( "buggy-gradients", - _("Possibly improve slow graphical performance"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_buggy_gradients), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_buggy_gradients) + _("Possibly improve slow graphical performance (requires restart)"), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_buggy_gradients), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_buggy_gradients) ); - Gtkmm2ext::UI::instance()->set_tip (bgo->tip_widget(), string_compose (_("This requires restarting %1 before having an effect"), PROGRAM_NAME)); + Gtkmm2ext::UI::instance()->set_tip (bgo->tip_widget(), string_compose (_("Disables hardware gradient rendering on buggy video drivers (\"buggy gradients patch\").\nThis requires restarting %1 before having an effect"), PROGRAM_NAME)); add_option (S_("Preferences|GUI"), bgo); #endif - + add_option (S_("Preferences|GUI"), new BoolOption ( "widget-prelight", _("Graphically indicate mouse pointer hovering over various widgets"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_widget_prelight), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_widget_prelight) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_widget_prelight), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_widget_prelight) )); #ifdef TOOLTIPS_GOT_FIXED @@ -2765,8 +2810,8 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "use-tooltips", _("Show tooltips if mouse hovers over a control"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_use_tooltips), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_use_tooltips) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_use_tooltips), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_use_tooltips) )); #endif @@ -2774,21 +2819,21 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "show-name-highlight", _("Use name highlight bars in region displays (requires a restart)"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_show_name_highlight), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_show_name_highlight) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_name_highlight), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_name_highlight) )); #ifndef GTKOSX /* font scaling does nothing with GDK/Quartz */ - add_option (S_("Preferences|GUI"), new FontScalingOptions (_ui_config)); + add_option (S_("Preferences|GUI"), new FontScalingOptions ()); #endif add_option (S_("GUI"), new BoolOption ( "super-rapid-clock-update", _("update transport clock display at FPS instead of every 100ms"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_super_rapid_clock_update), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_super_rapid_clock_update) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_super_rapid_clock_update), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_super_rapid_clock_update) )); @@ -2798,8 +2843,8 @@ RCOptionEditor::RCOptionEditor () HSliderOption *sics = new HSliderOption("waveform-cache-size", _("Waveform image cache size (megabytes)"), ics, - sigc::mem_fun (*ARDOUR_UI::config(), &UIConfiguration::get_waveform_cache_size), - sigc::mem_fun (*ARDOUR_UI::config(), &UIConfiguration::set_waveform_cache_size) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_waveform_cache_size), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_waveform_cache_size) ); sics->scale().set_digits (0); Gtkmm2ext::UI::instance()->set_tip @@ -2813,8 +2858,8 @@ RCOptionEditor::RCOptionEditor () HSliderOption *slts = new HSliderOption("lock-gui-after-seconds", _("Lock timeout (seconds)"), lts, - sigc::mem_fun (*ARDOUR_UI::config(), &UIConfiguration::get_lock_gui_after_seconds), - sigc::mem_fun (*ARDOUR_UI::config(), &UIConfiguration::set_lock_gui_after_seconds) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_lock_gui_after_seconds), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_lock_gui_after_seconds) ); slts->scale().set_digits (0); Gtkmm2ext::UI::instance()->set_tip @@ -2837,8 +2882,8 @@ RCOptionEditor::RCOptionEditor () new VisibilityOption ( _("Mixer Strip"), &_mixer_strip_visibility, - sigc::mem_fun (*_ui_config, &UIConfiguration::get_mixer_strip_visibility), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_mixer_strip_visibility) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_mixer_strip_visibility), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_mixer_strip_visibility) ) ); @@ -2846,8 +2891,8 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "default-narrow_ms", _("Use narrow strips in the mixer by default"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_default_narrow_ms), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_default_narrow_ms) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_default_narrow_ms), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_default_narrow_ms) )); add_option (S_("Preferences|Metering"), new OptionEditorHeading (_("Metering"))); @@ -2855,8 +2900,8 @@ RCOptionEditor::RCOptionEditor () ComboOption* mht = new ComboOption ( "meter-hold", _("Peak hold time"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_meter_hold), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_meter_hold) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_meter_hold), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_hold) ); mht->add (MeterHoldOff, _("off")); @@ -2886,8 +2931,8 @@ RCOptionEditor::RCOptionEditor () ComboOption* mlu = new ComboOption ( "meter-line-up-level", _("Meter line-up level; 0dBu"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_meter_line_up_level), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_meter_line_up_level) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_meter_line_up_level), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_line_up_level) ); mlu->add (MeteringLineUp24, _("-24dBFS (SMPTE US: 4dBu = -20dBFS)")); @@ -2902,8 +2947,8 @@ RCOptionEditor::RCOptionEditor () ComboOption* mld = new ComboOption ( "meter-line-up-din", _("IEC1/DIN Meter line-up level; 0dBu"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_meter_line_up_din), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_meter_line_up_din) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_meter_line_up_din), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_line_up_din) ); mld->add (MeteringLineUp24, _("-24dBFS (SMPTE US: 4dBu = -20dBFS)")); @@ -2918,8 +2963,8 @@ RCOptionEditor::RCOptionEditor () ComboOption* mvu = new ComboOption ( "meter-vu-standard", _("VU Meter standard"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_meter_vu_standard), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_meter_vu_standard) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_meter_vu_standard), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_vu_standard) ); mvu->add (MeteringVUfrench, _("0VU = -2dBu (France)")); @@ -2933,8 +2978,8 @@ RCOptionEditor::RCOptionEditor () HSliderOption *mpks = new HSliderOption("meter-peak", _("Peak threshold [dBFS]"), mpk, - sigc::mem_fun (*_ui_config, &UIConfiguration::get_meter_peak), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_meter_peak) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_meter_peak), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_peak) ); @@ -2995,8 +3040,8 @@ RCOptionEditor::RCOptionEditor () new BoolOption ( "meter-style-led", _("LED meter style"), - sigc::mem_fun (*_ui_config, &UIConfiguration::get_meter_style_led), - sigc::mem_fun (*_ui_config, &UIConfiguration::set_meter_style_led) + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_meter_style_led), + sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_style_led) )); /* and now the theme manager */