+ void config_changed ()
+ {
+ Config* config = Config::instance ();
+
+ vector<Ratio const *> ratios = Ratio::all ();
+ for (size_t i = 0; i < ratios.size(); ++i) {
+ if (ratios[i] == config->default_container ()) {
+ _container->SetSelection (i);
+ }
+ }
+
+ vector<DCPContentType const *> const ct = DCPContentType::all ();
+ for (size_t i = 0; i < ct.size(); ++i) {
+ if (ct[i] == config->default_dcp_content_type ()) {
+ _dcp_content_type->SetSelection (i);
+ }
+ }
+
+ _still_length->SetValue (config->default_still_length ());
+ _directory->SetPath (std_to_wx (config->default_directory_or (wx_to_std (wxStandardPaths::Get().GetDocumentsDir())).string ()));
+ _j2k_bandwidth->SetValue (config->default_j2k_bandwidth() / 1000000);
+ _j2k_bandwidth->SetRange (50, config->maximum_j2k_bandwidth() / 1000000);
+ _audio_delay->SetValue (config->default_audio_delay ());
+ _issuer->SetValue (std_to_wx (config->dcp_issuer ()));
+ }
+