4 * Copyright (C) 1997-2012 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
23 #ifndef FINDOBJECTWINDOW_H
24 #define FINDOBJECTWINDOW_H
27 #include "findobject.inc"
29 class FindObjectLayer : public BC_TumbleTextBox
32 FindObjectLayer(FindObjectMain *plugin,
33 FindObjectWindow *gui,
38 static int calculate_w(FindObjectWindow *gui);
39 FindObjectMain *plugin;
40 FindObjectWindow *gui;
44 class FindObjectGlobalRange : public BC_IPot
47 FindObjectGlobalRange(FindObjectMain *plugin,
52 FindObjectMain *plugin;
56 class FindObjectBlockSize : public BC_FPot
59 FindObjectBlockSize(FindObjectMain *plugin,
64 FindObjectMain *plugin;
68 class FindObjectBlockCenterText;
70 class FindObjectBlockCenter : public BC_FPot
73 FindObjectBlockCenter(FindObjectMain *plugin,
74 FindObjectWindow *gui,
79 FindObjectWindow *gui;
80 FindObjectMain *plugin;
81 FindObjectBlockCenterText *center_text;
85 class FindObjectBlockCenterText : public BC_TextBox
88 FindObjectBlockCenterText(FindObjectMain *plugin,
89 FindObjectWindow *gui,
94 FindObjectWindow *gui;
95 FindObjectMain *plugin;
96 FindObjectBlockCenter *center;
102 class FindObjectDrawBorder : public BC_CheckBox
105 FindObjectDrawBorder(FindObjectMain *plugin,
106 FindObjectWindow *gui,
110 FindObjectMain *plugin;
111 FindObjectWindow *gui;
114 class FindObjectDrawKeypoints : public BC_CheckBox
117 FindObjectDrawKeypoints(FindObjectMain *plugin,
118 FindObjectWindow *gui,
122 FindObjectMain *plugin;
123 FindObjectWindow *gui;
126 class FindObjectReplace : public BC_CheckBox
129 FindObjectReplace(FindObjectMain *plugin,
130 FindObjectWindow *gui,
134 FindObjectMain *plugin;
135 FindObjectWindow *gui;
139 class FindObjectDrawObjectBorder : public BC_CheckBox
142 FindObjectDrawObjectBorder(FindObjectMain *plugin,
143 FindObjectWindow *gui,
147 FindObjectMain *plugin;
148 FindObjectWindow *gui;
154 class FindObjectAlgorithm : public BC_PopupMenu
157 FindObjectAlgorithm(FindObjectMain *plugin,
158 FindObjectWindow *gui,
162 void create_objects();
163 static int calculate_w(FindObjectWindow *gui);
164 static int from_text(char *text);
165 static char* to_text(int mode);
166 FindObjectMain *plugin;
167 FindObjectWindow *gui;
171 class FindObjectCamParam : public BC_IPot
174 FindObjectCamParam(FindObjectMain *plugin,
179 FindObjectMain *plugin;
184 class FindObjectBlend : public BC_IPot
187 FindObjectBlend(FindObjectMain *plugin,
192 FindObjectMain *plugin;
197 class FindObjectWindow : public PluginClientWindow
200 FindObjectWindow(FindObjectMain *plugin);
203 void create_objects();
204 char* get_radius_title();
206 FindObjectGlobalRange *global_range_w;
207 FindObjectGlobalRange *global_range_h;
208 FindObjectBlockSize *global_block_w;
209 FindObjectBlockSize *global_block_h;
210 FindObjectBlockCenter *block_x;
211 FindObjectBlockCenter *block_y;
212 FindObjectBlockCenterText *block_x_text;
213 FindObjectBlockCenterText *block_y_text;
214 FindObjectDrawKeypoints *draw_keypoints;
215 FindObjectDrawBorder *draw_border;
216 FindObjectReplace *replace_object;
217 FindObjectDrawObjectBorder *draw_object_border;
218 FindObjectLayer *object_layer;
219 FindObjectLayer *scene_layer;
220 FindObjectLayer *replace_layer;
221 FindObjectAlgorithm *algorithm;
222 FindObjectCamParam *vmin;
223 FindObjectCamParam *vmax;
224 FindObjectCamParam *smin;
225 FindObjectBlend *blend;
226 FindObjectMain *plugin;
233 #endif // FINDOBJECTWINDOW_H