Use a C++ bool constant
[ardour.git] / gtk2_ardour / theme_manager.h
1 /*
2     Copyright (C) 2000-2007 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 __ardour_gtk_theme_manager_h__
21 #define __ardour_gtk_theme_manager_h__
22
23 #include <gtkmm/treeview.h>
24 #include <gtkmm/treestore.h>
25 #include <gtkmm/scrolledwindow.h>
26 #include <gtkmm/radiobutton.h>
27 #include <gtkmm/button.h>
28 #include <gtkmm/scale.h>
29 #include <gtkmm/rc.h>
30
31 #include "ui_config.h"
32
33 class ArdourDialog;
34
35 class ThemeManager : public Gtk::VBox
36 {
37   public:
38         ThemeManager();
39
40         void on_flat_buttons_toggled ();
41         void on_blink_rec_arm_toggled ();
42         void on_region_color_toggled ();
43         void on_show_clip_toggled ();
44         void on_waveform_gradient_depth_change ();
45         void on_timeline_item_gradient_depth_change ();
46         void on_all_dialogs_toggled ();
47         void on_transients_follow_front_toggled ();
48         void on_floating_monitor_section_toggled ();
49         void on_icon_set_changed ();
50
51   private:
52         Gtk::CheckButton flat_buttons;
53         Gtk::CheckButton blink_rec_button;
54         Gtk::CheckButton region_color_button;
55         Gtk::CheckButton show_clipping_button;
56         Gtk::HScale waveform_gradient_depth;
57         Gtk::Label waveform_gradient_depth_label;
58         Gtk::HScale timeline_item_gradient_depth;
59         Gtk::Label timeline_item_gradient_depth_label;
60         Gtk::CheckButton all_dialogs;
61         Gtk::CheckButton transients_follow_front;
62         Gtk::CheckButton floating_monitor_section;
63         Gtk::CheckButton gradient_waveforms;
64         Gtk::Label icon_set_label;
65         Gtk::ComboBoxText icon_set_dropdown;
66
67         void colors_changed ();
68         void set_ui_to_state ();
69 };
70
71 #endif /* __ardour_gtk_theme_manager_h__ */