X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fplugins%2Fgradient%2Fgradient.h;h=f6d1d99450b1e8ebefe6cddc919caa851134102f;hb=bd0694fcee6080ec61e243ac6f278be5a48d564b;hp=736e975af0b156ae1536d8b12e2b66512bcfdcc9;hpb=28600526f736ffd4f104f29495a4bb36497e1ea8;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/gradient/gradient.h b/cinelerra-5.1/plugins/gradient/gradient.h index 736e975a..f6d1d994 100644 --- a/cinelerra-5.1/plugins/gradient/gradient.h +++ b/cinelerra-5.1/plugins/gradient/gradient.h @@ -37,7 +37,7 @@ class GradientServer; #include "guicast.h" #include "loadbalance.h" #include "overlayframe.inc" -#include "cicolors.h" +#include "bccolors.h" #include "pluginvclient.h" #include "thread.h" #include "vframe.inc" @@ -48,6 +48,7 @@ public: GradientConfig(); int equivalent(GradientConfig &that); + void reset(); void copy_from(GradientConfig &that); void interpolate(GradientConfig &prev, GradientConfig &next, @@ -170,6 +171,15 @@ public: GradientWindow *window; }; +class GradientReset : public BC_GenericButton +{ +public: + GradientReset(GradientMain *plugin, GradientWindow *window, int x, int y); + int handle_event(); + GradientMain *plugin; + GradientWindow *window; +}; + class GradientInColorThread : public ColorPicker { @@ -201,6 +211,7 @@ public: void create_objects(); void update_in_color(); void update_out_color(); + void update_gui(); void update_shape(); void done_event(int result); @@ -211,6 +222,7 @@ public: GradientOutRadius *out_radius; GradientInColorButton *in_color; GradientOutColorButton *out_color; + GradientReset *reset; GradientInColorThread *in_color_thread; GradientOutColorThread *out_color_thread; GradientShape *shape; @@ -272,7 +284,6 @@ public: void process_package(LoadPackage *package); GradientServer *server; GradientMain *plugin; - YUV yuv; }; class GradientServer : public LoadServer