Diffstat (limited to 'noncore/apps/dictionary/dicttool.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/dictionary/dicttool.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/noncore/apps/dictionary/dicttool.cpp b/noncore/apps/dictionary/dicttool.cpp new file mode 100644 index 0000000..a0f2f9d --- a/dev/null +++ b/noncore/apps/dictionary/dicttool.cpp | |||
@@ -0,0 +1,59 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #include "dicttool.h" | ||
21 | #include "global.h" | ||
22 | #include <qstringlist.h> | ||
23 | #include <qlineedit.h> | ||
24 | |||
25 | DictTool::DictTool( QWidget* parent, const char* name, bool modal, WFlags fl ) | ||
26 | : DictToolBase( parent, name, modal, fl ) | ||
27 | { | ||
28 | } | ||
29 | |||
30 | DictTool::~DictTool() | ||
31 | { | ||
32 | } | ||
33 | |||
34 | void DictTool::setDictionary(int d) | ||
35 | { | ||
36 | dict = (DictType)d; | ||
37 | } | ||
38 | |||
39 | void DictTool::setPattern(const QString& s) | ||
40 | { | ||
41 | qWarning( "DictTool::setPattern(const QString&) not yet implemented!" ); | ||
42 | } | ||
43 | |||
44 | void DictTool::setPickboardSet(const QString& s) | ||
45 | { | ||
46 | QStringList sets = QStringList::split(" ",s); | ||
47 | qWarning( "DictTool::setPickboardSet(const QString&) not yet implemented!" ); | ||
48 | } | ||
49 | |||
50 | void DictTool::addWord() | ||
51 | { | ||
52 | Global::addWords(word->text()); | ||
53 | } | ||
54 | |||
55 | void DictTool::removeWord() | ||
56 | { | ||
57 | qWarning( "DictTool::removeWord() not yet implemented!" ); | ||
58 | } | ||
59 | |||