4 * Copyright (C) 1997-2011 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 COLORBALANCEWINDOW_H
23 #define COLORBALANCEWINDOW_H
25 #define RESET_DEFAULT_SETTINGS 10
28 #define RESET_MAGENTA 2
29 #define RESET_YELLOW 3
31 class ColorBalanceThread;
32 class ColorBalanceWindow;
33 class ColorBalanceSlider;
34 class ColorBalancePreserve;
35 class ColorBalanceLock;
36 class ColorBalanceWhite;
37 class ColorBalanceReset;
38 class ColorBalanceSliderClr;
43 #include "colorbalance.h"
44 #include "pluginclient.h"
48 class ColorBalanceWindow : public PluginClientWindow
51 ColorBalanceWindow(ColorBalanceMain *client);
52 ~ColorBalanceWindow();
54 void create_objects();
55 void update_gui(int clear);
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;
70 class ColorBalanceSlider : public BC_ISlider
73 ColorBalanceSlider(ColorBalanceMain *client, float *output, int x, int y);
74 ~ColorBalanceSlider();
78 ColorBalanceMain *client;
81 char string[BCTEXTLEN];
84 class ColorBalancePreserve : public BC_CheckBox
87 ColorBalancePreserve(ColorBalanceMain *client, int x, int y);
88 ~ColorBalancePreserve();
91 ColorBalanceMain *client;
94 class ColorBalanceLock : public BC_CheckBox
97 ColorBalanceLock(ColorBalanceMain *client, int x, int y);
101 ColorBalanceMain *client;
104 class ColorBalanceWhite : public BC_GenericButton
107 ColorBalanceWhite(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y);
109 ColorBalanceMain *plugin;
110 ColorBalanceWindow *gui;
113 class ColorBalanceReset : public BC_GenericButton
116 ColorBalanceReset(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y);
118 ColorBalanceMain *plugin;
119 ColorBalanceWindow *gui;
122 class ColorBalanceSliderClr : public BC_Button
125 ColorBalanceSliderClr(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y, int w, int clear);
126 ~ColorBalanceSliderClr();
128 ColorBalanceMain *plugin;
129 ColorBalanceWindow *gui;