PKGBUILD fix libva/vdpau deps
[goodguy/cinelerra.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 #define RESET_DEFAULT_SETTINGS 10
26 #define RESET_ALL     0
27 #define RESET_CYAN    1
28 #define RESET_MAGENTA 2
29 #define RESET_YELLOW  3
30
31 class ColorBalanceThread;
32 class ColorBalanceWindow;
33 class ColorBalanceSlider;
34 class ColorBalancePreserve;
35 class ColorBalanceLock;
36 class ColorBalanceWhite;
37 class ColorBalanceReset;
38 class ColorBalanceSliderClr;
39
40 #include "filexml.h"
41 #include "guicast.h"
42 #include "mutex.h"
43 #include "colorbalance.h"
44 #include "pluginclient.h"
45
46
47
48 class ColorBalanceWindow : public PluginClientWindow
49 {
50 public:
51         ColorBalanceWindow(ColorBalanceMain *client);
52         ~ColorBalanceWindow();
53
54         void create_objects();
55         void update_gui(int clear);
56
57         ColorBalanceMain *client;
58         ColorBalanceSlider *cyan;
59         ColorBalanceSlider *magenta;
60         ColorBalanceSlider *yellow;
61         ColorBalanceLock *lock_params;
62         ColorBalancePreserve *preserve;
63         ColorBalanceWhite *use_eyedrop;
64         ColorBalanceReset *reset;
65         ColorBalanceSliderClr *cyanClr;
66         ColorBalanceSliderClr *magentaClr;
67         ColorBalanceSliderClr *yellowClr;
68 };
69
70 class ColorBalanceSlider : public BC_ISlider
71 {
72 public:
73         ColorBalanceSlider(ColorBalanceMain *client, float *output, int x, int y);
74         ~ColorBalanceSlider();
75         int handle_event();
76         char* get_caption();
77
78         ColorBalanceMain *client;
79         float *output;
80         float old_value;
81         char string[BCTEXTLEN];
82 };
83
84 class ColorBalancePreserve : public BC_CheckBox
85 {
86 public:
87         ColorBalancePreserve(ColorBalanceMain *client, int x, int y);
88     ~ColorBalancePreserve();
89
90     int handle_event();
91     ColorBalanceMain *client;
92 };
93
94 class ColorBalanceLock : public BC_CheckBox
95 {
96 public:
97         ColorBalanceLock(ColorBalanceMain *client, int x, int y);
98     ~ColorBalanceLock();
99
100     int handle_event();
101     ColorBalanceMain *client;
102 };
103
104 class ColorBalanceWhite : public BC_GenericButton
105 {
106 public:
107         ColorBalanceWhite(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y);
108         int handle_event();
109         ColorBalanceMain *plugin;
110         ColorBalanceWindow *gui;
111 };
112
113 class ColorBalanceReset : public BC_GenericButton
114 {
115 public:
116         ColorBalanceReset(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y);
117         int handle_event();
118         ColorBalanceMain *plugin;
119         ColorBalanceWindow *gui;
120 };
121
122 class ColorBalanceSliderClr : public BC_GenericButton
123 {
124 public:
125         ColorBalanceSliderClr(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y, int w, int clear);
126         ~ColorBalanceSliderClr();
127         int handle_event();
128         ColorBalanceMain *plugin;
129         ColorBalanceWindow *gui;
130         int clear;
131 };
132
133 #endif