Switch to unified view

a/src/qtgui/uiprefs_w.cpp b/src/qtgui/uiprefs_w.cpp
...
...
77
    connect(CLEditHeader, SIGNAL(clicked()), this, SLOT(editHeaderText()));
77
    connect(CLEditHeader, SIGNAL(clicked()), this, SLOT(editHeaderText()));
78
    connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
78
    connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
79
    connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
79
    connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
80
    connect(buildAbsCB, SIGNAL(toggled(bool)), 
80
    connect(buildAbsCB, SIGNAL(toggled(bool)), 
81
        replAbsCB, SLOT(setEnabled(bool)));
81
        replAbsCB, SLOT(setEnabled(bool)));
82
    connect(ssAutoAllCB, SIGNAL(toggled(bool)), 
83
      ssAutoSpaceCB, SLOT(setDisabled(bool)));
84
    connect(ssAutoAllCB, SIGNAL(toggled(bool)), 
85
      ssAutoSpaceCB, SLOT(setChecked(bool)));
82
    connect(useDesktopOpenCB, SIGNAL(toggled(bool)), 
86
    connect(useDesktopOpenCB, SIGNAL(toggled(bool)), 
83
        viewActionPB, SLOT(setDisabled(bool)));
87
        viewActionPB, SLOT(setDisabled(bool)));
84
    connect(useDesktopOpenCB, SIGNAL(toggled(bool)), 
88
    connect(useDesktopOpenCB, SIGNAL(toggled(bool)), 
85
        allExLE, SLOT(setEnabled(bool)));
89
        allExLE, SLOT(setEnabled(bool)));
86
90
...
...
93
    // Entries per result page spinbox
97
    // Entries per result page spinbox
94
    pageLenSB->setValue(prefs.respagesize);
98
    pageLenSB->setValue(prefs.respagesize);
95
    collapseDupsCB->setChecked(prefs.collapseDuplicates);
99
    collapseDupsCB->setChecked(prefs.collapseDuplicates);
96
    maxHLTSB->setValue(prefs.maxhltextmbs);
100
    maxHLTSB->setValue(prefs.maxhltextmbs);
97
    catgToolBarCB->setChecked(prefs.catgToolBar);
101
    catgToolBarCB->setChecked(prefs.catgToolBar);
98
    autoSearchCB->setChecked(prefs.autoSearchOnWS);
102
    ssAutoSpaceCB->setChecked(prefs.ssearchOnWS);
103
    ssNoCompleteCB->setChecked(prefs.ssearchNoComplete);
104
    ssAutoAllCB->setChecked(prefs.ssearchAsYouType);
99
    syntlenSB->setValue(prefs.syntAbsLen);
105
    syntlenSB->setValue(prefs.syntAbsLen);
100
    syntctxSB->setValue(prefs.syntAbsCtx);
106
    syntctxSB->setValue(prefs.syntAbsCtx);
101
107
102
    initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
108
    initStartAdvCB->setChecked(prefs.startWithAdvSearchOpen);
103
109
...
...
205
    idxLV->sortItems();
211
    idxLV->sortItems();
206
}
212
}
207
213
208
void UIPrefsDialog::accept()
214
void UIPrefsDialog::accept()
209
{
215
{
210
    prefs.autoSearchOnWS = autoSearchCB->isChecked();
216
    prefs.ssearchOnWS = ssAutoSpaceCB->isChecked();
217
    prefs.ssearchNoComplete = ssNoCompleteCB->isChecked();
218
    prefs.ssearchAsYouType = ssAutoAllCB->isChecked();
219
211
    prefs.catgToolBar = catgToolBarCB->isChecked();
220
    prefs.catgToolBar = catgToolBarCB->isChecked();
212
    prefs.respagesize = pageLenSB->value();
221
    prefs.respagesize = pageLenSB->value();
213
    prefs.collapseDuplicates = collapseDupsCB->isChecked();
222
    prefs.collapseDuplicates = collapseDupsCB->isChecked();
214
    prefs.maxhltextmbs = maxHLTSB->value();
223
    prefs.maxhltextmbs = maxHLTSB->value();
215
224