4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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.
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.
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
22 #ifndef SHARPENWINDOW_H
23 #define SHARPENWINDOW_H
31 #define RESET_DEFAULT_SETTINGS 10
33 #define RESET_SHARPEN_SLIDER 1
36 class SharpenInterlace;
38 class SharpenHorizontal;
39 class SharpenLuminance;
41 class SharpenDefaultSettings;
42 class SharpenSliderClr;
44 class SharpenWindow : public PluginClientWindow
47 SharpenWindow(SharpenMain *client);
50 void create_objects();
51 void update_gui(int clear);
54 SharpenSlider *sharpen_slider;
55 SharpenInterlace *sharpen_interlace;
56 SharpenHorizontal *sharpen_horizontal;
57 SharpenLuminance *sharpen_luminance;
59 SharpenDefaultSettings *default_settings;
60 SharpenSliderClr *sharpen_sliderClr;
63 class SharpenSlider : public BC_ISlider
66 SharpenSlider(SharpenMain *client, float *output, int x, int y);
74 class SharpenInterlace : public BC_CheckBox
77 SharpenInterlace(SharpenMain *client, int x, int y);
84 class SharpenHorizontal : public BC_CheckBox
87 SharpenHorizontal(SharpenMain *client, int x, int y);
94 class SharpenLuminance : public BC_CheckBox
97 SharpenLuminance(SharpenMain *client, int x, int y);
104 class SharpenReset : public BC_GenericButton
107 SharpenReset(SharpenMain *client, SharpenWindow *gui, int x, int y);
114 class SharpenDefaultSettings : public BC_GenericButton
117 SharpenDefaultSettings(SharpenMain *client, SharpenWindow *gui, int x, int y, int w);
118 ~SharpenDefaultSettings();
124 class SharpenSliderClr : public BC_Button
127 SharpenSliderClr(SharpenMain *client, SharpenWindow *gui, int x, int y, int w);