summaryrefslogtreecommitdiff
path: root/gtk2_ardour/color_manager.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-02-14 17:19:58 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-02-14 17:19:58 +0000
commit517d411bb013d27f0df188584bbfa684438cc544 (patch)
tree46662c4cc005a8007f8aed65ae9b76d3deafbd42 /gtk2_ardour/color_manager.h
parent898fba7b54b19ffddb47fd384c9b04115bc449d9 (diff)
new color management design starts to take shape (canvas color only for now)
git-svn-id: svn://localhost/trunk/ardour2@326 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/color_manager.h')
-rw-r--r--gtk2_ardour/color_manager.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/gtk2_ardour/color_manager.h b/gtk2_ardour/color_manager.h
new file mode 100644
index 0000000000..39e072ab7b
--- /dev/null
+++ b/gtk2_ardour/color_manager.h
@@ -0,0 +1,48 @@
+#ifndef __ardour_gtk_color_manager_h__
+#define __ardour_gtk_color_manager_h__
+
+#include <gtkmm/treeview.h>
+#include <gtkmm/liststore.h>
+#include <gtkmm/scrolledwindow.h>
+#include <gtkmm/colorselection.h>
+#include "ardour_dialog.h"
+#include "color.h"
+
+class ColorManager : public ArdourDialog
+{
+ public:
+ ColorManager();
+ ~ColorManager();
+
+ int load (std::string path);
+ int save (std::string path);
+
+ private:
+ struct ColorDisplayModelColumns : public Gtk::TreeModel::ColumnRecord {
+ ColorDisplayModelColumns() {
+ add (name);
+ add (color);
+ add (gdkcolor);
+ add (id);
+ add (rgba);
+ }
+
+ Gtk::TreeModelColumn<Glib::ustring> name;
+ Gtk::TreeModelColumn<Glib::ustring> color;
+ Gtk::TreeModelColumn<Gdk::Color> gdkcolor;
+ Gtk::TreeModelColumn<ColorID> id;
+ Gtk::TreeModelColumn<uint32_t> rgba;
+ };
+
+ ColorDisplayModelColumns columns;
+ Gtk::TreeView color_display;
+ Glib::RefPtr<Gtk::ListStore> color_list;
+ Gtk::ColorSelectionDialog color_dialog;
+ Gtk::ScrolledWindow scroller;
+
+ bool button_press_event (GdkEventButton*);
+};
+
+
+#endif /* __ardour_gtk_color_manager_h__ */
+