X-Git-Url: https://git.cinelerra-gg.org/git/?p=goodguy%2Fcinelerra.git;a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fswindow.h;fp=cinelerra-5.1%2Fcinelerra%2Fswindow.h;h=ec3baafee91db24cce9f70d4c56ed1af2d942c00;hp=019e71d0603642f0238323c993f8b21088633b47;hb=9303c74f396d12f0fb48639ff6a835824cbc5987;hpb=a1ac06b20d3f74749b612998908e70fbac7f48ab diff --git a/cinelerra-5.1/cinelerra/swindow.h b/cinelerra-5.1/cinelerra/swindow.h index 019e71d0..ec3baafe 100644 --- a/cinelerra-5.1/cinelerra/swindow.h +++ b/cinelerra-5.1/cinelerra/swindow.h @@ -9,6 +9,10 @@ #include "mwindow.inc" #include "swindow.inc" +#define SUB_FORMAT_SRT 1 +#define SUB_FORMAT_RIP 2 +#define SUB_FORMAT_UDVD 3 + class SWindow : public Thread { public: @@ -86,6 +90,29 @@ public: ~SWindowSaveFile(); }; +class SWindowItemFormat : public BC_MenuItem +{ +public: + SWindowItemFormat(SWindowSaveFormat *save_format, const char *text, int id); + int handle_event(); + + SWindowSaveFormat *save_format; + int id; +}; + +class SWindowSaveFormat : public BC_PopupMenu +{ +public: + SWindowSaveFormat(SWindowGUI *sw_gui, int x, int y); + void create_objects(); + void update_toggles(); + + SWindowGUI *sw_gui; + SWindowItemFormat *srt; + SWindowItemFormat *rip; + SWindowItemFormat *udvd; +}; + class ScriptLines { @@ -189,6 +216,7 @@ public: SWindowLoadPath *load_path; SWindowLoadFile *load_file; SWindowSaveFile *save_file; + SWindowSaveFormat *save_format; BC_Title *script_filesz; BC_Title *script_lines; BC_Title *script_entries; @@ -205,6 +233,7 @@ public: ScriptScroll *script_scroll; int xpad, ypad; char *blank_line; + int sub_format; char script_path[BCTEXTLEN]; ArrayList script;