summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-12-30 17:04:50 +0100
committerRobin Gareus <robin@gareus.org>2016-12-30 17:04:50 +0100
commita2bf54c041b726a0639dc3294402471ea829bbde (patch)
tree13a7898f7dda36bbb10c72cb4d6ae9b78a36c726 /gtk2_ardour
parent16e4333ad6bdd1428940ad8a9fa1bf97ac6c8fdd (diff)
re-group preferences part eight and nine of 27 (probably)
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui.cc1
-rw-r--r--gtk2_ardour/ardour_ui2.cc1
-rw-r--r--gtk2_ardour/ardour_ui_dialogs.cc1
-rw-r--r--gtk2_ardour/color_theme_manager.cc13
-rw-r--r--gtk2_ardour/color_theme_manager.h2
-rw-r--r--gtk2_ardour/rc_option_editor.cc179
-rw-r--r--gtk2_ardour/theme_manager.cc105
-rw-r--r--gtk2_ardour/theme_manager.h37
-rw-r--r--gtk2_ardour/wscript1
9 files changed, 136 insertions, 204 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 92a2a01fc7..55b4a103af 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -170,7 +170,6 @@ typedef uint64_t microseconds_t;
#include "speaker_dialog.h"
#include "splash.h"
#include "startup.h"
-#include "theme_manager.h"
#include "time_axis_view_item.h"
#include "time_info_box.h"
#include "timers.h"
diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc
index a93ed17245..77299eb24a 100644
--- a/gtk2_ardour/ardour_ui2.cc
+++ b/gtk2_ardour/ardour_ui2.cc
@@ -53,7 +53,6 @@
#include "main_clock.h"
#include "mixer_ui.h"
#include "utils.h"
-#include "theme_manager.h"
#include "time_info_box.h"
#include "midi_tracer.h"
#include "global_port_matrix.h"
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc
index feea3a5944..6b206fed05 100644
--- a/gtk2_ardour/ardour_ui_dialogs.cc
+++ b/gtk2_ardour/ardour_ui_dialogs.cc
@@ -67,7 +67,6 @@
#include "speaker_dialog.h"
#include "splash.h"
#include "sfdb_ui.h"
-#include "theme_manager.h"
#include "time_info_box.h"
#include "timers.h"
diff --git a/gtk2_ardour/color_theme_manager.cc b/gtk2_ardour/color_theme_manager.cc
index cbf341a739..013a0764d0 100644
--- a/gtk2_ardour/color_theme_manager.cc
+++ b/gtk2_ardour/color_theme_manager.cc
@@ -602,6 +602,19 @@ ColorThemeManager::set_state_from_config ()
}
+void
+ColorThemeManager::add_to_page (OptionEditorPage* p)
+{
+ int const n = p->table.property_n_rows();
+ int m = n + 1;
+ if (!_note.empty ()) {
+ ++m;
+ }
+ p->table.resize (m, 3);
+ p->table.attach (box, 1, 3, n, n + 1, FILL | EXPAND, SHRINK, 0, 0);
+ maybe_add_note (p, n + 1);
+}
+
Gtk::Widget&
ColorThemeManager::tip_widget()
{
diff --git a/gtk2_ardour/color_theme_manager.h b/gtk2_ardour/color_theme_manager.h
index 21485464d8..104bca847b 100644
--- a/gtk2_ardour/color_theme_manager.h
+++ b/gtk2_ardour/color_theme_manager.h
@@ -58,6 +58,8 @@ class ColorThemeManager : public OptionEditorMiniPage
void set_note (std::string const &);
+ void add_to_page (OptionEditorPage*);
+
Gtk::Widget& tip_widget();
private:
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index b722739e33..24199f6d98 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -65,7 +65,6 @@
#include "midi_tracer.h"
#include "rc_option_editor.h"
#include "sfdb_ui.h"
-#include "theme_manager.h"
#include "tooltips.h"
#include "ui_config.h"
#include "utils.h"
@@ -85,15 +84,16 @@ public:
, _click_browse_button (_("Browse..."))
, _click_emphasis_browse_button (_("Browse..."))
{
+ // TODO get rid of GTK -> use OptionEditor Widgets
Table* t = &table;
- Label* l = manage (left_aligned_label (_("Emphasis on first beat:")));
+ Label* l = manage (left_aligned_label (_("Emphasis on first beat")));
_use_emphasis_on_click_check_button.add (*l);
t->attach (_use_emphasis_on_click_check_button, 1, 3, 0, 1, FILL);
_use_emphasis_on_click_check_button.signal_toggled().connect (
sigc::mem_fun (*this, &ClickOptions::use_emphasis_on_click_toggled));
- l = manage (left_aligned_label (_("Use built-in default sounds:")));
+ l = manage (left_aligned_label (_("Use built-in default sounds")));
_use_default_click_check_button.add (*l);
t->attach (_use_default_click_check_button, 1, 3, 1, 2, FILL);
_use_default_click_check_button.signal_toggled().connect (
@@ -247,6 +247,7 @@ public:
_limit_undo_button (_("Limit undo history to")),
_save_undo_button (_("Save undo history of"))
{
+ // TODO get rid of GTK -> use OptionEditor SpinOption
_limit_undo_spin.set_range (0, 512);
_limit_undo_spin.set_increments (1, 10);
@@ -400,6 +401,8 @@ public:
_insert_note_button_adjustment (3, 1, 5),
_insert_note_button_spin (_insert_note_button_adjustment)
{
+ // TODO get rid of GTK -> use OptionEditor Widgets
+
const std::string restart_msg = _("\nChanges to this setting will only persist after your project has been saved.");
/* internationalize and prepare for use with combos */
@@ -437,7 +440,7 @@ public:
_keyboard_layout_selector.set_active_text (Keyboard::current_binding_name());
_keyboard_layout_selector.signal_changed().connect (sigc::mem_fun (*this, &KeyboardOptions::bindings_changed));
- t->attach (*l, col, col + 2, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 2, row, row + 1, FILL, FILL);
t->attach (_keyboard_layout_selector, col + 2, col + 3, row, row + 1, FILL | EXPAND, FILL);
++row;
@@ -454,14 +457,14 @@ public:
l = manage (left_aligned_label (_("Edit using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_edit_modifier_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
l = manage (new Label (_("+ button")));
l->set_name ("OptionsLabel");
- t->attach (*l, col + 3, col + 4, row, row + 1, FILL | EXPAND, FILL);
- t->attach (_edit_button_spin, col + 4, col + 5, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col + 3, col + 4, row, row + 1, FILL, FILL);
+ t->attach (_edit_button_spin, col + 4, col + 5, row, row + 1, SHRINK , FILL);
_edit_button_spin.set_name ("OptionsEntry");
_edit_button_adjustment.set_value (Keyboard::edit_button());
@@ -484,14 +487,14 @@ public:
l = manage (left_aligned_label (_("Delete using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_delete_modifier_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
l = manage (new Label (_("+ button")));
l->set_name ("OptionsLabel");
- t->attach (*l, col + 3, col + 4, row, row + 1, FILL | EXPAND, FILL);
- t->attach (_delete_button_spin, col + 4, col + 5, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col + 3, col + 4, row, row + 1, FILL, FILL);
+ t->attach (_delete_button_spin, col + 4, col + 5, row, row + 1, SHRINK, FILL);
_delete_button_spin.set_name ("OptionsEntry");
_delete_button_adjustment.set_value (Keyboard::delete_button());
@@ -514,14 +517,14 @@ public:
l = manage (left_aligned_label (_("Insert note using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_insert_note_modifier_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
l = manage (new Label (_("+ button")));
l->set_name ("OptionsLabel");
- t->attach (*l, col + 3, col + 4, row, row + 1, FILL | EXPAND, FILL);
- t->attach (_insert_note_button_spin, col + 4, col + 5, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col + 3, col + 4, row, row + 1, FILL, FILL);
+ t->attach (_insert_note_button_spin, col + 4, col + 5, row, row + 1, SHRINK, FILL);
_insert_note_button_spin.set_name ("OptionsEntry");
_insert_note_button_adjustment.set_value (Keyboard::insert_note_button());
@@ -558,7 +561,7 @@ public:
l = manage (left_aligned_label (_("Copy items using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_copy_modifier_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
++row;
@@ -586,7 +589,7 @@ public:
l = manage (left_aligned_label (_("Constrain drag using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_constraint_modifier_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
++row;
@@ -609,7 +612,7 @@ public:
l = manage (left_aligned_label (_("Push points using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_push_points_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
++row;
@@ -637,7 +640,7 @@ public:
l = manage (left_aligned_label (_("Trim contents using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_trim_contents_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
++row;
@@ -660,7 +663,7 @@ public:
l = manage (left_aligned_label (_("Anchored trim using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
++col;
t->attach (_trim_anchored_combo, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
@@ -681,7 +684,7 @@ public:
l = manage (left_aligned_label (_("Jump after trim using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
++col;
t->attach (_trim_jump_combo, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
@@ -704,7 +707,7 @@ public:
l = manage (left_aligned_label (_("Resize notes relatively using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
++col;
t->attach (_note_size_relative_combo, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
@@ -738,7 +741,7 @@ public:
l = manage (left_aligned_label (_("Ignore snap using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_snap_modifier_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
++row;
@@ -764,7 +767,7 @@ public:
l = manage (left_aligned_label (_("Snap relatively using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_snap_delta_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
++row;
@@ -793,7 +796,7 @@ public:
l = manage (left_aligned_label (_("Resize overlapped regions using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_trim_overlap_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
++row;
@@ -823,7 +826,7 @@ public:
l = manage (left_aligned_label (_("Fine adjust using:")));
l->set_name ("OptionsLabel");
- t->attach (*l, col, col + 1, row, row + 1, FILL | EXPAND, FILL);
+ t->attach (*l, col, col + 1, row, row + 1, FILL, FILL);
t->attach (_fine_adjust_combo, col + 1, col + 2, row, row + 1, FILL | EXPAND, FILL);
}
@@ -2388,8 +2391,9 @@ if (!Profile->get_mixbus()) {
add_option (_("Editor"), rsas);
- add_option (_("Editor/Modifiers"), new OptionEditorHeading (_("Modifiers")));
+ add_option (_("Editor/Modifiers"), new OptionEditorHeading (_("Keyboard Modifiers")));
add_option (_("Editor/Modifiers"), new KeyboardOptions);
+ add_option (_("Editor/Modifiers"), new OptionEditorBlank ());
/* MIXER -- SOLO AND MUTE */
@@ -2671,7 +2675,7 @@ if (!Profile->get_mixbus()) {
/* MIDI */
- add_option (_("MIDI"), new OptionEditorHeading (_("MIDI Preferences")));
+ add_option (_("MIDI"), new OptionEditorHeading (_("Buffering")));
add_option (_("MIDI"),
new SpinOption<float> (
@@ -2683,6 +2687,8 @@ if (!Profile->get_mixbus()) {
"", 1.0, 2
));
+ add_option (_("MIDI"), new OptionEditorHeading (_("Session")));
+
add_option (_("MIDI"),
new SpinOption<int32_t> (
"initial-program-change",
@@ -2692,6 +2698,8 @@ if (!Profile->get_mixbus()) {
-1, 65536, 1, 10
));
+ add_option (_("MIDI"), new OptionEditorHeading (_("Display")));
+
add_option (_("MIDI"),
new BoolOption (
"display-first-midi-bank-as-zero",
@@ -2708,14 +2716,7 @@ if (!Profile->get_mixbus()) {
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 in the editor"),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_sound_midi_notes),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_sound_midi_notes)
- ));
-
+#if 0 // unused ?!
add_option (_("MIDI"),
new BoolOption (
"midi-feedback",
@@ -2723,8 +2724,17 @@ if (!Profile->get_mixbus()) {
sigc::mem_fun (*_rc_config, &RCConfiguration::get_midi_feedback),
sigc::mem_fun (*_rc_config, &RCConfiguration::set_midi_feedback)
));
+#endif
+
+ add_option (_("MIDI"), new OptionEditorHeading (_("Audition")));
- add_option (_("MIDI"), new OptionEditorHeading (_("MIDI Audition")));
+ add_option (_("MIDI"),
+ new BoolOption (
+ "sound-midi-notes",
+ _("Sound MIDI notes as they are selected in the editor"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_sound_midi_notes),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_sound_midi_notes)
+ ));
ComboOption<std::string>* audition_synth = new ComboOption<std::string> (
"midi-audition-synth-uri",
@@ -2906,24 +2916,6 @@ if (!Profile->get_mixbus()) {
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_style_led)
));
- add_option (S_("Preferences|Metering"), new OptionEditorHeading (_("Editor Meters")));
-
- add_option (S_("Preferences|Metering"),
- new BoolOption (
- "show-track-meters",
- _("Show meters in track headers"),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_track_meters),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_track_meters)
- ));
-
- add_option (S_("Preferences|Metering"),
- new BoolOption (
- "editor-stereo-only-meters",
- _("Limit track header meters to stereo"),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_editor_stereo_only_meters),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_editor_stereo_only_meters)
- ));
-
add_option (S_("Preferences|Metering"), new OptionEditorHeading (_("Post Export Analysis")));
add_option (S_("Preferences|Metering"),
@@ -3042,7 +3034,10 @@ if (!Profile->get_mixbus()) {
);
add_option (_("Transport"), tsf);
- add_option (_("Sync"), new OptionEditorHeading (_("Synchronization and Slave Options")));
+
+ /* SYNC */
+
+ add_option (_("Sync"), new OptionEditorHeading (_("External Syncronization")));
_sync_source = new ComboOption<SyncSource> (
"sync-source",
@@ -3108,7 +3103,7 @@ if (!Profile->get_mixbus()) {
add_option (_("Sync"), _sync_source_2997);
- add_option (_("Sync/LTC"), new OptionEditorHeading (_("LTC Reader")));
+ add_option (_("Sync/LTC"), new OptionEditorHeading (_("Linear Timecode (LTC) Reader")));
_ltc_port = new ComboStringOption (
"ltc-source-port",
@@ -3127,7 +3122,7 @@ if (!Profile->get_mixbus()) {
add_option (_("Sync/LTC"), _ltc_port);
- add_option (_("Sync/LTC"), new OptionEditorHeading (_("LTC Generator")));
+ add_option (_("Sync/LTC"), new OptionEditorHeading (_("Linear Timecode (LTC) Generator")));
add_option (_("Sync/LTC"),
new BoolOption (
@@ -3626,6 +3621,24 @@ if (!Profile->get_mixbus()) {
add_option (_("GUI/Editor"), wfsh);
+ add_option (_("GUI/Editor"), new OptionEditorHeading (_("Editor Meters")));
+
+ add_option (_("GUI/Editor"),
+ new BoolOption (
+ "show-track-meters",
+ _("Show meters in track headers"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_track_meters),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_track_meters)
+ ));
+
+ add_option (_("GUI/Editor"),
+ new BoolOption (
+ "editor-stereo-only-meters",
+ _("Limit track header meters to stereo"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_editor_stereo_only_meters),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_editor_stereo_only_meters)
+ ));
+
add_option (_("GUI/Editor"), new OptionEditorBlank ());
/* The names of these controls must be the same as those given in MixerStrip
@@ -3710,11 +3723,61 @@ if (!Profile->get_mixbus()) {
/* and now the theme manager */
+ add_option (_("GUI/Theme"), new OptionEditorHeading (_("Theme")));
+
+ add_option (_("GUI/Theme"), new BoolOption (
+ "flat-buttons",
+ _("Draw \"flat\" buttons"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_flat_buttons),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_flat_buttons)
+ ));
+
+ add_option (_("GUI/Theme"), new BoolOption (
+ "meter-style-led",
+ _("LED meter style"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_meter_style_led),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_meter_style_led)
+ ));
+
+
+ HSliderOption *gui_hs = new HSliderOption(
+ "timeline-item-gradient-depth",
+ _("Waveforms color gradient depth"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_waveform_gradient_depth),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_waveform_gradient_depth),
+ 0, 1.0, 0.05
+ );
+ gui_hs->scale().set_update_policy (Gtk::UPDATE_DELAYED);
+ add_option (_("GUI/Theme"), gui_hs);
+
+ gui_hs = new HSliderOption(
+ "timeline-item-gradient-depth",
+ _("Timeline item gradient depth"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_timeline_item_gradient_depth),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_timeline_item_gradient_depth),
+ 0, 1.0, 0.05
+ );
+ gui_hs->scale().set_update_policy (Gtk::UPDATE_DELAYED);
+ add_option (_("GUI/Theme"), gui_hs);
+
+ vector<string> icon_sets = ::get_icon_sets ();
+ if (icon_sets.size() > 1) {
+ ComboOption<std::string>* io = new ComboOption<std::string> (
+ "icon-set", _("Icon Set"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_icon_set),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_icon_set)
+ );
+ for (vector<string>::const_iterator i = icon_sets.begin (); i != icon_sets.end (); ++i) {
+ io->add (*i, *i);
+ }
+ add_option (_("GUI/Theme"), io);
+ }
+
add_option (_("GUI/Colors"), new OptionEditorHeading (_("Colors")));
add_option (_("GUI/Colors"), new ColorThemeManager);
+ add_option (_("GUI/Colors"), new OptionEditorBlank ());
- add_option (_("GUI/Theme"), new OptionEditorHeading (_("Theme")));
- add_option (_("GUI/Theme"), new ThemeManager);
+ /* Quirks */
add_option (_("GUI/Quirks"), quirks_head);
diff --git a/gtk2_ardour/theme_manager.cc b/gtk2_ardour/theme_manager.cc
deleted file mode 100644
index 6a9853717d..0000000000
--- a/gtk2_ardour/theme_manager.cc
+++ /dev/null
@@ -1,105 +0,0 @@
-/*
- Copyright (C) 2000-2007 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.
-
-*/
-
-#include <cmath>
-#include <errno.h>
-
-#include "fix_carbon.h"
-
-#include "pbd/gstdio_compat.h"
-
-#include <gtkmm/settings.h>
-
-#include "gtkmm2ext/gtk_ui.h"
-#include "gtkmm2ext/utils.h"
-
-#include "pbd/compose.h"
-
-#include "ardour/profile.h"
-
-#include "canvas/wave_view.h"
-
-#include "ardour_button.h"
-#include "ardour_dialog.h"
-#include "theme_manager.h"
-#include "ui_config.h"
-#include "utils.h"
-
-#include "pbd/i18n.h"
-
-using namespace std;
-using namespace Gtk;
-using namespace PBD;
-using namespace ARDOUR;
-using namespace ARDOUR_UI_UTILS;
-
-ThemeManager::ThemeManager()
-{
- BoolOption* bo;
-
- bo = new BoolOption (
- "flat-buttons",
- _("Draw \"flat\" buttons"),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_flat_buttons),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_flat_buttons)
- );
- bo->add_to_page (this);
- bo->set_state_from_config ();
-
- vector<string> icon_sets = ::get_icon_sets ();
- if (icon_sets.size() > 1) {
- ComboOption<std::string>* io = new ComboOption<std::string> (
- "icon-set", _("Icon Set"),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_icon_set),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_icon_set)
- );
- for (vector<string>::const_iterator i = icon_sets.begin (); i != icon_sets.end (); ++i) {
- io->add (*i, *i);
- }
- io->add_to_page (this);
- io->set_state_from_config ();
- }
-
- HSliderOption *hs = new HSliderOption(
- "timeline-item-gradient-depth",
- _("Waveforms color gradient depth"),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_waveform_gradient_depth),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_waveform_gradient_depth),
- 0, 1.0, 0.05
- );
- hs->scale().set_update_policy (Gtk::UPDATE_DELAYED);
- hs->add_to_page (this);
- hs->set_state_from_config ();
-
- hs = new HSliderOption(
- "timeline-item-gradient-depth",
- _("Timeline item gradient depth"),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_timeline_item_gradient_depth),
- sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_timeline_item_gradient_depth),
- 0, 1.0, 0.05
- );
- hs->scale().set_update_policy (Gtk::UPDATE_DELAYED);
- hs->add_to_page (this);
- hs->set_state_from_config ();
-}
-
-void
-ThemeManager::set_state_from_config ()
-{
-}
diff --git a/gtk2_ardour/theme_manager.h b/gtk2_ardour/theme_manager.h
deleted file mode 100644
index d367321230..0000000000
--- a/gtk2_ardour/theme_manager.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- Copyright (C) 2000-2007 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.
-
-*/
-
-#ifndef __ardour_gtk_theme_manager_h__
-#define __ardour_gtk_theme_manager_h__
-
-#include "option_editor.h"
-#include "ui_config.h"
-
-class ArdourDialog;
-
-class ThemeManager : public OptionEditorMiniPage
-{
- public:
- ThemeManager();
-
- void parameter_changed (std::string const &) {}
- void set_state_from_config ();
-};
-
-#endif /* __ardour_gtk_theme_manager_h__ */
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript
index 1d4fd4b34c..c5009d6b08 100644
--- a/gtk2_ardour/wscript
+++ b/gtk2_ardour/wscript
@@ -248,7 +248,6 @@ gtk2_ardour_sources = [
'tempo_curve.cc',
'tempo_dialog.cc',
'tempo_lines.cc',
- 'theme_manager.cc',
'time_axis_view.cc',
'time_axis_view_item.cc',
'time_fx_dialog.cc',