cin_db Makefile tweak, awdw vicon stop draw lock rework,
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / swindow.h
index 019e71d0603642f0238323c993f8b21088633b47..ec3baafee91db24cce9f70d4c56ed1af2d942c00 100644 (file)
@@ -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<ScriptLines *> script;