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=4bba77e210811a841bd6ac71259a364ea4236b6a;hp=d4618a073c4f391fb50ba266a1418097d040e33b;hb=c905fabd0678fcc8ab9e32e4443ad8709adafefd;hpb=a4091ab5bcfb46773cbabaf1303c427346b35fbe diff --git a/cinelerra-5.1/plugins/shiftinterlace/shiftinterlace.h b/cinelerra-5.1/plugins/shiftinterlace/shiftinterlace.h index d4618a07..4bba77e2 100644 --- a/cinelerra-5.1/plugins/shiftinterlace/shiftinterlace.h +++ b/cinelerra-5.1/plugins/shiftinterlace/shiftinterlace.h @@ -37,9 +37,9 @@ #include - - - +#define RESET_ALL 0 +#define RESET_ODD_OFFSET 1 +#define RESET_EVEN_OFFSET 2 class ShiftInterlaceWindow; @@ -50,7 +50,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 +91,30 @@ public: ShiftInterlaceWindow *gui; }; +class ShiftInterlaceSliderClr : public BC_GenericButton +{ +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; };