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 6c5bffb..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
 {
@@ -48,7 +48,7 @@ public:
        ~SharpenWindow();
 
        void create_objects();
-       void update();
+       void update_gui(int clear);
 
        SharpenMain *client;
        SharpenSlider *sharpen_slider;
@@ -56,6 +56,8 @@ public:
        SharpenHorizontal *sharpen_horizontal;
        SharpenLuminance *sharpen_luminance;
        SharpenReset *reset;
+       SharpenDefaultSettings *default_settings;
+       SharpenSliderClr *sharpen_sliderClr;
 };
 
 class SharpenSlider : public BC_ISlider
@@ -109,4 +111,24 @@ public:
        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