_gdc_password = optional<string>();
_player_mode = PLAYER_MODE_WINDOW;
_player_restricted_menus = false;
+ _playlist_editor_restricted_menus = false;
_image_display = 0;
_video_view_type = VIDEO_VIEW_SIMPLE;
_respect_kdm_validity_periods = true;
}
_player_restricted_menus = f.optional_bool_child("PlayerRestrictedMenus").get_value_or(false);
+ _playlist_editor_restricted_menus = f.optional_bool_child("PlaylistEditorRestrictedMenus").get_value_or(false);
_image_display = f.optional_number_child<int>("ImageDisplay").get_value_or(0);
auto vc = f.optional_string_child("VideoViewType");
root->add_child("PlayerRestrictedMenus")->add_child_text("1");
}
+ if (_playlist_editor_restricted_menus) {
+ root->add_child("PlaylistEditorRestrictedMenus")->add_child_text("1");
+ }
+
/* [XML] ImageDisplay Screen number to put image on in dual-screen player mode. */
root->add_child("ImageDisplay")->add_child_text(raw_convert<string>(_image_display));
switch (_video_view_type) {
return _player_restricted_menus;
}
+ bool playlist_editor_restricted_menus() const {
+ return _playlist_editor_restricted_menus;
+ }
+
int image_display () const {
return _image_display;
}
boost::optional<std::string> _gdc_password;
PlayerMode _player_mode;
bool _player_restricted_menus = false;
+ bool _playlist_editor_restricted_menus = false;
int _image_display;
VideoViewType _video_view_type;
bool _respect_kdm_validity_periods;
/* These just need to be appended somewhere, it seems - they magically
* get moved to the right place.
*/
- help->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-,"));
+ if (!Config::instance()->playlist_editor_restricted_menus()) {
+ help->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-,"));
+ }
help->Append(wxID_EXIT, _("&Exit"));
help->Append(wxID_ABOUT, _("About DCP-o-matic"));
help->Append(wxID_ABOUT, _("About"));
m->Append(file, _("&File"));
- m->Append(edit, _("&Edit"));
- m->Append(help, _("&Help"));
+ if (!Config::instance()->playlist_editor_restricted_menus()) {
+ m->Append(edit, _("&Edit"));
+ m->Append(help, _("&Help"));
+ }
#endif
}