summaryrefslogtreecommitdiff
path: root/src/wx/export_subtitles_dialog.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-25 21:02:00 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-25 21:02:00 +0200
commit451ab9374cc32483489cdde27a9382b546cdecf5 (patch)
treefa55bd207248cbfeb12af39c93c8107fd85a1614 /src/wx/export_subtitles_dialog.h
parent5d3c9573914a61db10b24ce7e0cef00902c2912c (diff)
Move subtitle export to its own dialogue.
Diffstat (limited to 'src/wx/export_subtitles_dialog.h')
-rw-r--r--src/wx/export_subtitles_dialog.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/wx/export_subtitles_dialog.h b/src/wx/export_subtitles_dialog.h
new file mode 100644
index 000000000..d4405cb29
--- /dev/null
+++ b/src/wx/export_subtitles_dialog.h
@@ -0,0 +1,41 @@
+/*
+ Copyright (C) 2017-2020 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic 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.
+
+ DCP-o-matic 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 DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#include "table_dialog.h"
+#include <wx/wx.h>
+#include <boost/filesystem.hpp>
+
+class FilePickerCtrl;
+
+class ExportSubtitlesDialog : public TableDialog
+{
+public:
+ ExportSubtitlesDialog (wxWindow* parent, std::string name);
+
+ boost::filesystem::path path () const;
+ bool split_reels () const;
+
+private:
+ void file_changed ();
+
+ std::string _initial_name;
+ wxCheckBox* _split_reels;
+ FilePickerCtrl* _file;
+};