Changed send/deliver role "Personal" to "Foldback" so bus type can match
[ardour.git] / gtk2_ardour / stripable_colorpicker.h
index d05d67e974f6e37a56985db7682cf221730053db..4af5bbd7e1dcabe5e51c24e84ad75e5306f97fa1 100644 (file)
@@ -20,7 +20,9 @@
 #define __gtkardour_stripable_colorpicker_h__
 
 #include <boost/shared_ptr.hpp>
+#include <gtkmm/colorbutton.h>
 #include <gtkmm/colorselection.h>
+
 #include "ardour/stripable.h"
 
 class StripableColorDialog : public Gtk::ColorSelectionDialog
@@ -30,12 +32,18 @@ public:
        ~StripableColorDialog ();
        void reset ();
        void popup (boost::shared_ptr<ARDOUR::Stripable> s);
+       void popup (const std::string&, uint32_t);
+       sigc::signal<void, uint32_t> ColorChanged;
 
 private:
        void initialize_color_palette ();
        void finish_color_edit (int response);
+       void color_changed ();
 
        boost::shared_ptr<ARDOUR::Stripable> _stripable;
+       ARDOUR::PresentationInfo::color_t _initial_color;
+
+       sigc::connection _color_changed_connection;
 
 
        static bool palette_initialized;
@@ -43,4 +51,17 @@ private:
        static Gtk::ColorSelection::SlotChangePaletteHook gtk_palette_changed_hook;
 };
 
+class ArdourColorButton : public Gtk::ColorButton
+{
+public:
+       ArdourColorButton ();
+
+protected:
+       void on_clicked();
+       void color_selected (uint32_t color);
+
+private:
+       StripableColorDialog _color_picker;
+};
+
 #endif