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 BRIGHTNESSWINDOW_H
23 #define BRIGHTNESSWINDOW_H
25 #include "brightness.h"
28 #include "pluginvclient.h"
32 #define RESET_CONTRAST 1
33 #define RESET_BRIGHTNESS 2
35 #define MAXVALUE 100.00
37 class BrightnessThread;
38 class BrightnessWindow;
39 class BrightnessFText;
40 class BrightnessFSlider;
42 class BrightnessReset;
46 class BrightnessWindow : public PluginClientWindow
49 BrightnessWindow(BrightnessMain *client);
51 void update_gui(int clear);
52 void create_objects();
54 BrightnessMain *client;
56 BrightnessFText *brightness_text;
57 BrightnessFSlider *brightness_slider;
58 BrightnessClr *brightness_Clr;
60 BrightnessFText *contrast_text;
61 BrightnessFSlider *contrast_slider;
62 BrightnessClr *contrast_Clr;
65 BrightnessReset *reset;
68 class BrightnessFText : public BC_TumbleTextBox
71 BrightnessFText(BrightnessWindow *window, BrightnessMain *client,
72 BrightnessFSlider *slider, float *output, int x, int y, float min, float max);
75 BrightnessWindow *window;
76 BrightnessMain *client;
77 BrightnessFSlider *slider;
82 class BrightnessFSlider : public BC_FSlider
85 BrightnessFSlider(BrightnessMain *client,
86 BrightnessFText *text, float *output, int x, int y,
87 float min, float max, int w, int is_brightness);
92 BrightnessMain *client;
93 BrightnessFText *text;
96 char string[BCTEXTLEN];
99 class BrightnessLuma : public BC_CheckBox
102 BrightnessLuma(BrightnessMain *client, int x, int y);
105 BrightnessMain *client;
108 class BrightnessReset : public BC_GenericButton
111 BrightnessReset(BrightnessMain *client, BrightnessWindow *window, int x, int y);
114 BrightnessMain *client;
115 BrightnessWindow *window;
118 class BrightnessClr : public BC_Button
121 BrightnessClr(BrightnessMain *client, BrightnessWindow *window, int x, int y, int clear);
124 BrightnessMain *client;
125 BrightnessWindow *window;