std::cout<<" DEBUG: But document->set_userlevel(AppState::USERLEVEL_DEVELOPER) failed."<<std::endl;
}
else
{
std::cout<<"DEBUG: User="<<connection_pool->get_user()<<" is _not_ in the developer group on the server."<<std::endl;
}
// Default to true; if we don't support users, we always have
// priviliges to change things in developer mode.
booltest=true;
//If this was not possible then revert the menu:
if(!test)
{
if(document->get_opened_from_browse())
{
//TODO: Obviously this could be possible but it would require a network protocol and some work:
Gtk::MessageDialogdialog(Utils::bold_message(_("Developer mode not available.")),true,Gtk::MESSAGE_WARNING);
dialog.set_secondary_text(_("Developer mode is not available because the file was opened over the network from a running Glom. Only the original file may be edited."));
dialog.set_transient_for(*get_app_window());
dialog.run();
}
else
{
Gtk::MessageDialogdialog(Utils::bold_message(_("Developer mode not available")),true,Gtk::MESSAGE_WARNING);
dialog.set_secondary_text(_("Developer mode is not available. Check that you have sufficient database access rights and that the glom file is not read-only."));
Gtk::MessageDialogdialog(Utils::bold_message(_("Saving in new document format")),true,Gtk::MESSAGE_QUESTION,Gtk::BUTTONS_NONE);
dialog.set_secondary_text(_("The document was created by an earlier version of the application. Making changes to the document will mean that the document cannot be opened by some earlier versions of the application."));
//TODO: Obviously this could be possible but it would require a network protocol and some work:
Gtk::MessageDialogdialog(Utils::bold_message(_("Developer mode not available.")),true,Gtk::MESSAGE_WARNING);
dialog.set_secondary_text(_("Developer mode is not available because the file was opened over the network from a running Glom. Only the original file may be edited."));
Gtk::MessageDialogdialog(Utils::bold_message(_("Developer mode not available")),true,Gtk::MESSAGE_WARNING);
dialog.set_secondary_text(_("Developer mode is not available. Check that you have sufficient database access rights and that the glom file is not read-only."));
Gtk::MessageDialogdialog(Utils::bold_message(_("Saving in new document format")),true,Gtk::MESSAGE_QUESTION,Gtk::BUTTONS_NONE);
dialog.set_secondary_text(_("The document was created by an earlier version of the application. Making changes to the document will mean that the document cannot be opened by some earlier versions of the application."));