X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Funsharp%2Funsharpwindow.h;h=3b4ef7ca03b582237cafb91d87b41eaacea9a202;hb=5ec378f09aeeb646705fdb8035b39a186374fba0;hp=d5dc1cf30f0bf680575e3fdebabdd28845b80719;hpb=7fd85fb66168f6b518c5f2d73e04036e87faa0e1;p=goodguy%2Fcinelerra.git diff --git a/cinelerra-5.1/plugins/unsharp/unsharpwindow.h b/cinelerra-5.1/plugins/unsharp/unsharpwindow.h index d5dc1cf3..3b4ef7ca 100644 --- a/cinelerra-5.1/plugins/unsharp/unsharpwindow.h +++ b/cinelerra-5.1/plugins/unsharp/unsharpwindow.h @@ -26,6 +26,13 @@ #include "unsharp.inc" #include "unsharpwindow.inc" +#define RESET_DEFAULT_SETTINGS 10 +#define RESET_ALL 0 +#define RESET_RADIUS 1 +#define RESET_AMOUNT 2 +#define RESET_THRESHOLD 3 + + class UnsharpRadius : public BC_FPot { public: @@ -50,6 +57,37 @@ public: UnsharpMain *plugin; }; +class UnsharpReset : public BC_GenericButton +{ +public: + UnsharpReset(UnsharpMain *plugin, UnsharpWindow *window, int x, int y); + ~UnsharpReset(); + int handle_event(); + UnsharpMain *plugin; + UnsharpWindow *window; +}; + +class UnsharpDefaultSettings : public BC_GenericButton +{ +public: + UnsharpDefaultSettings(UnsharpMain *plugin, UnsharpWindow *window, int x, int y, int w); + ~UnsharpDefaultSettings(); + int handle_event(); + UnsharpMain *plugin; + UnsharpWindow *window; +}; + +class UnsharpSliderClr : public BC_Button +{ +public: + UnsharpSliderClr(UnsharpMain *plugin, UnsharpWindow *window, int x, int y, int w, int clear); + ~UnsharpSliderClr(); + int handle_event(); + UnsharpMain *plugin; + UnsharpWindow *window; + int clear; +}; + class UnsharpWindow : public PluginClientWindow { public: @@ -57,12 +95,17 @@ public: ~UnsharpWindow(); void create_objects(); - void update(); + void update_gui(int clear); UnsharpRadius *radius; UnsharpAmount *amount; UnsharpThreshold *threshold; UnsharpMain *plugin; + UnsharpReset *reset; + UnsharpDefaultSettings *default_settings; + UnsharpSliderClr *radiusClr; + UnsharpSliderClr *amountClr; + UnsharpSliderClr *thresholdClr; };