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
23 #include "motion51.inc"
26 class Motion51SampleSteps : public BC_PopupMenu
29 Motion51SampleSteps(Motion51Main *plugin, int x, int y, int w);
30 void create_objects();
36 class Motion51DrawVectors : public BC_CheckBox
39 Motion51DrawVectors(Motion51Main *plugin, Motion51Window *gui, int x, int y);
45 class Motion51TrackingFile : public BC_TextBox
48 Motion51TrackingFile(Motion51Main *plugin, const char *filename,
49 Motion51Window *gui, int x, int y, int w);
55 class Motion51Limits : public BC_TumbleTextBox {
57 Motion51Limits(Motion51Main *plugin, Motion51Window *gui, int x, int y,
58 const char *ttext, float *value, float min, float max, int ttbox_w);
61 void create_objects();
70 int get_w() { return BC_TumbleTextBox::get_w()+5+title->get_w(); }
71 int get_h() { return BC_TumbleTextBox::get_h(); }
74 class Motion51ResetConfig : public BC_GenericButton
77 Motion51ResetConfig(Motion51Main *plugin, Motion51Window *gui, int x, int y);
83 class Motion51ResetTracking : public BC_GenericButton
86 Motion51ResetTracking(Motion51Main *plugin, Motion51Window *gui, int x, int y);
92 class Motion51EnableTracking : public BC_CheckBox
95 Motion51EnableTracking(Motion51Main *plugin, Motion51Window *gui, int x, int y);
101 class Motion51Window : public PluginClientWindow
104 Motion51Window(Motion51Main *plugin);
107 void create_objects();
110 Motion51Main *plugin;
111 Motion51Limits *horiz_limit, *vert_limit, *twist_limit;
112 Motion51Limits *shake_fade, *twist_fade;
113 Motion51Limits *sample_r;
114 Motion51SampleSteps *sample_steps;
115 Motion51Limits *block_x, *block_y, *block_w, *block_h;
116 Motion51DrawVectors *draw_vectors;
117 Motion51TrackingFile *tracking_file;
118 Motion51ResetConfig *reset_config;
119 Motion51ResetTracking *reset_tracking;
120 Motion51EnableTracking *enable_tracking;