X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.1%2Fcinelerra%2Fformattools.h;h=35415ae0a7d7858bcfc49a64c3775b2105c26d10;hb=7e5a0760f40ff787cc3d93cb7768a901ebe52809;hp=9f49c04fdce5a2ad137b980774c3b7ff66018309;hpb=723142d62d61cde588e961426440f839ca9dcda9;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/formattools.h b/cinelerra-5.1/cinelerra/formattools.h index 9f49c04f..35415ae0 100644 --- a/cinelerra-5.1/cinelerra/formattools.h +++ b/cinelerra-5.1/cinelerra/formattools.h @@ -30,43 +30,24 @@ #include "file.inc" #include "ffmpeg.h" #include "formatpopup.h" +#include "formattools.inc" #include "mwindow.inc" -class FormatAParams; -class FormatVParams; -class FormatAThread; -class FormatVThread; -class FormatChannels; -class FormatPathButton; -class FormatPathText; -class FormatFormat; -class FormatFFMPEG; -class FFMpegType; -class FormatAudio; -class FormatVideo; -class FormatMultiple; - class FormatTools { public: - FormatTools(MWindow *mwindow, - BC_WindowBase *window, - Asset *asset); + FormatTools(MWindow *mwindow, BC_WindowBase *window, Asset *asset); virtual ~FormatTools(); - void create_objects(int &init_x, - int &init_y, - int do_audio, // Include tools for audio - int do_video, // Include tools for video - int prompt_audio, // Include checkbox for audio - int prompt_video, // Include checkbox for video - int prompt_audio_channels, - int prompt_video_compression, - const char *locked_compressor, // Select compressors to be offered - int recording, // Change captions for recording - int *file_per_label, // prompt if nonzero - int brender, // Supply file formats for background rendering - int horizontal_layout = 0); + void create_objects(int &init_x, int &init_y, + int do_audio, int do_video, // Include tools for audio, video + int prompt_audio, int prompt_video, // Include checkbox for audio, video + int prompt_audio_channels, int prompt_video_compression, + const char *locked_compressor, // Select compressors to be offered + int recording, // Change captions for recording + int *file_per_label, // prompt if nonzero + int brender, // Supply file formats for background rendering + int horizontal_layout = 0); // In recording preferences, aspects of the format are locked // depending on the driver used. void update_driver(int driver); @@ -104,19 +85,15 @@ public: BC_TextBox *format_text; FormatFFMPEG *format_ffmpeg; FFMpegType *ffmpeg_type; - BC_ITumbler *channels_tumbler; BC_Title *audio_title; - BC_Title *channels_title; - FormatChannels *channels_button; FormatAudio *audio_switch; BC_Title *video_title; FormatVideo *video_switch; - FormatMultiple *multiple_files; + FormatFilePerLabel *labeled_files; - ArrayList *plugindb; MWindow *mwindow; const char *locked_compressor; int recording; @@ -254,33 +231,16 @@ public: }; -class FormatChannels : public BC_TextBox -{ -public: - FormatChannels(int x, int y, FormatTools *format); - ~FormatChannels(); - int handle_event(); - FormatTools *format; -}; - -class FormatToTracks : public BC_CheckBox -{ -public: - FormatToTracks(int x, int y, int *output); - ~FormatToTracks(); - int handle_event(); - int *output; -}; - -class FormatMultiple : public BC_CheckBox +class FormatFilePerLabel : public BC_CheckBox { public: - FormatMultiple(MWindow *mwindow, int x, int y, int *output); - ~FormatMultiple(); + FormatFilePerLabel(FormatTools *format, int x, int y, int *output); + ~FormatFilePerLabel(); int handle_event(); void update(int *output); + + FormatTools *format; int *output; - MWindow *mwindow; };