author | tille <tille> | 2003-01-09 13:56:54 (UTC) |
---|---|---|
committer | tille <tille> | 2003-01-09 13:56:54 (UTC) |
commit | da7a12b48efb1ff37d1316d77f52123778a403a4 (patch) (unidiff) | |
tree | 9122c888663a54e78c830410851289ceed0ea676 /noncore/apps/odict/dingwidget.h | |
parent | b83656c4faa3556a753b7b8642aef1264e8404f3 (diff) | |
download | opie-da7a12b48efb1ff37d1316d77f52123778a403a4.zip opie-da7a12b48efb1ff37d1316d77f52123778a403a4.tar.gz opie-da7a12b48efb1ff37d1316d77f52123778a403a4.tar.bz2 |
commit for carsten
Diffstat (limited to 'noncore/apps/odict/dingwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/dingwidget.h | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/noncore/apps/odict/dingwidget.h b/noncore/apps/odict/dingwidget.h index c96039f..ba37009 100644 --- a/noncore/apps/odict/dingwidget.h +++ b/noncore/apps/odict/dingwidget.h | |||
@@ -9,10 +9,11 @@ | |||
9 | 9 | ||
10 | class QString; | ||
11 | class QTextBrowser; | ||
12 | class QStringList; | ||
13 | |||
14 | #include <qstringlist.h> | 10 | #include <qstringlist.h> |
15 | |||
16 | #include <qstring.h> | 11 | #include <qstring.h> |
17 | 12 | ||
13 | struct BroswerContent | ||
14 | { | ||
15 | QString top; | ||
16 | QString bottom; | ||
17 | }; | ||
18 | |||
18 | class DingWidget | 19 | class DingWidget |
@@ -20,15 +21,27 @@ class DingWidget | |||
20 | public: | 21 | public: |
21 | DingWidget(QString word = 0, QTextBrowser* = 0, QTextBrowser* =0, QString activated_name=0); | 22 | DingWidget(); |
22 | 23 | ||
23 | void setText(); | 24 | BroswerContent setText( QString ); |
24 | QStringList lines; | 25 | QStringList lines; |
26 | void setCaseSensitive( bool ); | ||
27 | void setCompleteWord( bool ); | ||
28 | void loadDict( QString ); | ||
29 | QString loadedDict(); | ||
30 | void setQueryWord( QString ); | ||
31 | void setDict( QString ); | ||
32 | |||
25 | private: | 33 | private: |
34 | BroswerContent parseInfo(); | ||
35 | |||
36 | BroswerContent s_strings; | ||
37 | bool isCompleteWord; | ||
38 | bool isCaseSensitive; | ||
39 | |||
40 | QString dictName; | ||
41 | |||
26 | QString search_word; | 42 | QString search_word; |
27 | void parseInfo( QStringList& , QString&, QString& ); | ||
28 | QString queryword; | ||
29 | void loadValues(); | 43 | void loadValues(); |
44 | QString queryword; | ||
30 | QString methodname; | 45 | QString methodname; |
31 | QString trenner; | 46 | QString trenner; |
32 | |||
33 | QTextBrowser *topbrowser, *bottombrowser; | ||
34 | }; | 47 | }; |