summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-25 21:06:53 +0200
committerCarl Hetherington <cth@carlh.net>2020-08-25 21:06:53 +0200
commit75f6cc0fa8bcff9b98a31200e313d8895cfaa3f8 (patch)
treeedb94a9a9271a1dfee0c9bd6cc3bf435529a2939 /src/wx
parent451ab9374cc32483489cdde27a9382b546cdecf5 (diff)
Rename export dialogue to export video.
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/export_video_file_dialog.cc (renamed from src/wx/export_dialog.cc)30
-rw-r--r--src/wx/export_video_file_dialog.h (renamed from src/wx/export_dialog.h)6
-rw-r--r--src/wx/wscript2
3 files changed, 19 insertions, 19 deletions
diff --git a/src/wx/export_dialog.cc b/src/wx/export_video_file_dialog.cc
index 3553f3c7e..062fcc81f 100644
--- a/src/wx/export_dialog.cc
+++ b/src/wx/export_video_file_dialog.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2017-2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2017-2020 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -18,10 +18,10 @@
*/
-#include "export_dialog.h"
+#include "check_box.h"
+#include "export_video_file_dialog.h"
#include "file_picker_ctrl.h"
#include "wx_util.h"
-#include "check_box.h"
#include "lib/warnings.h"
DCPOMATIC_DISABLE_WARNINGS
#include <wx/filepicker.h>
@@ -53,8 +53,8 @@ ExportFormat formats[] = {
EXPORT_FORMAT_H264_AAC,
};
-ExportDialog::ExportDialog (wxWindow* parent, string name)
- : TableDialog (parent, _("Export film"), 2, 1, true)
+ExportVideoFileDialog::ExportVideoFileDialog (wxWindow* parent, string name)
+ : TableDialog (parent, _("Export video file"), 2, 1, true)
, _initial_name (name)
{
add (_("Format"), true);
@@ -99,8 +99,8 @@ ExportDialog::ExportDialog (wxWindow* parent, string name)
_x264_crf_label[i]->Enable (false);
}
- _format->Bind (wxEVT_CHOICE, bind (&ExportDialog::format_changed, this));
- _file->Bind (wxEVT_FILEPICKER_CHANGED, bind (&ExportDialog::file_changed, this));
+ _format->Bind (wxEVT_CHOICE, bind (&ExportVideoFileDialog::format_changed, this));
+ _file->Bind (wxEVT_FILEPICKER_CHANGED, bind (&ExportVideoFileDialog::file_changed, this));
layout ();
@@ -109,7 +109,7 @@ ExportDialog::ExportDialog (wxWindow* parent, string name)
}
void
-ExportDialog::format_changed ()
+ExportVideoFileDialog::format_changed ()
{
DCPOMATIC_ASSERT (_format->GetSelection() >= 0 && _format->GetSelection() < FORMATS);
_file->SetWildcard (format_filters[_format->GetSelection()]);
@@ -122,7 +122,7 @@ ExportDialog::format_changed ()
}
boost::filesystem::path
-ExportDialog::path () const
+ExportVideoFileDialog::path () const
{
wxFileName fn (_file->GetPath());
fn.SetExt (format_extensions[_format->GetSelection()]);
@@ -130,38 +130,38 @@ ExportDialog::path () const
}
ExportFormat
-ExportDialog::format () const
+ExportVideoFileDialog::format () const
{
DCPOMATIC_ASSERT (_format->GetSelection() >= 0 && _format->GetSelection() < FORMATS);
return formats[_format->GetSelection()];
}
bool
-ExportDialog::mixdown_to_stereo () const
+ExportVideoFileDialog::mixdown_to_stereo () const
{
return _mixdown->GetValue ();
}
bool
-ExportDialog::split_reels () const
+ExportVideoFileDialog::split_reels () const
{
return _split_reels->GetValue ();
}
bool
-ExportDialog::split_streams () const
+ExportVideoFileDialog::split_streams () const
{
return _split_streams->GetValue ();
}
int
-ExportDialog::x264_crf () const
+ExportVideoFileDialog::x264_crf () const
{
return _x264_crf->GetValue ();
}
void
-ExportDialog::file_changed ()
+ExportVideoFileDialog::file_changed ()
{
wxButton* ok = dynamic_cast<wxButton *> (FindWindowById (wxID_OK, this));
DCPOMATIC_ASSERT (ok);
diff --git a/src/wx/export_dialog.h b/src/wx/export_video_file_dialog.h
index fc22d036a..a58fadd38 100644
--- a/src/wx/export_dialog.h
+++ b/src/wx/export_video_file_dialog.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2017-2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2017-2020 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -25,10 +25,10 @@
class FilePickerCtrl;
-class ExportDialog : public TableDialog
+class ExportVideoFileDialog : public TableDialog
{
public:
- explicit ExportDialog (wxWindow* parent, std::string name);
+ ExportVideoFileDialog (wxWindow* parent, std::string name);
boost::filesystem::path path () const;
ExportFormat format () const;
diff --git a/src/wx/wscript b/src/wx/wscript
index 5d8fc16bb..d7a13e32b 100644
--- a/src/wx/wscript
+++ b/src/wx/wscript
@@ -65,8 +65,8 @@ sources = """
dolby_doremi_certificate_panel.cc
download_certificate_dialog.cc
download_certificate_panel.cc
- export_dialog.cc
export_subtitles_dialog.cc
+ export_video_file_dialog.cc
file_picker_ctrl.cc
film_editor.cc
film_name_location_dialog.cc