4 * Copyright (C) 2008 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 ColorSpaceWINDOW_H
23 #define ColorSpaceWINDOW_H
27 class ColorSpaceSpace;
28 class ColorSpaceRange;
29 class ColorSpaceThread;
30 class ColorSpaceWindow;
34 #include "colorspace.h"
37 class ColorSpaceSpace : public BC_PopupMenu
39 static const char *color_space[3];
41 ColorSpaceSpace(ColorSpaceWindow *gui, int x, int y, int *value);
43 void create_objects();
47 ColorSpaceWindow *gui;
51 class ColorSpaceSpaceItem : public BC_MenuItem
54 ColorSpaceSpaceItem(ColorSpaceSpace *popup, const char *text, int id);
57 ColorSpaceSpace *popup;
61 class ColorSpaceRange : public BC_PopupMenu
63 static const char *color_range[2];
65 ColorSpaceRange(ColorSpaceWindow *gui, int x, int y, int *value);
67 void create_objects();
71 ColorSpaceWindow *gui;
75 class ColorSpaceRangeItem : public BC_MenuItem
78 ColorSpaceRangeItem(ColorSpaceRange *popup, const char *text, int id);
81 ColorSpaceRange *popup;
85 class ColorSpaceInverse : public BC_CheckBox
88 ColorSpaceInverse(ColorSpaceWindow *gui, int x, int y, int *value);
93 ColorSpaceWindow *gui;
97 class ColorSpaceWindow : public PluginClientWindow
100 ColorSpaceWindow(ColorSpaceMain *plugin);
103 void create_objects();
107 ColorSpaceMain *plugin;
108 ColorSpaceInverse *inverse;
109 ColorSpaceSpace *inp_space, *out_space;
110 ColorSpaceRange *inp_range, *out_range;