initial commit
[goodguy/history.git] / cinelerra-5.0 / 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
28
29 #include "overlayframe.inc"
30 #include "pluginvclient.h"
31 #include "vframe.inc"
32
33
34
35
36 class BandWipeCount : public BC_TumbleTextBox
37 {
38 public:
39         BandWipeCount(BandWipeMain *plugin, 
40                 BandWipeWindow *window,
41                 int x,
42                 int y);
43         int handle_event();
44         BandWipeMain *plugin;
45         BandWipeWindow *window;
46 };
47
48 class BandWipeIn : public BC_Radial
49 {
50 public:
51         BandWipeIn(BandWipeMain *plugin, 
52                 BandWipeWindow *window,
53                 int x,
54                 int y);
55         int handle_event();
56         BandWipeMain *plugin;
57         BandWipeWindow *window;
58 };
59
60 class BandWipeOut : public BC_Radial
61 {
62 public:
63         BandWipeOut(BandWipeMain *plugin, 
64                 BandWipeWindow *window,
65                 int x,
66                 int y);
67         int handle_event();
68         BandWipeMain *plugin;
69         BandWipeWindow *window;
70 };
71
72
73
74
75 class BandWipeWindow : public PluginClientWindow
76 {
77 public:
78         BandWipeWindow(BandWipeMain *plugin);
79         void create_objects();
80         BandWipeMain *plugin;
81         BandWipeCount *count;
82         BandWipeIn *in;
83         BandWipeOut *out;
84 };
85
86
87
88
89 class BandWipeMain : public PluginVClient
90 {
91 public:
92         BandWipeMain(PluginServer *server);
93         ~BandWipeMain();
94
95 // required for all realtime plugins
96         int load_configuration();
97         const char* plugin_title();
98         PluginClientWindow* new_window();
99         int process_realtime(VFrame *incoming, VFrame *outgoing);
100         void save_data(KeyFrame *keyframe);
101         void read_data(KeyFrame *keyframe);
102         int uses_gui();
103         int is_transition();
104
105         int bands;
106         int direction;
107 };
108
109 #endif