rework transportque for shuttle speed codes, add rusage, cleanup
[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 };
54
55 class EditPopupClearSelect : public BC_MenuItem
56 {
57 public:
58         EditPopupClearSelect(MWindow *mwindow, EditPopup *popup);
59         int handle_event();
60
61         MWindow *mwindow;
62         EditPopup *popup;
63 };
64
65 class EditPopupCopy : public BC_MenuItem
66 {
67 public:
68         EditPopupCopy(MWindow *mwindow, EditPopup *popup);
69         int handle_event();
70
71         MWindow *mwindow;
72         EditPopup *popup;
73 };
74
75 class EditPopupCopyPack : public BC_MenuItem
76 {
77 public:
78         EditPopupCopyPack(MWindow *mwindow, EditPopup *popup);
79         int handle_event();
80
81         MWindow *mwindow;
82         EditPopup *popup;
83 };
84
85 class EditPopupCut : public BC_MenuItem
86 {
87 public:
88         EditPopupCut(MWindow *mwindow, EditPopup *popup);
89         int handle_event();
90
91         MWindow *mwindow;
92         EditPopup *popup;
93 };
94
95 class EditPopupCutPack : public BC_MenuItem
96 {
97 public:
98         EditPopupCutPack(MWindow *mwindow, EditPopup *popup);
99         int handle_event();
100
101         MWindow *mwindow;
102         EditPopup *popup;
103 };
104
105 class EditPopupMute : public BC_MenuItem
106 {
107 public:
108         EditPopupMute(MWindow *mwindow, EditPopup *popup);
109         int handle_event();
110
111         MWindow *mwindow;
112         EditPopup *popup;
113 };
114
115 class EditPopupMutePack : public BC_MenuItem
116 {
117 public:
118         EditPopupMutePack(MWindow *mwindow, EditPopup *popup);
119         int handle_event();
120
121         MWindow *mwindow;
122         EditPopup *popup;
123 };
124
125 class EditPopupPaste : public BC_MenuItem
126 {
127 public:
128         EditPopupPaste(MWindow *mwindow, EditPopup *popup);
129         int handle_event();
130
131         MWindow *mwindow;
132         EditPopup *popup;
133 };
134
135 class EditPopupOverwrite : public BC_MenuItem
136 {
137 public:
138         EditPopupOverwrite(MWindow *mwindow, EditPopup *popup);
139         int handle_event();
140
141         MWindow *mwindow;
142         EditPopup *popup;
143 };
144
145 class EditPopupOverwritePlugins : public BC_MenuItem
146 {
147 public:
148         EditPopupOverwritePlugins(MWindow *mwindow, EditPopup *popup);
149         int handle_event();
150
151         MWindow *mwindow;
152         EditPopup *popup;
153 };
154
155 #endif