fix default color btn in set title bar color, fix bar color fast path, tweaks to...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / colorpicker.h
index 85fa706b2dff8cbddc4821cb03e683deb31a9050..9116e0d61a4a4eccf37ef838f310951a90fbe6c1 100644 (file)
@@ -45,6 +45,7 @@ public:
        ColorPicker(int do_alpha = 0, const char *title = 0);
        ~ColorPicker();
        void start_window(int color, int alpha, int ok_cancel=0);
+       virtual void create_objects(ColorWindow *window) {}
        virtual void update_gui(int color, int alpha);
        virtual int handle_new_color(int color, int alpha);
        BC_Window* new_gui();
@@ -142,6 +143,7 @@ public:
 
        void update_gui(int color, int alpha);
        int handle_new_color(int color, int alpha);
+       void create_objects();
 
        int close_event() { return close_gui(); }
        int cursor_motion_event() { return cursor_motion_gui(); }
@@ -151,6 +153,25 @@ public:
        ColorPicker *thread;
 };
 
+class ColorOK : public BC_OKButton
+{
+public:
+       ColorOK(ColorGUI *gui, BC_WindowBase *window);
+       int handle_event();
+
+       BC_WindowBase *window;
+       ColorGUI *gui;
+};
+
+class ColorCancel : public BC_CancelButton
+{
+public:
+       ColorCancel(ColorGUI *gui, BC_WindowBase *window);
+       int handle_event();
+
+       BC_WindowBase *window;
+       ColorGUI *gui;
+};
 
 class PaletteWheel : public BC_SubWindow
 {