9 #include "defaults.inc"
10 #include "mwindow.inc"
16 class New
: public BC_MenuItem
19 New(MWindow
*mwindow
);
23 int run_script(FileXML
*script
);
24 int create_new_project();
31 void create_new_edl();
35 class NewThread
: public Thread
38 NewThread(MWindow
*mwindow
, New
*new_project
);
53 class NewPresetsPulldown
;
57 class NewWindow
: public BC_Window
60 NewWindow(MWindow
*mwindow
, NewThread
*new_thread
);
63 void create_presets(int &x
, int &y
);
66 // Match the EDL configuration to a preset for displaying in the preset box.
67 int get_preset(EDL
*edl
);
68 // Get the text for the preset returned by get_preset
69 char* get_preset_text();
72 NewThread
*new_thread
;
75 BC_TextBox
*achannels
;
76 BC_TextBox
*sample_rate
;
78 BC_TextBox
*vchannels
;
79 BC_TextBox
*frame_rate
;
80 BC_TextBox
*aspect_w_text
, *aspect_h_text
;
81 // BC_TextBox *canvas_w_text, *canvas_h_text;
82 BC_TextBox
*output_w_text
, *output_h_text
;
83 NewPresetsPulldown
*presets
;
84 NewPresetsText
*presets_text
;
85 ArrayList
<NewPresetItem
*> preset_items
;
91 class NewPresetsText
: public BC_TextBox
94 NewPresetsText(MWindow
*mwindow
, NewWindow
*window
, int x
, int y
);
100 class NewPresetsPulldown
: public BC_ListBox
103 NewPresetsPulldown(MWindow
*mwindow
, NewWindow
*window
, int x
, int y
);
109 class NewPresetItem
: public BC_ListBoxItem
112 NewPresetItem(MWindow
*mwindow
, NewWindow
*window
, char *text
);
124 class NewATracks
: public BC_TextBox
127 NewATracks(NewWindow
*nwindow
, char *text
, int x
, int y
);
132 class NewATracksTumbler
: public BC_Tumbler
135 NewATracksTumbler(NewWindow
*nwindow
, int x
, int y
);
136 int handle_up_event();
137 int handle_down_event();
141 class NewAChannels
: public BC_TextBox
144 NewAChannels(NewWindow
*nwindow
, char *text
, int x
, int y
);
149 class NewAChannelsTumbler
: public BC_Tumbler
152 NewAChannelsTumbler(NewWindow
*nwindow
, int x
, int y
);
153 int handle_up_event();
154 int handle_down_event();
158 class NewSampleRate
: public BC_TextBox
161 NewSampleRate(NewWindow
*nwindow
, char *text
, int x
, int y
);
167 class SampleRatePulldown
: public BC_ListBox
170 SampleRatePulldown(MWindow
*mwindow
, BC_TextBox
*output
, int x
, int y
);
183 class NewVTracks
: public BC_TextBox
186 NewVTracks(NewWindow
*nwindow
, char *text
, int x
, int y
);
191 class NewVTracksTumbler
: public BC_Tumbler
194 NewVTracksTumbler(NewWindow
*nwindow
, int x
, int y
);
195 int handle_up_event();
196 int handle_down_event();
200 class NewVChannels
: public BC_TextBox
203 NewVChannels(NewWindow
*nwindow
, char *text
, int x
, int y
);
208 class NewVChannelsTumbler
: public BC_Tumbler
211 NewVChannelsTumbler(NewWindow
*nwindow
, int x
, int y
);
212 int handle_up_event();
213 int handle_down_event();
217 class NewFrameRate
: public BC_TextBox
220 NewFrameRate(NewWindow
*nwindow
, char *text
, int x
, int y
);
225 class FrameRatePulldown
: public BC_ListBox
228 FrameRatePulldown(MWindow
*mwindow
, BC_TextBox
*output
, int x
, int y
);
234 class NewTrackW
: public BC_TextBox
237 NewTrackW(NewWindow
*nwindow
, int x
, int y
);
242 class NewTrackH
: public BC_TextBox
245 NewTrackH(NewWindow
*nwindow
, int x
, int y
);
250 class FrameSizePulldown
: public BC_ListBox
253 FrameSizePulldown(MWindow
*mwindow
,
254 BC_TextBox
*output_w
,
255 BC_TextBox
*output_h
,
260 BC_TextBox
*output_w
;
261 BC_TextBox
*output_h
;
264 class NewOutputW
: public BC_TextBox
267 NewOutputW(NewWindow
*nwindow
, int x
, int y
);
272 class NewOutputH
: public BC_TextBox
275 NewOutputH(NewWindow
*nwindow
, int x
, int y
);
280 class NewAspectAuto
: public BC_CheckBox
283 NewAspectAuto(NewWindow
*nwindow
, int x
, int y
);
289 class NewAspectW
: public BC_TextBox
292 NewAspectW(NewWindow
*nwindow
, char *text
, int x
, int y
);
297 class NewAspectH
: public BC_TextBox
300 NewAspectH(NewWindow
*nwindow
, char *text
, int x
, int y
);
305 class AspectPulldown
: public BC_ListBox
308 AspectPulldown(MWindow
*mwindow
,
309 BC_TextBox
*output_w
,
310 BC_TextBox
*output_h
,
315 BC_TextBox
*output_w
;
316 BC_TextBox
*output_h
;
319 class ColormodelItem
: public BC_ListBoxItem
322 ColormodelItem(char *text
, int value
);
326 class ColormodelPulldown
: public BC_ListBox
329 ColormodelPulldown(MWindow
*mwindow
,
330 BC_TextBox
*output_text
,
335 char* colormodel_to_text();
337 BC_TextBox
*output_text
;
343 class NewCloneToggle
: public BC_Toggle
346 NewCloneToggle(MWindow
*mwindow
, NewWindow
*nwindow
, int x
, int y
);