|
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.12 2006-12-04 08:17:24 dockes Exp $ (C) 2005 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: uiprefs_w.cpp,v 1.13 2006-12-14 13:53:43 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
|
|
... |
|
... |
53 |
#include "recoll.h"
|
53 |
#include "recoll.h"
|
54 |
#include "guiutils.h"
|
54 |
#include "guiutils.h"
|
55 |
#include "rcldb.h"
|
55 |
#include "rcldb.h"
|
56 |
#include "pathut.h"
|
56 |
#include "pathut.h"
|
57 |
#include "uiprefs_w.h"
|
57 |
#include "uiprefs_w.h"
|
|
|
58 |
#include "viewaction_w.h"
|
58 |
|
59 |
|
59 |
void UIPrefsDialog::init()
|
60 |
void UIPrefsDialog::init()
|
60 |
{
|
61 |
{
|
61 |
|
62 |
m_viewAction = 0;
|
|
|
63 |
|
|
|
64 |
connect(viewActionPB, SIGNAL(clicked()), this, SLOT(showViewAction()));
|
62 |
connect(reslistFontPB, SIGNAL(clicked()), this, SLOT(showFontDialog()));
|
65 |
connect(reslistFontPB, SIGNAL(clicked()), this, SLOT(showFontDialog()));
|
63 |
connect(helpBrowserPB, SIGNAL(clicked()), this, SLOT(showBrowserDialog()));
|
66 |
connect(helpBrowserPB, SIGNAL(clicked()), this, SLOT(showBrowserDialog()));
|
64 |
connect(resetFontPB, SIGNAL(clicked()), this, SLOT(resetReslistFont()));
|
67 |
connect(resetFontPB, SIGNAL(clicked()), this, SLOT(resetReslistFont()));
|
65 |
connect(extraDbLE,SIGNAL(textChanged(const QString&)), this,
|
68 |
connect(extraDbLE,SIGNAL(textChanged(const QString&)), this,
|
66 |
SLOT(extraDbTextChanged(const QString&)));
|
69 |
SLOT(extraDbTextChanged(const QString&)));
|
|
... |
|
... |
251 |
"Choose a file");
|
254 |
"Choose a file");
|
252 |
if (!s.isEmpty())
|
255 |
if (!s.isEmpty())
|
253 |
helpBrowserLE->setText(s);
|
256 |
helpBrowserLE->setText(s);
|
254 |
}
|
257 |
}
|
255 |
|
258 |
|
|
|
259 |
void UIPrefsDialog::showViewAction()
|
|
|
260 |
{
|
|
|
261 |
if (m_viewAction== 0) {
|
|
|
262 |
m_viewAction = new ViewAction(0);
|
|
|
263 |
m_viewAction->show();
|
|
|
264 |
} else {
|
|
|
265 |
// Close and reopen, in hope that makes us visible...
|
|
|
266 |
m_viewAction->close();
|
|
|
267 |
m_viewAction->show();
|
|
|
268 |
}
|
|
|
269 |
}
|
|
|
270 |
|
256 |
////////////////////////////////////////////
|
271 |
////////////////////////////////////////////
|
257 |
// External / extra search indexes setup
|
272 |
// External / extra search indexes setup
|
258 |
// TBD: a way to remove entry from 'all' list (del button?)
|
273 |
// TBD: a way to remove entry from 'all' list (del button?)
|
259 |
|
274 |
|
260 |
void UIPrefsDialog::extraDbTextChanged(const QString &text)
|
275 |
void UIPrefsDialog::extraDbTextChanged(const QString &text)
|