modify clr btn 16 plugins, add regdmp for sigtraps, rework mask_engine, mask rotate...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / shiftinterlace / shiftinterlace.h
index d4618a073c4f391fb50ba266a1418097d040e33b..68a8735fe757da8232bc18658259d7258f952a12 100644 (file)
@@ -29,6 +29,7 @@
 #include "guicast.h"
 #include "language.h"
 #include "pluginvclient.h"
+#include "theme.h"
 #include "vframe.h"
 
 
@@ -37,9 +38,9 @@
 #include <string.h>
 
 
-
-
-
+#define RESET_ALL 0
+#define RESET_ODD_OFFSET  1
+#define RESET_EVEN_OFFSET 2
 
 
 class ShiftInterlaceWindow;
@@ -50,7 +51,7 @@ class ShiftInterlaceConfig
 public:
        ShiftInterlaceConfig();
 
-       void reset();
+       void reset(int clear);
        int equivalent(ShiftInterlaceConfig &that);
        void copy_from(ShiftInterlaceConfig &that);
        void interpolate(ShiftInterlaceConfig &prev,
@@ -91,18 +92,30 @@ public:
        ShiftInterlaceWindow *gui;
 };
 
+class ShiftInterlaceSliderClr : public BC_Button
+{
+public:
+       ShiftInterlaceSliderClr(ShiftInterlaceMain *plugin, ShiftInterlaceWindow *gui, int x, int y, int w, int clear);
+       ~ShiftInterlaceSliderClr();
+       int handle_event();
+       ShiftInterlaceMain *plugin;
+       ShiftInterlaceWindow *gui;
+       int clear;
+};
+
 class ShiftInterlaceWindow : public PluginClientWindow
 {
 public:
        ShiftInterlaceWindow(ShiftInterlaceMain *plugin);
 
        void create_objects();
-       void update();
+       void update_gui(int clear);
 
        ShiftInterlaceOdd *odd_offset;
        ShiftInterlaceEven *even_offset;
        ShiftInterlaceMain *plugin;
        ShiftInterlaceReset *reset;
+       ShiftInterlaceSliderClr *odd_offsetClr, *even_offsetClr;
 };