b1e684c44c10e6ef52c7b2fca2a13f23af0ed716
[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
30 #define RESET_DEFAULT_SETTINGS 10
31 #define RESET_ALL 0
32 #define RESET_SHARPEN_SLIDER 1
33
34 class SharpenWindow;
35 class SharpenInterlace;
36 class SharpenSlider;
37 class SharpenHorizontal;
38 class SharpenLuminance;
39 class SharpenReset;
40 class SharpenDefaultSettings;
41 class SharpenSliderClr;
42
43 class SharpenWindow : public PluginClientWindow
44 {
45 public:
46         SharpenWindow(SharpenMain *client);
47         ~SharpenWindow();
48
49         void create_objects();
50         void update_gui(int clear);
51
52         SharpenMain *client;
53         SharpenSlider *sharpen_slider;
54         SharpenInterlace *sharpen_interlace;
55         SharpenHorizontal *sharpen_horizontal;
56         SharpenLuminance *sharpen_luminance;
57         SharpenReset *reset;
58         SharpenDefaultSettings *default_settings;
59         SharpenSliderClr *sharpen_sliderClr;
60 };
61
62 class SharpenSlider : public BC_ISlider
63 {
64 public:
65         SharpenSlider(SharpenMain *client, float *output, int x, int y);
66         ~SharpenSlider();
67         int handle_event();
68
69         SharpenMain *client;
70         float *output;
71 };
72
73 class SharpenInterlace : public BC_CheckBox
74 {
75 public:
76         SharpenInterlace(SharpenMain *client, int x, int y);
77         ~SharpenInterlace();
78         int handle_event();
79
80         SharpenMain *client;
81 };
82
83 class SharpenHorizontal : public BC_CheckBox
84 {
85 public:
86         SharpenHorizontal(SharpenMain *client, int x, int y);
87         ~SharpenHorizontal();
88         int handle_event();
89
90         SharpenMain *client;
91 };
92
93 class SharpenLuminance : public BC_CheckBox
94 {
95 public:
96         SharpenLuminance(SharpenMain *client, int x, int y);
97         ~SharpenLuminance();
98         int handle_event();
99
100         SharpenMain *client;
101 };
102
103 class SharpenReset : public BC_GenericButton
104 {
105 public:
106         SharpenReset(SharpenMain *client, SharpenWindow *gui, int x, int y);
107         ~SharpenReset();
108         int handle_event();
109         SharpenMain *client;
110         SharpenWindow *gui;
111 };
112
113 class SharpenDefaultSettings : public BC_GenericButton
114 {
115 public:
116         SharpenDefaultSettings(SharpenMain *client, SharpenWindow *gui, int x, int y, int w);
117         ~SharpenDefaultSettings();
118         int handle_event();
119         SharpenMain *client;
120         SharpenWindow *gui;
121 };
122
123 class SharpenSliderClr : public BC_GenericButton
124 {
125 public:
126         SharpenSliderClr(SharpenMain *client, SharpenWindow *gui, int x, int y, int w);
127         ~SharpenSliderClr();
128         int handle_event();
129         SharpenMain *client;
130         SharpenWindow *gui;
131 };
132
133 #endif