diff options
Diffstat (limited to 'bibletime/frontend/searchdialog/csearchdialogpages.h')
-rw-r--r-- | bibletime/frontend/searchdialog/csearchdialogpages.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/bibletime/frontend/searchdialog/csearchdialogpages.h b/bibletime/frontend/searchdialog/csearchdialogpages.h index 7949a1b..d8bc070 100644 --- a/bibletime/frontend/searchdialog/csearchdialogpages.h +++ b/bibletime/frontend/searchdialog/csearchdialogpages.h @@ -21,17 +21,17 @@ #include "frontend/searchdialog/searchresultsform.h" // uic generated //Qt includes -#include <qwidget.h> -#include <qvgroupbox.h> +#include <tqwidget.h> +#include <tqvgroupbox.h> //KDE includes #include <klistview.h> //forward declarations -class QLabel; -class QCheckBox; -class QPushButton; -class QRadioButton; +class TQLabel; +class TQCheckBox; +class TQPushButton; +class TQRadioButton; class KComboBox; class KActionMenu; @@ -60,28 +60,28 @@ namespace Search { */ class StrongsResult { public: - StrongsResult() /*: text(QString::null)*/ { + StrongsResult() /*: text(TQString::null)*/ { //keyNameList.clear(); } - StrongsResult(const QString& text, const QString &keyName) + StrongsResult(const TQString& text, const TQString &keyName) : text(text) { //keyNameList.clear(); keyNameList.append(keyName); } - QString keyText() const { + TQString keyText() const { return text; } int keyCount() const { return keyNameList.count(); } - void addKeyName(const QString& keyName) { + void addKeyName(const TQString& keyName) { if (keyNameList.findIndex(keyName) == -1) keyNameList.append(keyName); } - QStringList* getKeyList() { + TQStringList* getKeyList() { return & keyNameList; } @@ -96,11 +96,11 @@ public: { return (l->keyText() > r->keyText()); } */ private: - QString text; - QStringList keyNameList; + TQString text; + TQStringList keyNameList; }; -typedef QValueList<StrongsResult> StrongsResultList; +typedef TQValueList<StrongsResult> StrongsResultList; /** * This class is used to keep track of the text strongs results. @@ -118,19 +118,19 @@ typedef QValueList<StrongsResult> StrongsResultList; */ class StrongsResultClass { public: - StrongsResultClass(CSwordModuleInfo* module, const QString& strongsNumber) + StrongsResultClass(CSwordModuleInfo* module, const TQString& strongsNumber) : srModule(module), lemmaText(strongsNumber) { initStrongsResults(); } - QString keyText(int index) const { + TQString keyText(int index) const { return srList[index].keyText(); } int keyCount(int index) const { return srList[index].keyCount(); } - QStringList* getKeyList(int index) { + TQStringList* getKeyList(int index) { return srList[index].getKeyList(); } int Count() const { @@ -139,11 +139,11 @@ public: private: void initStrongsResults(void); - QString getStrongsNumberText(const QString& verseContent, int *startIndex); + TQString getStrongsNumberText(const TQString& verseContent, int *startIndex); StrongsResultList srList; CSwordModuleInfo* srModule; - QString lemmaText; + TQString lemmaText; }; /** The page of the search dialog which contains the search result part. @@ -152,15 +152,15 @@ private: class CSearchResultPage : public SearchResultsForm { Q_OBJECT public: - CSearchResultPage(QWidget *parent=0, const char *name=0); + CSearchResultPage(TQWidget *parent=0, const char *name=0); ~CSearchResultPage(); /** * Sets the modules which contain the result of each. */ void setSearchResult(ListCSwordModuleInfo modules); - QSize sizeHint() const { return baseSize(); } - QSize minimumSizeHint() const { return minimumSize(); } + TQSize sizeHint() const { return baseSize(); } + TQSize minimumSizeHint() const { return minimumSize(); } public slots: // Public slots /** @@ -180,11 +180,11 @@ protected: // Protected methods /** * This function breakes the queryString into clucene tokens */ - QStringList QueryParser(const QString& queryString); + TQStringList QueryParser(const TQString& queryString); /** * This function highlights the searched text in the content using the search type given by search flags */ - const QString highlightSearchedText(const QString& content, const QString& searchedText/*, const int searchFlags*/); + const TQString highlightSearchedText(const TQString& content, const TQString& searchedText/*, const int searchFlags*/); private: CReadDisplay* m_previewDisplay; @@ -194,7 +194,7 @@ protected slots: // Protected slots /** * Update the preview of the selected key. */ - void updatePreview(const QString& key); + void updatePreview(const TQString& key); /** * Shows a dialog with the search analysis of the current search. */ @@ -208,16 +208,16 @@ protected slots: // Protected slots class CSearchOptionsPage : public SearchOptionsForm { Q_OBJECT public: - CSearchOptionsPage(QWidget *parent=0, const char *name=0); + CSearchOptionsPage(TQWidget *parent=0, const char *name=0); ~CSearchOptionsPage(); /** * Sets the search text used in the page. */ - void setSearchText(const QString& text); + void setSearchText(const TQString& text); /** * Returns the search text set in this page. */ - const QString searchText(); + const TQString searchText(); /** * Returns the list of used modules. */ @@ -239,8 +239,8 @@ public: */ //const CSwordModuleSearch::scopeType scopeType(); - QSize sizeHint() const { return baseSize(); } - QSize minimumSizeHint() const { return minimumSize(); } + TQSize sizeHint() const { return baseSize(); } + TQSize minimumSizeHint() const { return minimumSize(); } bool hasSearchScope(); private: |