Credit Andrew - fix vorbis audio which was scratchy and ensure aging plugin does...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / swindow.h
index 019e71d0603642f0238323c993f8b21088633b47..38612e716fcb36752ecda85aa826ee7c71c8d759 100644 (file)
@@ -1,3 +1,23 @@
+/*
+ * CINELERRA
+ * Copyright (C) 2016-2020 William Morrow
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public
+ * License along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ * USA
+ */
+
 #ifndef __SWINDOW_H__
 #define __SWINDOW_H__
 
@@ -9,6 +29,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 +110,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 +236,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 +253,7 @@ public:
        ScriptScroll *script_scroll;
        int xpad, ypad;
        char *blank_line;
+       int sub_format;
 
        char script_path[BCTEXTLEN];
        ArrayList<ScriptLines *> script;