3 * Copyright (C) 2020 William Morrow
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 #include "motion51.inc"
25 class Motion51SampleSteps : public BC_PopupMenu
28 Motion51SampleSteps(Motion51Main *plugin, int x, int y, int w);
29 void create_objects();
35 class Motion51DrawVectors : public BC_CheckBox
38 Motion51DrawVectors(Motion51Main *plugin, Motion51Window *gui, int x, int y);
44 class Motion51TrackingFile : public BC_TextBox
47 Motion51TrackingFile(Motion51Main *plugin, const char *filename,
48 Motion51Window *gui, int x, int y, int w);
54 class Motion51Limits : public BC_TumbleTextBox {
56 Motion51Limits(Motion51Main *plugin, Motion51Window *gui, int x, int y,
57 const char *ttext, float *value, float min, float max, int ttbox_w);
60 void create_objects();
69 int get_w() { return BC_TumbleTextBox::get_w()+5+title->get_w(); }
70 int get_h() { return BC_TumbleTextBox::get_h(); }
73 class Motion51ResetConfig : public BC_GenericButton
76 Motion51ResetConfig(Motion51Main *plugin, Motion51Window *gui, int x, int y);
82 class Motion51ResetTracking : public BC_GenericButton
85 Motion51ResetTracking(Motion51Main *plugin, Motion51Window *gui, int x, int y);
91 class Motion51EnableTracking : public BC_CheckBox
94 Motion51EnableTracking(Motion51Main *plugin, Motion51Window *gui, int x, int y);
100 class Motion51Window : public PluginClientWindow
103 Motion51Window(Motion51Main *plugin);
106 void create_objects();
109 Motion51Main *plugin;
110 Motion51Limits *horiz_limit, *vert_limit, *twist_limit;
111 Motion51Limits *shake_fade, *twist_fade;
112 Motion51Limits *sample_r;
113 Motion51SampleSteps *sample_steps;
114 Motion51Limits *block_x, *block_y, *block_w, *block_h;
115 Motion51DrawVectors *draw_vectors;
116 Motion51TrackingFile *tracking_file;
117 Motion51ResetConfig *reset_config;
118 Motion51ResetTracking *reset_tracking;
119 Motion51EnableTracking *enable_tracking;