+
+ QPrefDisplayModule * displaymod(dialog_->displayModule);
+
+ displaymod->previewCB->setChecked(rc.preview);
+
+ int item = 2;
+
+ switch (rc.display_graphics) {
+ case grfx::NoDisplay: item = 3; break;
+ case grfx::ColorDisplay: item = 2; break;
+ case grfx::GrayscaleDisplay: item = 1; break;
+ case grfx::MonochromeDisplay: item = 0; break;
+ }
+ displaymod->displayGraphicsCO->setCurrentItem(item);
+
+
+ QPrefPathsModule * pathsmod(dialog_->pathsModule);
+
+ pathsmod->workingDirED->setText(rc.document_path.c_str());
+ pathsmod->templateDirED->setText(rc.template_path.c_str());
+ pathsmod->backupDirED->setText(rc.backupdir_path.c_str());
+ pathsmod->tempDirCB->setChecked(rc.use_tempdir);
+ pathsmod->tempDirED->setText(rc.tempdir_path.c_str());
+ // FIXME: should be a checkbox only
+ pathsmod->lyxserverDirED->setText(rc.lyxpipes.c_str());
+