7 #include "browsebutton.h"
8 #include "compresspopup.h"
10 #include "formatpopup.h"
11 #include "mwindow.inc"
19 class FormatPathButton
;
29 FormatTools(MWindow
*mwindow
,
30 BC_WindowBase
*window
,
32 virtual ~FormatTools();
34 int create_objects(int &init_x
,
36 int do_audio
, // Include tools for audio
37 int do_video
, // Include tools for video
38 int prompt_audio
, // Include checkbox for audio
39 int prompt_video
, // Include checkbox for video
40 int prompt_audio_channels
,
41 int prompt_video_compression
,
42 int lock_compressor
, // Select compressors to be offered
43 int recording
, // Change captions for recording
44 int *strategy
, // If nonzero, prompt for insertion strategy
45 int brender
); // Supply file formats for background rendering
46 void reposition_window(int &init_x
, int &init_y
);
47 // Put new asset's parameters in and change asset.
48 void update(Asset
*asset
, int *strategy
);
49 void close_format_windows();
52 // Handle change in path text. Used in BatchRender.
53 virtual int handle_event();
55 int set_audio_options();
56 int set_video_options();
59 BC_WindowBase
*window
;
62 FormatAParams
*aparams_button
;
63 FormatVParams
*vparams_button
;
64 FormatAThread
*aparams_thread
;
65 FormatVThread
*vparams_thread
;
66 BrowseButton
*path_button
;
67 FormatPathText
*path_textbox
;
68 BC_RecentList
*path_recent
;
69 PipeStatus
*pipe_status
;
70 BC_Title
*format_title
;
71 FormatFormat
*format_button
;
72 BC_TextBox
*format_text
;
73 BC_ITumbler
*channels_tumbler
;
75 BC_Title
*audio_title
;
76 BC_Title
*channels_title
;
77 FormatChannels
*channels_button
;
78 FormatAudio
*audio_switch
;
80 BC_Title
*video_title
;
81 FormatVideo
*video_switch
;
83 FormatMultiple
*multiple_files
;
85 ArrayList
<PluginServer
*> *plugindb
;
93 int prompt_audio_channels
;
95 int prompt_video_compression
;
102 class FormatPathText
: public BC_TextBox
105 FormatPathText(int x
, int y
, FormatTools
*format
);
114 class FormatFormat
: public FormatPopup
117 FormatFormat(int x
, int y
, FormatTools
*format
);
124 class FormatAParams
: public BC_Button
127 FormatAParams(MWindow
*mwindow
, FormatTools
*format
, int x
, int y
);
133 class FormatVParams
: public BC_Button
136 FormatVParams(MWindow
*mwindow
, FormatTools
*format
, int x
, int y
);
143 class FormatAThread
: public Thread
146 FormatAThread(FormatTools
*format
);
155 class FormatVThread
: public Thread
158 FormatVThread(FormatTools
*format
, int lock_compressor
);
168 class FormatAudio
: public BC_CheckBox
171 FormatAudio(int x
, int y
, FormatTools
*format
, int default_
);
177 class FormatVideo
: public BC_CheckBox
180 FormatVideo(int x
, int y
, FormatTools
*format
, int default_
);
187 class FormatChannels
: public BC_TextBox
190 FormatChannels(int x
, int y
, FormatTools
*format
);
196 class FormatToTracks
: public BC_CheckBox
199 FormatToTracks(int x
, int y
, int *output
);
205 class FormatMultiple
: public BC_CheckBox
208 FormatMultiple(MWindow
*mwindow
, int x
, int y
, int *output
);
211 void update(int *output
);