4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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.
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.
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
25 #include "assetedit.inc"
26 #include "awindowgui.inc"
27 #include "clippopup.inc"
31 #include "mwindow.inc"
35 class ClipPopup : public BC_PopupMenu
38 ClipPopup(MWindow *mwindow, AWindowGUI *gui);
41 void create_objects();
42 // Set mainsession with the current selections
54 AWindowListFormat *format;
56 ClipPopupOpenEDL *open_edl;
57 ClipPopupCloseEDL *close_edl;
59 ClipPopupViewWindow *view_window;
61 ClipPopupToMedia *to_media;
62 ClipPopupPaste *paste;
65 class ClipPopupInfo : public BC_MenuItem
68 ClipPopupInfo(MWindow *mwindow, ClipPopup *popup);
72 int button_press_event();
78 class ClipPopupSort : public BC_MenuItem
81 ClipPopupSort(MWindow *mwindow, ClipPopup *popup);
90 class ClipPopupView : public BC_MenuItem
93 ClipPopupView(MWindow *mwindow, ClipPopup *popup);
103 class ClipPopupViewWindow : public BC_MenuItem
106 ClipPopupViewWindow(MWindow *mwindow, ClipPopup *popup);
107 ~ClipPopupViewWindow();
115 class ClipPopupCopy : public BC_MenuItem
118 ClipPopupCopy(MWindow *mwindow, ClipPopup *popup);
127 class ClipPopupPaste : public BC_MenuItem
130 ClipPopupPaste(MWindow *mwindow, ClipPopup *popup);
139 class ClipMatchSize : public BC_MenuItem
142 ClipMatchSize(MWindow *mwindow, ClipPopup *popup);
150 class ClipMatchRate : public BC_MenuItem
153 ClipMatchRate(MWindow *mwindow, ClipPopup *popup);
161 class ClipMatchAll : public BC_MenuItem
164 ClipMatchAll(MWindow *mwindow, ClipPopup *popup);
172 class ClipPopupDelete : public BC_MenuItem
175 ClipPopupDelete(MWindow *mwindow, ClipPopup *popup);
185 class ClipPasteToFolder : public BC_MenuItem
188 ClipPasteToFolder(MWindow *mwindow);
194 class ClipListFormat : public BC_MenuItem
197 ClipListFormat(MWindow *mwindow, ClipListMenu *menu);
204 class ClipListMenu : public BC_PopupMenu
207 ClipListMenu(MWindow *mwindow, AWindowGUI *gui);
210 void create_objects();
212 AWindowListFormat *format;
213 ClipPopupCloseEDL *close_edl;
218 class ClipPopupToMedia : public BC_MenuItem
221 ClipPopupToMedia(MWindow *mwindow, ClipPopup *popup);
230 class ClipPopupOpenEDL : public BC_MenuItem
233 ClipPopupOpenEDL(MWindow *mwindow, ClipPopup *popup);
242 class ClipPopupCloseEDL : public BC_MenuItem
245 ClipPopupCloseEDL(MWindow *mwindow, AWindowGUI *gui);
246 ~ClipPopupCloseEDL();