load fn from resources, del kfrm speed update, svg exec cmd/file win fixes, undo...
[goodguy/history.git] / cinelerra-5.1 / plugins / gradient / gradient.h
index 736e975af0b156ae1536d8b12e2b66512bcfdcc9..f6d1d99450b1e8ebefe6cddc919caa851134102f 100644 (file)
@@ -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