X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fcinelerra%2Fformattools.h;h=4bd4221b08d48d31c2f3169b642b5a2b18a62c31;hb=2d8ee7ae9c2f42d8c6f2d5dcc8949ef989ebd7af;hp=3568e8c72a8ab96cf30dfe90b6bcbf7485401893;hpb=2d99bb8ce591f05a31464b517d85dc2bc35b2abe;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/formattools.h b/cinelerra-5.0/cinelerra/formattools.h index 3568e8c7..4bd4221b 100644 --- a/cinelerra-5.0/cinelerra/formattools.h +++ b/cinelerra-5.0/cinelerra/formattools.h @@ -28,6 +28,7 @@ #include "browsebutton.h" #include "compresspopup.h" #include "file.inc" +#include "ffmpeg.h" #include "formatpopup.h" #include "mwindow.inc" @@ -39,6 +40,8 @@ class FormatChannels; class FormatPathButton; class FormatPathText; class FormatFormat; +class FormatFFMPEG; +class FFMpegType; class FormatAudio; class FormatVideo; class FormatMultiple; @@ -97,6 +100,8 @@ public: BC_Title *format_title; FormatFormat *format_button; BC_TextBox *format_text; + FormatFFMPEG *format_ffmpeg; + FFMpegType *ffmpeg_type; BC_ITumbler *channels_tumbler; BC_Title *audio_title; @@ -152,6 +157,37 @@ public: FormatTools *format; }; +class FormatFFMPEG : public FFMPEGPopup +{ +public: + FormatFFMPEG(int x, int y, FormatTools *format); + ~FormatFFMPEG(); + + int handle_event(); + FormatTools *format; + static int load_defaults(const char *path, const char *type, + char *codec, char *codec_options, int len); + +// squash show/hide window + int show_window(int flush=1) { return 0; } + int hide_window(int flush=1) { return 0; } + int show(int flush=1) { return BC_SubWindow::show_window(flush); } + int hide(int flush=1) { return BC_SubWindow::hide_window(flush); } +}; + +class FFMpegType : public BC_TextBox +{ +public: + FFMpegType(int x, int y, int w, int h, const char *text) + : BC_TextBox(x, y, w, h, text) {} + ~FFMpegType() {} +// squash show/hide window + int show_window(int flush=1) { return 0; } + int hide_window(int flush=1) { return 0; } + int show(int flush=1) { return BC_SubWindow::show_window(flush); } + int hide(int flush=1) { return BC_SubWindow::hide_window(flush); } +}; + class FormatAParams : public BC_Button { public: