Switch to unified view

a/src/qtgui/uiprefs_w.cpp b/src/qtgui/uiprefs_w.cpp
...
...
101
{
101
{
102
    // Entries per result page spinbox
102
    // Entries per result page spinbox
103
    pageLenSB->setValue(prefs.respagesize);
103
    pageLenSB->setValue(prefs.respagesize);
104
    collapseDupsCB->setChecked(prefs.collapseDuplicates);
104
    collapseDupsCB->setChecked(prefs.collapseDuplicates);
105
    maxHLTSB->setValue(prefs.maxhltextmbs);
105
    maxHLTSB->setValue(prefs.maxhltextmbs);
106
    catgToolBarCB->setChecked(prefs.catgToolBar);
106
107
    switch (prefs.filterCtlStyle) {
108
    case PrefsPack::FCS_MN:
109
  filterMN_RB->setChecked(1);
110
  break;
111
    case PrefsPack::FCS_CMB:
112
  filterCMB_RB->setChecked(1);
113
  break;
114
    case PrefsPack::FCS_BT:
115
    default:
116
        fprintf(stderr, "filter ctl style %d\n", prefs.filterCtlStyle);
117
  filterBT_RB->setChecked(1);
118
  break;
119
    }
107
    ssAutoSpaceCB->setChecked(prefs.ssearchOnWS);
120
    ssAutoSpaceCB->setChecked(prefs.ssearchOnWS);
108
    ssNoCompleteCB->setChecked(prefs.ssearchNoComplete);
121
    ssNoCompleteCB->setChecked(prefs.ssearchNoComplete);
109
    ssAutoAllCB->setChecked(prefs.ssearchAsYouType);
122
    ssAutoAllCB->setChecked(prefs.ssearchAsYouType);
110
    syntlenSB->setValue(prefs.syntAbsLen);
123
    syntlenSB->setValue(prefs.syntAbsLen);
111
    syntctxSB->setValue(prefs.syntAbsCtx);
124
    syntctxSB->setValue(prefs.syntAbsCtx);
...
...
222
{
235
{
223
    prefs.ssearchOnWS = ssAutoSpaceCB->isChecked();
236
    prefs.ssearchOnWS = ssAutoSpaceCB->isChecked();
224
    prefs.ssearchNoComplete = ssNoCompleteCB->isChecked();
237
    prefs.ssearchNoComplete = ssNoCompleteCB->isChecked();
225
    prefs.ssearchAsYouType = ssAutoAllCB->isChecked();
238
    prefs.ssearchAsYouType = ssAutoAllCB->isChecked();
226
239
227
    prefs.catgToolBar = catgToolBarCB->isChecked();
240
    if (filterMN_RB->isChecked()) {
241
  prefs.filterCtlStyle = PrefsPack::FCS_MN;
242
    } else if (filterCMB_RB->isChecked()) {
243
  prefs.filterCtlStyle = PrefsPack::FCS_CMB;
244
    } else {
245
  prefs.filterCtlStyle = PrefsPack::FCS_BT;
246
    }
247
    m_mainWindow->setFilterCtlStyle(prefs.filterCtlStyle);
248
228
    prefs.respagesize = pageLenSB->value();
249
    prefs.respagesize = pageLenSB->value();
229
    prefs.collapseDuplicates = collapseDupsCB->isChecked();
250
    prefs.collapseDuplicates = collapseDupsCB->isChecked();
230
    prefs.maxhltextmbs = maxHLTSB->value();
251
    prefs.maxhltextmbs = maxHLTSB->value();
231
252
232
    prefs.qtermcolor = qtermColorLE->text();
253
    prefs.qtermcolor = qtermColorLE->text();