X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fcolorpicker.h;h=9116e0d61a4a4eccf37ef838f310951a90fbe6c1;hp=85fa706b2dff8cbddc4821cb03e683deb31a9050;hb=32a609a6bd1181993569399ab51f314dc7cb4fba;hpb=04293346a5ef49683cfa6ca3a98ef6cbfcdf7732 diff --git a/cinelerra-5.1/cinelerra/colorpicker.h b/cinelerra-5.1/cinelerra/colorpicker.h index 85fa706b..9116e0d6 100644 --- a/cinelerra-5.1/cinelerra/colorpicker.h +++ b/cinelerra-5.1/cinelerra/colorpicker.h @@ -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 {