remove whitespace at eol
[goodguy/history.git] / cinelerra-5.1 / plugins / colorbalance / colorbalancewindow.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 1997-2011 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 COLORBALANCEWINDOW_H
23 #define COLORBALANCEWINDOW_H
24
25
26 class ColorBalanceThread;
27 class ColorBalanceWindow;
28 class ColorBalanceSlider;
29 class ColorBalancePreserve;
30 class ColorBalanceLock;
31 class ColorBalanceWhite;
32 class ColorBalanceReset;
33
34 #include "filexml.h"
35 #include "guicast.h"
36 #include "mutex.h"
37 #include "colorbalance.h"
38 #include "pluginclient.h"
39
40
41
42 class ColorBalanceWindow : public PluginClientWindow
43 {
44 public:
45         ColorBalanceWindow(ColorBalanceMain *client);
46         ~ColorBalanceWindow();
47
48         void create_objects();
49         void update();
50
51         ColorBalanceMain *client;
52         ColorBalanceSlider *cyan;
53         ColorBalanceSlider *magenta;
54         ColorBalanceSlider *yellow;
55     ColorBalanceLock *lock_params;
56     ColorBalancePreserve *preserve;
57         ColorBalanceWhite *use_eyedrop;
58         ColorBalanceReset *reset;
59 };
60
61 class ColorBalanceSlider : public BC_ISlider
62 {
63 public:
64         ColorBalanceSlider(ColorBalanceMain *client, float *output, int x, int y);
65         ~ColorBalanceSlider();
66         int handle_event();
67         char* get_caption();
68
69         ColorBalanceMain *client;
70         float *output;
71     float old_value;
72         char string[BCTEXTLEN];
73 };
74
75 class ColorBalancePreserve : public BC_CheckBox
76 {
77 public:
78         ColorBalancePreserve(ColorBalanceMain *client, int x, int y);
79     ~ColorBalancePreserve();
80
81     int handle_event();
82     ColorBalanceMain *client;
83 };
84
85 class ColorBalanceLock : public BC_CheckBox
86 {
87 public:
88         ColorBalanceLock(ColorBalanceMain *client, int x, int y);
89     ~ColorBalanceLock();
90
91     int handle_event();
92     ColorBalanceMain *client;
93 };
94
95 class ColorBalanceWhite : public BC_GenericButton
96 {
97 public:
98         ColorBalanceWhite(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y);
99         int handle_event();
100         ColorBalanceMain *plugin;
101         ColorBalanceWindow *gui;
102 };
103
104 class ColorBalanceReset : public BC_GenericButton
105 {
106 public:
107         ColorBalanceReset(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y);
108         int handle_event();
109         ColorBalanceMain *plugin;
110         ColorBalanceWindow *gui;
111 };
112
113 #endif