Merge CV, ver=5.1; ops/methods from HV, and interface from CV where possible
[goodguy/history.git] / cinelerra-5.1 / cinelerra / assetpopup.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 ASSETPOPUP_H
23 #define ASSETPOPUP_H
24
25 class AssetPopupInfo;
26 class AssetPopupBuildIndex;
27 class AssetPopupView;
28 class AssetPopupViewWindow;
29
30 #include "assetedit.inc"
31 #include "awindowgui.inc"
32 #include "awindowmenu.inc"
33 #include "edl.inc"
34 #include "guicast.h"
35 #include "assets.inc"
36 #include "mwindow.inc"
37
38
39
40 class AssetPopup : public BC_PopupMenu
41 {
42 public:
43         AssetPopup(MWindow *mwindow, AWindowGUI *gui);
44         ~AssetPopup();
45
46         void create_objects();
47 // Set mainsession with the current selections
48         int update();
49         void paste_assets();
50         void match_size();
51         void match_rate();
52         void match_all();
53
54         MWindow *mwindow;
55         AWindowGUI *gui;
56
57
58         AssetPopupInfo *info;
59         AssetPopupBuildIndex *index;
60         AssetPopupView *view;
61         AssetPopupViewWindow *view_window;
62         AssetListFormat *format;
63 };
64
65 class AssetPopupInfo : public BC_MenuItem
66 {
67 public:
68         AssetPopupInfo(MWindow *mwindow, AssetPopup *popup);
69         ~AssetPopupInfo();
70
71         int handle_event();
72         int button_press_event();
73
74         MWindow *mwindow;
75         AssetPopup *popup;
76 };
77
78 class AssetPopupSort : public BC_MenuItem
79 {
80 public:
81         AssetPopupSort(MWindow *mwindow, AssetPopup *popup);
82         ~AssetPopupSort();
83
84         int handle_event();
85
86         MWindow *mwindow;
87         AssetPopup *popup;
88 };
89
90 class AssetPopupBuildIndex : public BC_MenuItem
91 {
92 public:
93         AssetPopupBuildIndex(MWindow *mwindow, AssetPopup *popup);
94         ~AssetPopupBuildIndex();
95
96         int handle_event();
97
98         MWindow *mwindow;
99         AssetPopup *popup;
100 };
101
102
103 class AssetPopupView : public BC_MenuItem
104 {
105 public:
106         AssetPopupView(MWindow *mwindow, AssetPopup *popup);
107         ~AssetPopupView();
108
109         int handle_event();
110
111         MWindow *mwindow;
112         AssetPopup *popup;
113 };
114
115
116 class AssetPopupViewWindow : public BC_MenuItem
117 {
118 public:
119         AssetPopupViewWindow(MWindow *mwindow, AssetPopup *popup);
120         ~AssetPopupViewWindow();
121
122         int handle_event();
123
124         MWindow *mwindow;
125         AssetPopup *popup;
126 };
127
128 class AssetPopupPaste : public BC_MenuItem
129 {
130 public:
131         AssetPopupPaste(MWindow *mwindow, AssetPopup *popup);
132         ~AssetPopupPaste();
133
134         int handle_event();
135
136         MWindow *mwindow;
137         AssetPopup *popup;
138 };
139
140 class AssetMatchSize : public BC_MenuItem
141 {
142 public:
143         AssetMatchSize(MWindow *mwindow, AssetPopup *popup);
144
145         int handle_event();
146
147         MWindow *mwindow;
148         AssetPopup *popup;
149 };
150
151 class AssetMatchRate : public BC_MenuItem
152 {
153 public:
154         AssetMatchRate(MWindow *mwindow, AssetPopup *popup);
155
156         int handle_event();
157
158         MWindow *mwindow;
159         AssetPopup *popup;
160 };
161
162 class AssetMatchAll : public BC_MenuItem
163 {
164 public:
165         AssetMatchAll(MWindow *mwindow, AssetPopup *popup);
166
167         int handle_event();
168
169         MWindow *mwindow;
170         AssetPopup *popup;
171 };
172
173 class AssetPopupProjectRemove : public BC_MenuItem
174 {
175 public:
176         AssetPopupProjectRemove(MWindow *mwindow, AssetPopup *popup);
177         ~AssetPopupProjectRemove();
178
179         int handle_event();
180
181         MWindow *mwindow;
182         AssetPopup *popup;
183 };
184
185 class AssetPopupDiskRemove : public BC_MenuItem
186 {
187 public:
188         AssetPopupDiskRemove(MWindow *mwindow, AssetPopup *popup);
189         ~AssetPopupDiskRemove();
190
191         int handle_event();
192
193         MWindow *mwindow;
194         AssetPopup *popup;
195 };
196
197
198 #endif