X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fshiftinterlace%2Fshiftinterlace.h;h=68a8735fe757da8232bc18658259d7258f952a12;hp=d4618a073c4f391fb50ba266a1418097d040e33b;hb=c857b2fb7965d27d86d5785fb9f1b8957a871a1a;hpb=54cc56bff09f5004b2a6cd454375f06e56acf5a0 diff --git a/cinelerra-5.1/plugins/shiftinterlace/shiftinterlace.h b/cinelerra-5.1/plugins/shiftinterlace/shiftinterlace.h index d4618a07..68a8735f 100644 --- a/cinelerra-5.1/plugins/shiftinterlace/shiftinterlace.h +++ b/cinelerra-5.1/plugins/shiftinterlace/shiftinterlace.h @@ -29,6 +29,7 @@ #include "guicast.h" #include "language.h" #include "pluginvclient.h" +#include "theme.h" #include "vframe.h" @@ -37,9 +38,9 @@ #include - - - +#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; };