d8987a7c34b0ac2df6316a99bb492739823dc8c4
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / editpopup.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 EDITPOPUP_H
23 #define EDITPOPUP_H
24
25 #include "guicast.h"
26 #include "edit.inc"
27 #include "editpopup.inc"
28 #include "mwindow.inc"
29 #include "mwindowgui.inc"
30 #include "plugin.inc"
31 #include "pluginset.inc"
32 #include "plugindialog.inc"
33 #include "resizetrackthread.inc"
34 #include "track.inc"
35
36 class EditPopup : public BC_PopupMenu
37 {
38 public:
39         EditPopup(MWindow *mwindow, MWindowGUI *gui);
40         ~EditPopup();
41
42         void create_objects();
43         int activate_menu(Track *track, Edit *edit,
44                 PluginSet *pluginset, Plugin *plugin, double position);
45
46         MWindow *mwindow;
47         MWindowGUI *gui;
48         Track *track;
49         Edit *edit;
50         Plugin *plugin;
51         PluginSet *pluginset;
52         double position;
53         EditPopupOpenEDL *open_edl;
54 };
55
56 class EditPopupOpenEDL : public BC_MenuItem
57 {
58 public:
59         EditPopupOpenEDL(MWindow *mwindow, EditPopup *popup);
60         int handle_event();
61
62         MWindow *mwindow;
63         EditPopup *popup;
64 };
65
66 class EditPopupClearSelect : public BC_MenuItem
67 {
68 public:
69         EditPopupClearSelect(MWindow *mwindow, EditPopup *popup);
70         int handle_event();
71
72         MWindow *mwindow;
73         EditPopup *popup;
74 };
75
76 class EditPopupCopy : public BC_MenuItem
77 {
78 public:
79         EditPopupCopy(MWindow *mwindow, EditPopup *popup);
80         int handle_event();
81
82         MWindow *mwindow;
83         EditPopup *popup;
84 };
85
86 class EditPopupCopyPack : public BC_MenuItem
87 {
88 public:
89         EditPopupCopyPack(MWindow *mwindow, EditPopup *popup);
90         int handle_event();
91
92         MWindow *mwindow;
93         EditPopup *popup;
94 };
95
96 class EditPopupCut : public BC_MenuItem
97 {
98 public:
99         EditPopupCut(MWindow *mwindow, EditPopup *popup);
100         int handle_event();
101
102         MWindow *mwindow;
103         EditPopup *popup;
104 };
105
106 class EditPopupCutPack : public BC_MenuItem
107 {
108 public:
109         EditPopupCutPack(MWindow *mwindow, EditPopup *popup);
110         int handle_event();
111
112         MWindow *mwindow;
113         EditPopup *popup;
114 };
115
116 class EditPopupMute : public BC_MenuItem
117 {
118 public:
119         EditPopupMute(MWindow *mwindow, EditPopup *popup);
120         int handle_event();
121
122         MWindow *mwindow;
123         EditPopup *popup;
124 };
125
126 class EditPopupMutePack : public BC_MenuItem
127 {
128 public:
129         EditPopupMutePack(MWindow *mwindow, EditPopup *popup);
130         int handle_event();
131
132         MWindow *mwindow;
133         EditPopup *popup;
134 };
135
136 class EditPopupPaste : public BC_MenuItem
137 {
138 public:
139         EditPopupPaste(MWindow *mwindow, EditPopup *popup);
140         int handle_event();
141
142         MWindow *mwindow;
143         EditPopup *popup;
144 };
145
146 class EditPopupOverwrite : public BC_MenuItem
147 {
148 public:
149         EditPopupOverwrite(MWindow *mwindow, EditPopup *popup);
150         int handle_event();
151
152         MWindow *mwindow;
153         EditPopup *popup;
154 };
155
156 class EditPopupOverwritePlugins : public BC_MenuItem
157 {
158 public:
159         EditPopupOverwritePlugins(MWindow *mwindow, EditPopup *popup);
160         int handle_event();
161
162         MWindow *mwindow;
163         EditPopup *popup;
164 };
165
166 #endif