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 "assetpopup.inc"
27 #include "awindowgui.inc"
31 #include "mwindow.inc"
35 class AssetPopup : public BC_PopupMenu
38 AssetPopup(MWindow *mwindow, AWindowGUI *gui);
41 void create_objects();
42 // Set mainsession with the current selections
54 AssetPopupBuildIndex *index;
56 AssetPopupViewWindow *view_window;
57 AssetPopupMixer *mixer;
58 AWindowListFormat *format;
61 class AssetPopupInfo : public BC_MenuItem
64 AssetPopupInfo(MWindow *mwindow, AssetPopup *popup);
68 int button_press_event();
74 class AssetPopupSortNames : public BC_MenuItem
77 AssetPopupSortNames(MWindow *mwindow, AssetPopup *popup);
78 ~AssetPopupSortNames();
86 class AssetPopupSortTimes : public BC_MenuItem
89 AssetPopupSortTimes(MWindow *mwindow, AssetPopup *popup);
90 ~AssetPopupSortTimes();
98 class AssetPopupBuildIndex : public BC_MenuItem
101 AssetPopupBuildIndex(MWindow *mwindow, AssetPopup *popup);
102 ~AssetPopupBuildIndex();
111 class AssetPopupView : public BC_MenuItem
114 AssetPopupView(MWindow *mwindow, AssetPopup *popup);
124 class AssetPopupViewWindow : public BC_MenuItem
127 AssetPopupViewWindow(MWindow *mwindow, AssetPopup *popup);
128 ~AssetPopupViewWindow();
136 class AssetPopupMixer : public BC_MenuItem
139 AssetPopupMixer(MWindow *mwindow, AssetPopup *popup);
148 class AssetPopupPaste : public BC_MenuItem
151 AssetPopupPaste(MWindow *mwindow, AssetPopup *popup);
160 class AssetMatchSize : public BC_MenuItem
163 AssetMatchSize(MWindow *mwindow, AssetPopup *popup);
171 class AssetMatchRate : public BC_MenuItem
174 AssetMatchRate(MWindow *mwindow, AssetPopup *popup);
182 class AssetMatchAll : public BC_MenuItem
185 AssetMatchAll(MWindow *mwindow, AssetPopup *popup);
193 class AssetPopupProjectRemove : public BC_MenuItem
196 AssetPopupProjectRemove(MWindow *mwindow, AssetPopup *popup);
197 ~AssetPopupProjectRemove();
205 class AssetPopupDiskRemove : public BC_MenuItem
208 AssetPopupDiskRemove(MWindow *mwindow, AssetPopup *popup);
209 ~AssetPopupDiskRemove();
217 class AssetListMenu : public BC_PopupMenu
220 AssetListMenu(MWindow *mwindow, AWindowGUI *gui);
223 void create_objects();
224 void update_titles();
228 AWindowListFormat *format;
231 class AssetListCopy : public BC_MenuItem
234 AssetListCopy(MWindow *mwindow, AWindowGUI *gui);
241 AssetCopyDialog *copy_dialog;
244 class AssetCopyDialog : public BC_DialogThread
247 AssetCopyDialog(AssetListCopy *copy);
250 void start(char *text, int x, int y);
251 BC_Window* new_gui();
252 void handle_done_event(int result);
253 void handle_close_event(int result);
258 AssetCopyWindow *copy_window;
261 class AssetCopyWindow : public BC_Window
264 AssetCopyWindow(AssetCopyDialog *copy_dialog);
267 void create_objects();
268 int resize_event(int w, int h);
270 AssetCopyDialog *copy_dialog;
271 BC_ScrollTextBox *file_list;
274 class AssetListPaste : public BC_MenuItem
277 AssetListPaste(MWindow *mwindow, AWindowGUI *gui);
284 AssetPasteDialog *paste_dialog;
287 class AssetPasteDialog : public BC_DialogThread
290 AssetPasteDialog(AssetListPaste *paste);
293 BC_Window* new_gui();
294 void handle_done_event(int result);
295 void handle_close_event(int result);
296 void start(int x, int y);
298 AssetListPaste *paste;
299 AssetPasteWindow *paste_window;
303 class AssetPasteWindow : public BC_Window
306 AssetPasteWindow(AssetPasteDialog *paste_dialog);
309 void create_objects();
310 int resize_event(int w, int h);
312 AssetPasteDialog *paste_dialog;
313 BC_ScrollTextBox *file_list;