1
/* ****************************************************************************
2
This file is part of KBabel
4
Copyright (C) 2000 by Matthias Kiefer
5
<matthias.kiefer@gmx.de>
6
2002 by Stanislav Visnovsky
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 2 of the License, or
12
(at your option) any later version.
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License
20
along with this program; if not, write to the Free Software
21
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
In addition, as a special exception, the copyright holders give
24
permission to link the code of this program with any edition of
25
the Qt library by Trolltech AS, Norway (or with modified versions
26
of Qt that use the same license as Qt), and distribute linked
27
combinations including the two. You must obey the GNU General
28
Public License in all respects for all of the code used other than
29
Qt. If you modify this file, you may extend this exception to
30
your version of the file, but you are not obligated to do so. If
31
you do not wish to do so, delete this exception statement from
34
**************************************************************************** */
37
#ifndef PREFERENCESWIDGET_H
38
#define PREFERENCESWIDGET_H
40
#include "searchengine.h"
42
class TmxCompendiumPWidget;
44
class TmxCompendiumPreferencesWidget : public PrefWidget
49
TmxCompendiumPreferencesWidget(QWidget *parent=0, const char* name=0);
50
virtual ~TmxCompendiumPreferencesWidget();
53
virtual void cancel();
54
virtual void standard();
56
void setURL(const QString url);
57
void setMatchEqual(bool);
58
void setMatchNGram(bool);
59
void setMatchIsContained(bool);
60
void setMatchContains(bool);
61
void setMatchWords(bool);
62
void setWholeWords(bool);
63
void setCaseSensitive(bool);
68
bool matchIsContained();
75
bool settingsChanged() const;
78
void restoreSettings();
82
TmxCompendiumPWidget *prefWidget;
86
void equalBtnToggled(bool);
87
void ngramBtnToggled(bool);
88
void isContainedBtnToggled(bool);
89
void containsBtnToggled(bool);
90
void hasWordBtnToggled(bool);