#ifndef ASSETPOPUP_H
#define ASSETPOPUP_H
-class AssetPopupInfo;
-class AssetPopupBuildIndex;
-class AssetPopupView;
-class AssetPopupViewWindow;
-
#include "assetedit.inc"
+#include "assetpopup.inc"
#include "awindowgui.inc"
-#include "awindowmenu.inc"
#include "edl.inc"
#include "guicast.h"
#include "assets.inc"
AssetPopupBuildIndex *index;
AssetPopupView *view;
AssetPopupViewWindow *view_window;
- AssetListFormat *format;
+ AWindowListFormat *format;
};
class AssetPopupInfo : public BC_MenuItem
AssetPopup *popup;
};
+class AssetListMenu : public BC_PopupMenu
+{
+public:
+ AssetListMenu(MWindow *mwindow, AWindowGUI *gui);
+ ~AssetListMenu();
+
+ void create_objects();
+ void update_titles();
+
+ MWindow *mwindow;
+ AWindowGUI *gui;
+ AWindowListFormat *format;
+};
+
+class AssetListCopy : public BC_MenuItem
+{
+public:
+ AssetListCopy(MWindow *mwindow, AWindowGUI *gui);
+ ~AssetListCopy();
+
+ int handle_event();
+
+ MWindow *mwindow;
+ AWindowGUI *gui;
+ AssetCopyDialog *copy_dialog;
+};
+
+class AssetCopyDialog : public BC_DialogThread
+{
+public:
+ AssetCopyDialog(AssetListCopy *copy);
+ ~AssetCopyDialog();
+
+ void start(char *text, int x, int y);
+ BC_Window* new_gui();
+ void handle_done_event(int result);
+ void handle_close_event(int result);
+
+ char *text;
+ int x, y;
+ AssetListCopy *copy;
+ AssetCopyWindow *copy_window;
+};
+
+class AssetCopyWindow : public BC_Window
+{
+public:
+ AssetCopyWindow(AssetCopyDialog *copy_dialog);
+ ~AssetCopyWindow();
+
+ void create_objects();
+ int resize_event(int w, int h);
+
+ AssetCopyDialog *copy_dialog;
+ BC_ScrollTextBox *file_list;
+};
+
+class AssetListPaste : public BC_MenuItem
+{
+public:
+ AssetListPaste(MWindow *mwindow, AWindowGUI *gui);
+ ~AssetListPaste();
+
+ int handle_event();
+
+ MWindow *mwindow;
+ AWindowGUI *gui;
+ AssetPasteDialog *paste_dialog;
+};
+
+class AssetPasteDialog : public BC_DialogThread
+{
+public:
+ AssetPasteDialog(AssetListPaste *paste);
+ ~AssetPasteDialog();
+
+ BC_Window* new_gui();
+ void handle_done_event(int result);
+ void handle_close_event(int result);
+ void start(int x, int y);
+
+ AssetListPaste *paste;
+ AssetPasteWindow *paste_window;
+ int x, y;
+};
+
+class AssetPasteWindow : public BC_Window
+{
+public:
+ AssetPasteWindow(AssetPasteDialog *paste_dialog);
+ ~AssetPasteWindow();
+
+ void create_objects();
+ int resize_event(int w, int h);
+
+ AssetPasteDialog *paste_dialog;
+ BC_ScrollTextBox *file_list;
+};
#endif