modify clr btn 16 plugins, add regdmp for sigtraps, rework mask_engine, mask rotate...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / sharpen / sharpenwindow.h
index 2376fa9..6cc2170 100644 (file)
 #define SHARPENWINDOW_H
 
 #include "guicast.h"
-
-class SharpenWindow;
-class SharpenInterlace;
-
 #include "filexml.h"
 #include "mutex.h"
 #include "sharpen.h"
+#include "theme.h"
 
+#define RESET_DEFAULT_SETTINGS 10
+#define RESET_ALL 0
+#define RESET_SHARPEN_SLIDER 1
 
-
-
-
-
+class SharpenWindow;
+class SharpenInterlace;
 class SharpenSlider;
 class SharpenHorizontal;
 class SharpenLuminance;
+class SharpenReset;
+class SharpenDefaultSettings;
+class SharpenSliderClr;
 
 class SharpenWindow : public PluginClientWindow
 {
@@ -47,12 +48,16 @@ public:
        ~SharpenWindow();
 
        void create_objects();
+       void update_gui(int clear);
 
        SharpenMain *client;
        SharpenSlider *sharpen_slider;
        SharpenInterlace *sharpen_interlace;
        SharpenHorizontal *sharpen_horizontal;
        SharpenLuminance *sharpen_luminance;
+       SharpenReset *reset;
+       SharpenDefaultSettings *default_settings;
+       SharpenSliderClr *sharpen_sliderClr;
 };
 
 class SharpenSlider : public BC_ISlider
@@ -96,5 +101,34 @@ public:
        SharpenMain *client;
 };
 
+class SharpenReset : public BC_GenericButton
+{
+public:
+       SharpenReset(SharpenMain *client, SharpenWindow *gui, int x, int y);
+       ~SharpenReset();
+       int handle_event();
+       SharpenMain *client;
+       SharpenWindow *gui;
+};
+
+class SharpenDefaultSettings : public BC_GenericButton
+{
+public:
+       SharpenDefaultSettings(SharpenMain *client, SharpenWindow *gui, int x, int y, int w);
+       ~SharpenDefaultSettings();
+       int handle_event();
+       SharpenMain *client;
+       SharpenWindow *gui;
+};
+
+class SharpenSliderClr : public BC_Button
+{
+public:
+       SharpenSliderClr(SharpenMain *client, SharpenWindow *gui, int x, int y, int w);
+       ~SharpenSliderClr();
+       int handle_event();
+       SharpenMain *client;
+       SharpenWindow *gui;
+};
 
 #endif