+/*
+ * 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__
#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:
~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
{
SWindowLoadPath *load_path;
SWindowLoadFile *load_file;
SWindowSaveFile *save_file;
+ SWindowSaveFormat *save_format;
BC_Title *script_filesz;
BC_Title *script_lines;
BC_Title *script_entries;
ScriptEntry *script_entry;
ScriptEntry *line_entry;
ScriptScroll *script_scroll;
- int pad;
+ int xpad, ypad;
char *blank_line;
+ int sub_format;
char script_path[BCTEXTLEN];
ArrayList<ScriptLines *> script;