author | tille <tille> | 2003-01-09 13:56:54 (UTC) |
---|---|---|
committer | tille <tille> | 2003-01-09 13:56:54 (UTC) |
commit | da7a12b48efb1ff37d1316d77f52123778a403a4 (patch) (side-by-side diff) | |
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 @@ -class QString; -class QTextBrowser; -class QStringList; - #include <qstringlist.h> - #include <qstring.h> +struct BroswerContent +{ + QString top; + QString bottom; +}; + class DingWidget @@ -20,15 +21,27 @@ class DingWidget public: - DingWidget(QString word = 0, QTextBrowser* = 0, QTextBrowser* =0, QString activated_name=0); + DingWidget(); - void setText(); + BroswerContent setText( QString ); QStringList lines; + void setCaseSensitive( bool ); + void setCompleteWord( bool ); + void loadDict( QString ); + QString loadedDict(); + void setQueryWord( QString ); + void setDict( QString ); + private: + BroswerContent parseInfo(); + + BroswerContent s_strings; + bool isCompleteWord; + bool isCaseSensitive; + + QString dictName; + QString search_word; - void parseInfo( QStringList& , QString&, QString& ); - QString queryword; void loadValues(); + QString queryword; QString methodname; QString trenner; - - QTextBrowser *topbrowser, *bottombrowser; }; |