add auto zoombar/status color, fix 3 batchrender boobies, rotate plugin tweaks, add...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / bandwipe / bandwipe.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 #ifndef BANDWIPE_H
23 #define BANDWIPE_H
24
25 class BandWipeMain;
26 class BandWipeWindow;
27 class BandWipeConfig;
28
29
30 #include "overlayframe.inc"
31 #include "pluginvclient.h"
32 #include "vframe.inc"
33
34
35
36
37 class BandWipeCount : public BC_TumbleTextBox
38 {
39 public:
40         BandWipeCount(BandWipeMain *plugin,
41                 BandWipeWindow *window,
42                 int x,
43                 int y);
44         int handle_event();
45         BandWipeMain *plugin;
46         BandWipeWindow *window;
47 };
48
49 class BandWipeIn : public BC_Radial
50 {
51 public:
52         BandWipeIn(BandWipeMain *plugin,
53                 BandWipeWindow *window,
54                 int x,
55                 int y);
56         int handle_event();
57         BandWipeMain *plugin;
58         BandWipeWindow *window;
59 };
60
61 class BandWipeOut : public BC_Radial
62 {
63 public:
64         BandWipeOut(BandWipeMain *plugin,
65                 BandWipeWindow *window,
66                 int x,
67                 int y);
68         int handle_event();
69         BandWipeMain *plugin;
70         BandWipeWindow *window;
71 };
72
73
74
75
76 class BandWipeWindow : public PluginClientWindow
77 {
78 public:
79         BandWipeWindow(BandWipeMain *plugin);
80         void create_objects();
81         BandWipeMain *plugin;
82         BandWipeCount *count;
83         BandWipeIn *in;
84         BandWipeOut *out;
85 };
86
87
88
89 class BandWipeConfig
90 {
91 public:
92 };
93
94
95 class BandWipeMain : public PluginVClient
96 {
97 public:
98         BandWipeMain(PluginServer *server);
99         ~BandWipeMain();
100
101         PLUGIN_CLASS_MEMBERS(BandWipeConfig);
102
103         int process_realtime(VFrame *incoming, VFrame *outgoing);
104         void save_data(KeyFrame *keyframe);
105         void read_data(KeyFrame *keyframe);
106         int uses_gui();
107         int is_transition();
108
109         int bands;
110         int direction;
111 };
112
113 #endif