6cc217068fc651ea7edb3838bf292f9fb1a2e703
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / sharpen / sharpenwindow.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  */
21
22 #ifndef SHARPENWINDOW_H
23 #define SHARPENWINDOW_H
24
25 #include "guicast.h"
26 #include "filexml.h"
27 #include "mutex.h"
28 #include "sharpen.h"
29 #include "theme.h"
30
31 #define RESET_DEFAULT_SETTINGS 10
32 #define RESET_ALL 0
33 #define RESET_SHARPEN_SLIDER 1
34
35 class SharpenWindow;
36 class SharpenInterlace;
37 class SharpenSlider;
38 class SharpenHorizontal;
39 class SharpenLuminance;
40 class SharpenReset;
41 class SharpenDefaultSettings;
42 class SharpenSliderClr;
43
44 class SharpenWindow : public PluginClientWindow
45 {
46 public:
47         SharpenWindow(SharpenMain *client);
48         ~SharpenWindow();
49
50         void create_objects();
51         void update_gui(int clear);
52
53         SharpenMain *client;
54         SharpenSlider *sharpen_slider;
55         SharpenInterlace *sharpen_interlace;
56         SharpenHorizontal *sharpen_horizontal;
57         SharpenLuminance *sharpen_luminance;
58         SharpenReset *reset;
59         SharpenDefaultSettings *default_settings;
60         SharpenSliderClr *sharpen_sliderClr;
61 };
62
63 class SharpenSlider : public BC_ISlider
64 {
65 public:
66         SharpenSlider(SharpenMain *client, float *output, int x, int y);
67         ~SharpenSlider();
68         int handle_event();
69
70         SharpenMain *client;
71         float *output;
72 };
73
74 class SharpenInterlace : public BC_CheckBox
75 {
76 public:
77         SharpenInterlace(SharpenMain *client, int x, int y);
78         ~SharpenInterlace();
79         int handle_event();
80
81         SharpenMain *client;
82 };
83
84 class SharpenHorizontal : public BC_CheckBox
85 {
86 public:
87         SharpenHorizontal(SharpenMain *client, int x, int y);
88         ~SharpenHorizontal();
89         int handle_event();
90
91         SharpenMain *client;
92 };
93
94 class SharpenLuminance : public BC_CheckBox
95 {
96 public:
97         SharpenLuminance(SharpenMain *client, int x, int y);
98         ~SharpenLuminance();
99         int handle_event();
100
101         SharpenMain *client;
102 };
103
104 class SharpenReset : public BC_GenericButton
105 {
106 public:
107         SharpenReset(SharpenMain *client, SharpenWindow *gui, int x, int y);
108         ~SharpenReset();
109         int handle_event();
110         SharpenMain *client;
111         SharpenWindow *gui;
112 };
113
114 class SharpenDefaultSettings : public BC_GenericButton
115 {
116 public:
117         SharpenDefaultSettings(SharpenMain *client, SharpenWindow *gui, int x, int y, int w);
118         ~SharpenDefaultSettings();
119         int handle_event();
120         SharpenMain *client;
121         SharpenWindow *gui;
122 };
123
124 class SharpenSliderClr : public BC_Button
125 {
126 public:
127         SharpenSliderClr(SharpenMain *client, SharpenWindow *gui, int x, int y, int w);
128         ~SharpenSliderClr();
129         int handle_event();
130         SharpenMain *client;
131         SharpenWindow *gui;
132 };
133
134 #endif