r954: Improve icons of the liveaudio and livevideo effects.
[cinelerra_cv.git] / cinelerra / loadfile.h
blobee5e4be6525ed3398f771fd31654ad64dc5e3404
1 #ifndef LOADFILE_H
2 #define LOADFILE_H
4 #include "guicast.h"
5 #include "loadmode.inc"
6 #include "mainmenu.inc"
7 #include "mwindow.inc"
8 #include "thread.h"
10 class LoadFileThread;
11 class LoadFileWindow;
13 class Load : public BC_MenuItem
15 public:
16 Load(MWindow *mwindow, MainMenu *mainmenu);
17 ~Load();
19 int create_objects();
20 int handle_event();
22 MWindow *mwindow;
23 MainMenu *mainmenu;
24 LoadFileThread *thread;
27 class LoadFileThread : public Thread
29 public:
30 LoadFileThread(MWindow *mwindow, Load *menuitem);
31 ~LoadFileThread();
33 void run();
35 MWindow *mwindow;
36 Load *load;
37 int load_mode;
40 class NewTimeline;
41 class NewConcatenate;
42 class AppendNewTracks;
43 class EndofTracks;
44 class ResourcesOnly;
45 class ReelWindow;
46 class OverwriteReel;
48 class LoadFileWindow : public BC_FileBox
50 public:
51 LoadFileWindow(MWindow *mwindow,
52 LoadFileThread *thread,
53 char *init_directory);
54 ~LoadFileWindow();
56 int create_objects();
57 int resize_event(int w, int h);
59 LoadFileThread *thread;
60 LoadMode *loadmode;
61 MWindow *mwindow;
62 NewTimeline *newtimeline;
63 NewConcatenate *newconcatenate;
64 AppendNewTracks *newtracks;
65 EndofTracks *concatenate;
66 ResourcesOnly *resourcesonly;
69 class NewTimeline : public BC_Radial
71 public:
72 NewTimeline(int x, int y, LoadFileWindow *window);
73 int handle_event();
74 LoadFileWindow *window;
77 class NewConcatenate : public BC_Radial
79 public:
80 NewConcatenate(int x, int y, LoadFileWindow *window);
81 int handle_event();
82 LoadFileWindow *window;
85 class AppendNewTracks : public BC_Radial
87 public:
88 AppendNewTracks(int x, int y, LoadFileWindow *window);
89 int handle_event();
90 LoadFileWindow *window;
93 class EndofTracks : public BC_Radial
95 public:
96 EndofTracks(int x, int y, LoadFileWindow *window);
97 int handle_event();
98 LoadFileWindow *window;
101 class ResourcesOnly : public BC_Radial
103 public:
104 ResourcesOnly(int x, int y, LoadFileWindow *window);
105 int handle_event();
106 LoadFileWindow *window;
111 class LocateFileWindow : public BC_FileBox
113 public:
114 LocateFileWindow(MWindow *mwindow, char *init_directory, char *old_filename);
115 ~LocateFileWindow();
116 MWindow *mwindow;
119 class LoadPrevious : public BC_MenuItem, public Thread
121 public:
122 LoadPrevious(MWindow *mwindow);
123 int handle_event();
124 void run();
126 int set_path(char *path);
128 MWindow *mwindow;
129 Load *loadfile;
130 char path[1024];
133 class LoadBackup : public BC_MenuItem
135 public:
136 LoadBackup(MWindow *mwindow);
137 int handle_event();
138 MWindow *mwindow;
141 class ReelWindow : public BC_Window
143 public:
144 ReelWindow(MWindow *mwindow);
145 ~ReelWindow();
147 int create_objects();
148 int resize_event(int w, int h);
150 BC_OKButton *ok_button;
151 BC_CancelButton *cancel_button;
152 BC_Title *reel_name_title, *reel_number_title;
153 BC_TextBox *reel_name, *reel_number;
154 OverwriteReel *checkbox;
155 int overwrite_reel;
157 MWindow *mwindow;
161 class OverwriteReel : public BC_CheckBox
163 public:
164 OverwriteReel(ReelWindow *lwindow,
165 int x, int y, int value);
167 int handle_event();
169 ReelWindow *rwindow;
172 #endif