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
25 #include "cwindowgui.inc"
29 #include "mwindow.inc"
34 CPanel(MWindow *mwindow, CWindowGUI *subwindow, int x, int y, int w, int h);
37 void create_objects();
38 void reposition_buttons(int x, int y, int h);
39 void set_operation(int value);
42 CWindowGUI *subwindow;
43 CPanelZoom *cpanel_zoom;
47 BC_Toggle* operation[CPANEL_OPERATIONS];
50 class CPanelMask : public BC_Toggle
53 CPanelMask(MWindow *mwindow, CPanel *gui, int x, int y);
60 class CPanelRuler : public BC_Toggle
63 CPanelRuler(MWindow *mwindow, CPanel *gui, int x, int y);
70 class CPanelTitleSafe : public BC_Toggle
73 CPanelTitleSafe(MWindow *mwindow, CPanel *gui, int x, int y);
80 class CPanelErase : public BC_Toggle
83 CPanelErase(MWindow *mwindow, CPanel *gui, int x, int y);
90 class CPanelAntierase : public BC_Toggle
93 CPanelAntierase(MWindow *mwindow, CPanel *gui, int x, int y);
100 class CPanelProtect : public BC_Toggle
103 CPanelProtect(MWindow *mwindow, CPanel *gui, int x, int y);
110 class CPanelMagnify : public BC_Toggle
113 CPanelMagnify(MWindow *mwindow, CPanel *gui, int x, int y);
120 class CPanelCamera : public BC_Toggle
123 CPanelCamera(MWindow *mwindow, CPanel *gui, int x, int y);
130 class CPanelProj : public BC_Toggle
133 CPanelProj(MWindow *mwindow, CPanel *gui, int x, int y);
140 class CPanelCrop : public BC_Toggle
143 CPanelCrop(MWindow *mwindow, CPanel *gui, int x, int y);
150 class CPanelEyedrop : public BC_Toggle
153 CPanelEyedrop(MWindow *mwindow, CPanel *gui, int x, int y);
160 class CPanelToolWindow : public BC_Toggle
163 CPanelToolWindow(MWindow *mwindow, CPanel *gui, int x, int y);
166 int set_shown(int shown);
171 class CPanelZoom : public BC_FSlider
174 CPanelZoom(MWindow *mwindow, CPanel *gui, int x, int y, int h);
178 int set_shown(int shown);
179 int show_window(int flush=1) { return 0; }
180 int hide_window(int flush=1) { return 0; }
181 int show(int flush=1) { return BC_SubWindow::show_window(flush); }
182 int hide(int flush=1) { return BC_SubWindow::hide_window(flush); }
183 void update(float zoom);