summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-07-29 16:29:34 +0100
committerCarl Hetherington <cth@carlh.net>2016-07-29 16:29:34 +0100
commitf4964573a60155545e02cbbebc47199f7480cf14 (patch)
tree6fd65f01a844fdd839722bc5957425293b5ed29a /src
parentfbe2784c136fa1550815babfce89589f66b35a29 (diff)
Rename KDMNameFormat.
Diffstat (limited to 'src')
-rw-r--r--src/lib/cinema_kdms.cc8
-rw-r--r--src/lib/cinema_kdms.h6
-rw-r--r--src/lib/config.cc6
-rw-r--r--src/lib/config.h8
-rw-r--r--src/lib/kdm_filename_format.cc (renamed from src/lib/kdm_name_format.cc)4
-rw-r--r--src/lib/kdm_filename_format.h (renamed from src/lib/kdm_name_format.h)10
-rw-r--r--src/lib/screen_kdm.cc4
-rw-r--r--src/lib/screen_kdm.h6
-rw-r--r--src/lib/send_kdm_email_job.cc2
-rw-r--r--src/lib/send_kdm_email_job.h6
-rw-r--r--src/lib/wscript2
-rw-r--r--src/wx/kdm_dialog.h2
-rw-r--r--src/wx/kdm_output_panel.cc4
-rw-r--r--src/wx/kdm_output_panel.h6
14 files changed, 37 insertions, 37 deletions
diff --git a/src/lib/cinema_kdms.cc b/src/lib/cinema_kdms.cc
index c50578734..78e7c5ace 100644
--- a/src/lib/cinema_kdms.cc
+++ b/src/lib/cinema_kdms.cc
@@ -27,7 +27,7 @@
#include "emailer.h"
#include "compose.hpp"
#include "log.h"
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include <zip.h>
#include <boost/foreach.hpp>
@@ -40,7 +40,7 @@ using std::runtime_error;
using boost::shared_ptr;
void
-CinemaKDMs::make_zip_file (boost::filesystem::path zip_file, KDMNameFormat name_format, dcp::NameFormat::Map name_values) const
+CinemaKDMs::make_zip_file (boost::filesystem::path zip_file, KDMFilenameFormat name_format, dcp::NameFormat::Map name_values) const
{
int error;
struct zip* zip = zip_open (zip_file.string().c_str(), ZIP_CREATE | ZIP_EXCL, &error);
@@ -119,7 +119,7 @@ void
CinemaKDMs::write_zip_files (
list<CinemaKDMs> cinema_kdms,
boost::filesystem::path directory,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values
)
{
@@ -140,7 +140,7 @@ CinemaKDMs::write_zip_files (
void
CinemaKDMs::email (
list<CinemaKDMs> cinema_kdms,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values,
string cpl_name,
shared_ptr<Log> log
diff --git a/src/lib/cinema_kdms.h b/src/lib/cinema_kdms.h
index 53cf84d66..826b93806 100644
--- a/src/lib/cinema_kdms.h
+++ b/src/lib/cinema_kdms.h
@@ -27,20 +27,20 @@ class Log;
class CinemaKDMs
{
public:
- void make_zip_file (boost::filesystem::path zip_file, KDMNameFormat name_format, dcp::NameFormat::Map name_values) const;
+ void make_zip_file (boost::filesystem::path zip_file, KDMFilenameFormat name_format, dcp::NameFormat::Map name_values) const;
static std::list<CinemaKDMs> collect (std::list<ScreenKDM> kdms);
static void write_zip_files (
std::list<CinemaKDMs> cinema_kdms,
boost::filesystem::path directory,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values
);
static void email (
std::list<CinemaKDMs> cinema_kdms,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values,
std::string cpl_name,
boost::shared_ptr<Log> log
diff --git a/src/lib/config.cc b/src/lib/config.cc
index b456c605c..d332c805a 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -30,7 +30,7 @@
#include "util.h"
#include "cross.h"
#include "raw_convert.h"
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include <dcp/filename_format.h>
#include <dcp/colour_matrix.h>
#include <dcp/certificate_chain.h>
@@ -110,7 +110,7 @@ Config::set_defaults ()
#endif
_cinemas_file = path ("cinemas.xml");
_show_hints_before_make_dcp = true;
- _kdm_filename_format = KDMNameFormat ("KDM %f %c %s");
+ _kdm_filename_format = KDMFilenameFormat ("KDM %f %c %s");
_dcp_filename_format = dcp::FilenameFormat ("%t_%i");
_allowed_dcp_frame_rates.clear ();
@@ -294,7 +294,7 @@ try
_cinemas_file = f.optional_string_child("CinemasFile").get_value_or (path ("cinemas.xml").string ());
_show_hints_before_make_dcp = f.optional_bool_child("ShowHintsBeforeMakeDCP").get_value_or (true);
- _kdm_filename_format = KDMNameFormat (f.optional_string_child("KDMFilenameFormat").get_value_or ("KDM %f %c %s"));
+ _kdm_filename_format = KDMFilenameFormat (f.optional_string_child("KDMFilenameFormat").get_value_or ("KDM %f %c %s"));
_dcp_filename_format = dcp::FilenameFormat (f.optional_string_child("DCPFilenameFormat").get_value_or ("%t_%i.mxf"));
/* Replace any cinemas from config.xml with those from the configured file */
diff --git a/src/lib/config.h b/src/lib/config.h
index 37a55a695..913372c31 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -26,7 +26,7 @@
#define DCPOMATIC_CONFIG_H
#include "isdcf_metadata.h"
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include "types.h"
#include <dcp/filename_format.h>
#include <dcp/certificate_chain.h>
@@ -268,7 +268,7 @@ public:
return _show_hints_before_make_dcp;
}
- KDMNameFormat kdm_filename_format () const {
+ KDMFilenameFormat kdm_filename_format () const {
return _kdm_filename_format;
}
@@ -484,7 +484,7 @@ public:
maybe_set (_show_hints_before_make_dcp, s);
}
- void set_kdm_filename_format (KDMNameFormat n) {
+ void set_kdm_filename_format (KDMFilenameFormat n) {
maybe_set (_kdm_filename_format, n);
}
@@ -603,7 +603,7 @@ private:
std::vector<dcp::EncryptedKDM> _dkdms;
boost::filesystem::path _cinemas_file;
bool _show_hints_before_make_dcp;
- KDMNameFormat _kdm_filename_format;
+ KDMFilenameFormat _kdm_filename_format;
dcp::FilenameFormat _dcp_filename_format;
/** Singleton instance, or 0 */
diff --git a/src/lib/kdm_name_format.cc b/src/lib/kdm_filename_format.cc
index bf17acbf1..20e8298fe 100644
--- a/src/lib/kdm_name_format.cc
+++ b/src/lib/kdm_filename_format.cc
@@ -18,11 +18,11 @@
*/
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
using std::string;
-KDMNameFormat::KDMNameFormat (string specification)
+KDMFilenameFormat::KDMFilenameFormat (string specification)
: NameFormat (specification)
{
/* film name */
diff --git a/src/lib/kdm_name_format.h b/src/lib/kdm_filename_format.h
index 1f5a9ab61..b96ac34ae 100644
--- a/src/lib/kdm_name_format.h
+++ b/src/lib/kdm_filename_format.h
@@ -18,16 +18,16 @@
*/
-#ifndef DCPOMATIC_KDM_NAME_FORMAT
-#define DCPOMATIC_KDM_NAME_FORMAT
+#ifndef DCPOMATIC_KDM_FILENAME_FORMAT
+#define DCPOMATIC_KDM_FILENAME_FORMAT
#include <dcp/name_format.h>
-class KDMNameFormat : public dcp::NameFormat
+class KDMFilenameFormat : public dcp::NameFormat
{
public:
- KDMNameFormat () {}
- KDMNameFormat (std::string specification);
+ KDMFilenameFormat () {}
+ KDMFilenameFormat (std::string specification);
};
#endif
diff --git a/src/lib/screen_kdm.cc b/src/lib/screen_kdm.cc
index 3290d2a68..9cb831622 100644
--- a/src/lib/screen_kdm.cc
+++ b/src/lib/screen_kdm.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -35,7 +35,7 @@ operator== (ScreenKDM const & a, ScreenKDM const & b)
}
void
-ScreenKDM::write_files (list<ScreenKDM> screen_kdms, boost::filesystem::path directory, KDMNameFormat name_format, dcp::NameFormat::Map name_values)
+ScreenKDM::write_files (list<ScreenKDM> screen_kdms, boost::filesystem::path directory, KDMFilenameFormat name_format, dcp::NameFormat::Map name_values)
{
/* Write KDMs to the specified directory */
BOOST_FOREACH (ScreenKDM const & i, screen_kdms) {
diff --git a/src/lib/screen_kdm.h b/src/lib/screen_kdm.h
index d9031f188..227526449 100644
--- a/src/lib/screen_kdm.h
+++ b/src/lib/screen_kdm.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -21,7 +21,7 @@
#ifndef DCPOMATIC_SCREEN_KDM_H
#define DCPOMATIC_SCREEN_KDM_H
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include <dcp/encrypted_kdm.h>
#include <boost/shared_ptr.hpp>
@@ -38,7 +38,7 @@ public:
static void write_files (
std::list<ScreenKDM> screen_kdms, boost::filesystem::path directory,
- KDMNameFormat name_format, dcp::NameFormat::Map name_values
+ KDMFilenameFormat name_format, dcp::NameFormat::Map name_values
);
boost::shared_ptr<Screen> screen;
diff --git a/src/lib/send_kdm_email_job.cc b/src/lib/send_kdm_email_job.cc
index e4b20167e..b06704545 100644
--- a/src/lib/send_kdm_email_job.cc
+++ b/src/lib/send_kdm_email_job.cc
@@ -33,7 +33,7 @@ using boost::shared_ptr;
/** @param log Log to write to, or 0 */
SendKDMEmailJob::SendKDMEmailJob (
list<CinemaKDMs> cinema_kdms,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values,
string cpl_name,
shared_ptr<Log> log
diff --git a/src/lib/send_kdm_email_job.h b/src/lib/send_kdm_email_job.h
index bfb4d6c52..17b2db89c 100644
--- a/src/lib/send_kdm_email_job.h
+++ b/src/lib/send_kdm_email_job.h
@@ -19,7 +19,7 @@
*/
#include "job.h"
-#include "kdm_name_format.h"
+#include "kdm_filename_format.h"
#include <dcp/types.h>
#include <boost/filesystem.hpp>
@@ -32,7 +32,7 @@ class SendKDMEmailJob : public Job
public:
SendKDMEmailJob (
std::list<CinemaKDMs> cinema_kdms,
- KDMNameFormat name_format,
+ KDMFilenameFormat name_format,
dcp::NameFormat::Map name_values,
std::string cpl_name,
boost::shared_ptr<Log> log
@@ -43,7 +43,7 @@ public:
void run ();
private:
- KDMNameFormat _name_format;
+ KDMFilenameFormat _name_format;
dcp::NameFormat::Map _name_values;
std::string _cpl_name;
std::list<CinemaKDMs> _cinema_kdms;
diff --git a/src/lib/wscript b/src/lib/wscript
index 6a8945d84..6e937c26f 100644
--- a/src/lib/wscript
+++ b/src/lib/wscript
@@ -94,7 +94,7 @@ sources = """
job.cc
job_manager.cc
json_server.cc
- kdm_name_format.cc
+ kdm_filename_format.cc
log.cc
log_entry.cc
magick_image_proxy.cc
diff --git a/src/wx/kdm_dialog.h b/src/wx/kdm_dialog.h
index bae2fc16b..07b998224 100644
--- a/src/wx/kdm_dialog.h
+++ b/src/wx/kdm_dialog.h
@@ -19,7 +19,7 @@
*/
#include "wx_util.h"
-#include "lib/kdm_name_format.h"
+#include "lib/kdm_filename_format.h"
#include <dcp/types.h>
#include <wx/wx.h>
#include <boost/shared_ptr.hpp>
diff --git a/src/wx/kdm_output_panel.cc b/src/wx/kdm_output_panel.cc
index 4efb9fb27..2808357d4 100644
--- a/src/wx/kdm_output_panel.cc
+++ b/src/wx/kdm_output_panel.cc
@@ -68,7 +68,7 @@ KDMOutputPanel::KDMOutputPanel (wxWindow* parent, bool interop)
ex['s'] = "Screen 1";
ex['b'] = "2012/03/15 12:30";
ex['e'] = "2012/03/22 02:30";
- _filename_format = new NameFormatEditor<KDMNameFormat> (this, Config::instance()->kdm_filename_format(), titles, ex);
+ _filename_format = new NameFormatEditor<KDMFilenameFormat> (this, Config::instance()->kdm_filename_format(), titles, ex);
table->Add (_filename_format->panel(), 1, wxEXPAND);
_write_to = new wxRadioButton (this, wxID_ANY, _("Write to"));
@@ -126,7 +126,7 @@ KDMOutputPanel::save_kdm_name_format () const
Config::instance()->set_kdm_filename_format (name_format ());
}
-KDMNameFormat
+KDMFilenameFormat
KDMOutputPanel::name_format () const
{
return _filename_format->get ();
diff --git a/src/wx/kdm_output_panel.h b/src/wx/kdm_output_panel.h
index 002b189f5..ee6a94e68 100644
--- a/src/wx/kdm_output_panel.h
+++ b/src/wx/kdm_output_panel.h
@@ -20,7 +20,7 @@
#include "wx_util.h"
#include "name_format_editor.h"
-#include "lib/kdm_name_format.h"
+#include "lib/kdm_filename_format.h"
#include <dcp/types.h>
#include <wx/wx.h>
#include <boost/filesystem.hpp>
@@ -36,14 +36,14 @@ public:
boost::filesystem::path directory () const;
bool write_to () const;
dcp::Formulation formulation () const;
- KDMNameFormat name_format () const;
+ KDMFilenameFormat name_format () const;
void setup_sensitivity ();
void save_kdm_name_format () const;
private:
wxChoice* _type;
- NameFormatEditor<KDMNameFormat>* _filename_format;
+ NameFormatEditor<KDMFilenameFormat>* _filename_format;
wxRadioButton* _write_to;
#ifdef DCPOMATIC_USE_OWN_PICKER
DirPickerCtrl* _folder;