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