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
26 class ColorBalanceThread;
27 class ColorBalanceWindow;
28 class ColorBalanceSlider;
29 class ColorBalancePreserve;
30 class ColorBalanceLock;
31 class ColorBalanceWhite;
32 class ColorBalanceReset;
37 #include "colorbalance.h"
38 #include "pluginclient.h"
42 class ColorBalanceWindow : public PluginClientWindow
45 ColorBalanceWindow(ColorBalanceMain *client);
46 ~ColorBalanceWindow();
48 void create_objects();
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;
61 class ColorBalanceSlider : public BC_ISlider
64 ColorBalanceSlider(ColorBalanceMain *client, float *output, int x, int y);
65 ~ColorBalanceSlider();
69 ColorBalanceMain *client;
72 char string[BCTEXTLEN];
75 class ColorBalancePreserve : public BC_CheckBox
78 ColorBalancePreserve(ColorBalanceMain *client, int x, int y);
79 ~ColorBalancePreserve();
82 ColorBalanceMain *client;
85 class ColorBalanceLock : public BC_CheckBox
88 ColorBalanceLock(ColorBalanceMain *client, int x, int y);
92 ColorBalanceMain *client;
95 class ColorBalanceWhite : public BC_GenericButton
98 ColorBalanceWhite(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y);
100 ColorBalanceMain *plugin;
101 ColorBalanceWindow *gui;
104 class ColorBalanceReset : public BC_GenericButton
107 ColorBalanceReset(ColorBalanceMain *plugin, ColorBalanceWindow *gui, int x, int y);
109 ColorBalanceMain *plugin;
110 ColorBalanceWindow *gui;