no longer need ffmpeg patch0 which was for Termux
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / motion51 / motionwindow51.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  *
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.
10  *
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.
15  *
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
19  *
20  */
21
22 #include "guicast.h"
23 #include "motion51.inc"
24
25
26 class Motion51SampleSteps : public BC_PopupMenu
27 {
28 public:
29         Motion51SampleSteps(Motion51Main *plugin, int x, int y, int w);
30         void create_objects();
31         int handle_event();
32         Motion51Main *plugin;
33 };
34
35
36 class Motion51DrawVectors : public BC_CheckBox
37 {
38 public:
39         Motion51DrawVectors(Motion51Main *plugin, Motion51Window *gui, int x, int y);
40         int handle_event();
41         Motion51Main *plugin;
42         Motion51Window *gui;
43 };
44
45 class Motion51TrackingFile : public BC_TextBox
46 {
47 public:
48         Motion51TrackingFile(Motion51Main *plugin, const char *filename,
49                 Motion51Window *gui, int x, int y, int w);
50         int handle_event();
51         Motion51Main *plugin;
52         Motion51Window *gui;
53 };
54
55 class Motion51Limits : public BC_TumbleTextBox {
56 public:
57         Motion51Limits(Motion51Main *plugin, Motion51Window *gui, int x, int y,
58                 const char *ttext, float *value, float min, float max, int ttbox_w);
59         ~Motion51Limits();
60
61         void create_objects();
62         int handle_event();
63
64         Motion51Main *plugin;
65         Motion51Window *gui;
66         float *value;
67         const char *ttext;
68         BC_Title *title;
69
70         int get_w() { return BC_TumbleTextBox::get_w()+5+title->get_w(); }
71         int get_h() { return BC_TumbleTextBox::get_h(); }
72 };
73
74 class Motion51ResetConfig : public BC_GenericButton
75 {
76 public:
77         Motion51ResetConfig(Motion51Main *plugin, Motion51Window *gui, int x, int y);
78         int handle_event();
79         Motion51Main *plugin;
80         Motion51Window *gui;
81 };
82
83 class Motion51ResetTracking : public BC_GenericButton
84 {
85 public:
86         Motion51ResetTracking(Motion51Main *plugin, Motion51Window *gui, int x, int y);
87         int handle_event();
88         Motion51Main *plugin;
89         Motion51Window *gui;
90 };
91
92 class Motion51EnableTracking : public BC_CheckBox
93 {
94 public:
95         Motion51EnableTracking(Motion51Main *plugin, Motion51Window *gui, int x, int y);
96         int handle_event();
97         Motion51Main *plugin;
98         Motion51Window *gui;
99 };
100
101 class Motion51Window : public PluginClientWindow
102 {
103 public:
104         Motion51Window(Motion51Main *plugin);
105         ~Motion51Window();
106
107         void create_objects();
108         void update_gui();
109
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;
121
122         BC_Title *pef_title;
123 };
124
125