|
a/src/qtgui/uiprefs_w.cpp |
|
b/src/qtgui/uiprefs_w.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.9 2006-11-07 09:04:28 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.10 2006-11-10 13:32:08 dockes Exp $ (C) 2005 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
38 |
#include <qcombobox.h>
|
38 |
#include <qcombobox.h>
|
39 |
#include <qlistbox.h>
|
39 |
#include <qlistbox.h>
|
40 |
#include <qlayout.h>
|
40 |
#include <qlayout.h>
|
41 |
#include <qtooltip.h>
|
41 |
#include <qtooltip.h>
|
42 |
#include <qwhatsthis.h>
|
42 |
#include <qwhatsthis.h>
|
|
|
43 |
#include <qtextedit.h>
|
43 |
|
44 |
|
44 |
#include "recoll.h"
|
45 |
#include "recoll.h"
|
45 |
#include "guiutils.h"
|
46 |
#include "guiutils.h"
|
46 |
#include "rcldb.h"
|
47 |
#include "rcldb.h"
|
47 |
#include "pathut.h"
|
48 |
#include "pathut.h"
|
|
... |
|
... |
91 |
s.setNum(this->font().pointSize()));
|
92 |
s.setNum(this->font().pointSize()));
|
92 |
} else {
|
93 |
} else {
|
93 |
reslistFontPB->setText(reslistFontFamily + "-" +
|
94 |
reslistFontPB->setText(reslistFontFamily + "-" +
|
94 |
s.setNum(reslistFontSize));
|
95 |
s.setNum(reslistFontSize));
|
95 |
}
|
96 |
}
|
|
|
97 |
rlfTE->setText(prefs.reslistformat);
|
96 |
helpBrowserLE->setText(prefs.htmlBrowser);
|
98 |
helpBrowserLE->setText(prefs.htmlBrowser);
|
97 |
|
99 |
|
98 |
// Stemming language combobox
|
100 |
// Stemming language combobox
|
99 |
stemLangCMB->clear();
|
101 |
stemLangCMB->clear();
|
100 |
stemLangCMB->insertItem(tr("(no stemming)"));
|
102 |
stemLangCMB->insertItem(tr("(no stemming)"));
|
|
... |
|
... |
150 |
prefs.autoSearchOnWS = autoSearchCB->isChecked();
|
152 |
prefs.autoSearchOnWS = autoSearchCB->isChecked();
|
151 |
prefs.respagesize = pageLenSB->value();
|
153 |
prefs.respagesize = pageLenSB->value();
|
152 |
|
154 |
|
153 |
prefs.reslistfontfamily = reslistFontFamily;
|
155 |
prefs.reslistfontfamily = reslistFontFamily;
|
154 |
prefs.reslistfontsize = reslistFontSize;
|
156 |
prefs.reslistfontsize = reslistFontSize;
|
|
|
157 |
prefs.reslistformat = rlfTE->text();
|
155 |
|
158 |
|
156 |
prefs.htmlBrowser = helpBrowserLE->text();
|
159 |
prefs.htmlBrowser = helpBrowserLE->text();
|
157 |
|
160 |
|
158 |
if (stemLangCMB->currentItem() == 0) {
|
161 |
if (stemLangCMB->currentItem() == 0) {
|
159 |
prefs.queryStemLang = "";
|
162 |
prefs.queryStemLang = "";
|