diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-14 00:12:22 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-08-17 12:51:26 +0200 |
| commit | 0b4bffff846efe967110477797218c170ffb3166 (patch) | |
| tree | f3cb1bbf1e3c86905afe42b159284d2d2c299476 /src/wx | |
| parent | 11456e09fd0a18ff9bd4c8421514b707d5d0c2fe (diff) | |
Add option to use relative content paths (#2856).
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/full_config_dialog.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/wx/full_config_dialog.cc b/src/wx/full_config_dialog.cc index 955ea6493..7f95d9bb4 100644 --- a/src/wx/full_config_dialog.cc +++ b/src/wx/full_config_dialog.cc @@ -134,6 +134,10 @@ private: table->Add(_default_add_file_location, wxGBPosition(r, 1)); ++r; + _relative_paths = new CheckBox(_panel, _("Write relative content paths")); + table->Add(_relative_paths, wxGBPosition(r, 0), wxGBSpan(1, 2)); + ++r; + #ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG _analyse_ebur128 = new CheckBox (_panel, _("Find integrated loudness, true peak and loudness range when analysing audio")); table->Add (_analyse_ebur128, wxGBPosition (r, 0), wxGBSpan (1, 2)); @@ -159,6 +163,7 @@ private: _server_encoding_threads->Bind (wxEVT_SPINCTRL, boost::bind (&FullGeneralPage::server_encoding_threads_changed, this)); export_cinemas->Bind (wxEVT_BUTTON, boost::bind (&FullGeneralPage::export_cinemas_file, this)); + _relative_paths->bind(&FullGeneralPage::relative_paths_changed, this); #ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG _analyse_ebur128->bind(&FullGeneralPage::analyse_ebur128_changed, this); #endif @@ -171,6 +176,7 @@ private: checked_set (_master_encoding_threads, config->master_encoding_threads ()); checked_set (_server_encoding_threads, config->server_encoding_threads ()); + checked_set (_relative_paths, config->relative_paths()); #ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG checked_set (_analyse_ebur128, config->analyse_ebur128 ()); #endif @@ -194,6 +200,11 @@ private: } } + void relative_paths_changed() + { + Config::instance()->set_relative_paths(_relative_paths->get()); + } + #ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG void analyse_ebur128_changed () { @@ -260,6 +271,7 @@ private: wxSpinCtrl* _server_encoding_threads; FilePickerCtrl* _config_file; FilePickerCtrl* _cinemas_file; + CheckBox* _relative_paths; #ifdef DCPOMATIC_HAVE_EBUR128_PATCHED_FFMPEG CheckBox* _analyse_ebur128; #endif |
