configure.ac add with-cuda/nv, update cakewalk theme, add cuda/plugins=mandel+nbody...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / brightness / brightnesswindow.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 BRIGHTNESSWINDOW_H
23 #define BRIGHTNESSWINDOW_H
24
25 #include "brightness.h"
26 #include "guicast.h"
27 #include "mutex.h"
28 #include "pluginvclient.h"
29 #include "thread.h"
30
31 #define RESET_ALL 0
32 #define RESET_CONTRAST   1
33 #define RESET_BRIGHTNESS 2
34
35 class BrightnessThread;
36 class BrightnessWindow;
37 class BrightnessSlider;
38 class BrightnessLuma;
39 class BrightnessReset;
40 class BrightnessSliderClr;
41
42
43 class BrightnessWindow : public PluginClientWindow
44 {
45 public:
46         BrightnessWindow(BrightnessMain *client);
47         ~BrightnessWindow();
48         void update_gui(int clear);
49         void create_objects();
50
51         BrightnessMain *client;
52         BrightnessSlider *brightness;
53         BrightnessSlider *contrast;
54         BrightnessLuma *luma;
55         BrightnessReset *reset;
56         BrightnessSliderClr *brightnessClr;
57         BrightnessSliderClr *contrastClr;
58 };
59
60 class BrightnessSlider : public BC_FSlider
61 {
62 public:
63         BrightnessSlider(BrightnessMain *client, float *output, int x, int y, int is_brightness);
64         ~BrightnessSlider();
65         int handle_event();
66         char* get_caption();
67
68         BrightnessMain *client;
69         float *output;
70         int is_brightness;
71         char string[BCTEXTLEN];
72 };
73
74 class BrightnessLuma : public BC_CheckBox
75 {
76 public:
77         BrightnessLuma(BrightnessMain *client, int x, int y);
78         ~BrightnessLuma();
79         int handle_event();
80
81         BrightnessMain *client;
82 };
83
84 class BrightnessReset : public BC_GenericButton
85 {
86 public:
87         BrightnessReset(BrightnessMain *client, BrightnessWindow *window, int x, int y);
88         ~BrightnessReset();
89         int handle_event();
90         BrightnessMain *client;
91         BrightnessWindow *window;
92 };
93
94 class BrightnessSliderClr : public BC_Button
95 {
96 public:
97         BrightnessSliderClr(BrightnessMain *client, BrightnessWindow *window, int x, int y, int w, int is_brightness);
98         ~BrightnessSliderClr();
99         int handle_event();
100         BrightnessMain *client;
101         BrightnessWindow *window;
102         int is_brightness;
103 };
104
105 #endif
106
107
108
109