~ubuntu-branches/ubuntu/intrepid/kdesdk/intrepid-updates

« back to all changes in this revision

Viewing changes to kbabel/kbabeldict/modules/tmx/preferenceswidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-05-28 10:11:43 UTC
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: james.westby@ubuntu.com-20080528101143-gzc3styjz1b70zxu
Tags: upstream-4.0.80
ImportĀ upstreamĀ versionĀ 4.0.80

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ****************************************************************************
2
 
  This file is part of KBabel
3
 
 
4
 
  Copyright (C) 2000 by Matthias Kiefer
5
 
                            <matthias.kiefer@gmx.de>
6
 
                2002 by Stanislav Visnovsky
7
 
                            <visnovsky@kde.org>
8
 
 
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.
13
 
 
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.
18
 
 
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.
22
 
 
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
32
 
  your version.
33
 
    
34
 
**************************************************************************** */
35
 
 
36
 
 
37
 
#ifndef PREFERENCESWIDGET_H
38
 
#define PREFERENCESWIDGET_H
39
 
 
40
 
#include "searchengine.h"
41
 
 
42
 
class TmxCompendiumPWidget;
43
 
 
44
 
class TmxCompendiumPreferencesWidget : public PrefWidget
45
 
{
46
 
        Q_OBJECT
47
 
 
48
 
public:
49
 
        TmxCompendiumPreferencesWidget(QWidget *parent=0, const char* name=0);
50
 
        virtual ~TmxCompendiumPreferencesWidget();
51
 
 
52
 
        virtual void apply();
53
 
        virtual void cancel();
54
 
        virtual void standard();
55
 
 
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);
64
 
        
65
 
        QString url();
66
 
        bool matchEqual();
67
 
        bool matchNGram();
68
 
        bool matchIsContained();
69
 
        bool matchContains();
70
 
        bool matchWords();
71
 
        bool wholeWords();
72
 
    bool caseSensitive();
73
 
 
74
 
 
75
 
        bool settingsChanged() const;
76
 
        
77
 
signals:
78
 
        void restoreSettings();
79
 
        void applySettings();
80
 
        
81
 
public:
82
 
        TmxCompendiumPWidget *prefWidget;
83
 
 
84
 
protected slots:
85
 
        void setChanged();
86
 
        void equalBtnToggled(bool);
87
 
        void ngramBtnToggled(bool);
88
 
        void isContainedBtnToggled(bool);
89
 
        void containsBtnToggled(bool);
90
 
        void hasWordBtnToggled(bool);
91
 
 
92
 
private:
93
 
        bool changed;
94
 
 
95
 
};
96
 
 
97
 
#endif