Diffstat (limited to 'noncore/apps/odict/dingwidget.h') (more/less context) (show 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 | |||
@@ -7,28 +7,41 @@ | |||
7 | * * | 7 | * * |
8 | **************************************************************************/ | 8 | **************************************************************************/ |
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 |
19 | { | 20 | { |
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 | }; |