|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
|
... |
|
... |
103 |
useDesktopOpenCB->setChecked(prefs.useDesktopOpen);
|
103 |
useDesktopOpenCB->setChecked(prefs.useDesktopOpen);
|
104 |
viewActionPB->setEnabled(!prefs.useDesktopOpen);
|
104 |
viewActionPB->setEnabled(!prefs.useDesktopOpen);
|
105 |
|
105 |
|
106 |
keepSortCB->setChecked(prefs.keepSort);
|
106 |
keepSortCB->setChecked(prefs.keepSort);
|
107 |
previewHtmlCB->setChecked(prefs.previewHtml);
|
107 |
previewHtmlCB->setChecked(prefs.previewHtml);
|
108 |
previewPlainPreCB->setChecked(prefs.previewPlainPre);
|
108 |
switch (prefs.previewPlainPre) {
|
|
|
109 |
case PrefsPack::PP_BR:
|
|
|
110 |
plainBRRB->setChecked(1);
|
|
|
111 |
break;
|
|
|
112 |
case PrefsPack::PP_PRE:
|
|
|
113 |
plainPRERB->setChecked(1);
|
|
|
114 |
break;
|
|
|
115 |
case PrefsPack::PP_PREWRAP:
|
|
|
116 |
default:
|
|
|
117 |
plainPREWRAPRB->setChecked(1);
|
|
|
118 |
break;
|
|
|
119 |
}
|
109 |
// Query terms color
|
120 |
// Query terms color
|
110 |
qtermColorLE->setText(prefs.qtermcolor);
|
121 |
qtermColorLE->setText(prefs.qtermcolor);
|
111 |
// Abstract snippet separator string
|
122 |
// Abstract snippet separator string
|
112 |
abssepLE->setText(prefs.abssep);
|
123 |
abssepLE->setText(prefs.abssep);
|
113 |
dateformatLE->setText(prefs.reslistdateformat);
|
124 |
dateformatLE->setText(prefs.reslistdateformat);
|
|
... |
|
... |
231 |
|
242 |
|
232 |
prefs.startWithAdvSearchOpen = initStartAdvCB->isChecked();
|
243 |
prefs.startWithAdvSearchOpen = initStartAdvCB->isChecked();
|
233 |
prefs.useDesktopOpen = useDesktopOpenCB->isChecked();
|
244 |
prefs.useDesktopOpen = useDesktopOpenCB->isChecked();
|
234 |
prefs.keepSort = keepSortCB->isChecked();
|
245 |
prefs.keepSort = keepSortCB->isChecked();
|
235 |
prefs.previewHtml = previewHtmlCB->isChecked();
|
246 |
prefs.previewHtml = previewHtmlCB->isChecked();
|
236 |
prefs.previewPlainPre = previewPlainPreCB->isChecked();
|
247 |
|
|
|
248 |
if (plainBRRB->isChecked()) {
|
|
|
249 |
prefs.previewPlainPre = PrefsPack::PP_BR;
|
|
|
250 |
} else if (plainPRERB->isChecked()) {
|
|
|
251 |
prefs.previewPlainPre = PrefsPack::PP_PRE;
|
|
|
252 |
} else {
|
|
|
253 |
prefs.previewPlainPre = PrefsPack::PP_PREWRAP;
|
|
|
254 |
}
|
237 |
|
255 |
|
238 |
prefs.syntAbsLen = syntlenSB->value();
|
256 |
prefs.syntAbsLen = syntlenSB->value();
|
239 |
prefs.syntAbsCtx = syntctxSB->value();
|
257 |
prefs.syntAbsCtx = syntctxSB->value();
|
240 |
|
258 |
|
241 |
|
259 |
|