diff options
Diffstat (limited to 'tools/thesaurus/main.h')
-rw-r--r-- | tools/thesaurus/main.h | 105 |
1 files changed, 53 insertions, 52 deletions
diff --git a/tools/thesaurus/main.h b/tools/thesaurus/main.h index 7354bf73..9225bb55 100644 --- a/tools/thesaurus/main.h +++ b/tools/thesaurus/main.h @@ -23,22 +23,22 @@ #ifndef __main_h__ #define __main_h__ -#include <qapplication.h> -#include <qcombobox.h> -#include <qgroupbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qlistbox.h> -#include <qobject.h> -#include <qregexp.h> -#include <qstring.h> -#include <qstringlist.h> -#include <qtabdialog.h> -#include <qtabwidget.h> -#include <qtextbrowser.h> -#include <qtooltip.h> -#include <qwidget.h> -#include <qvbox.h> +#include <tqapplication.h> +#include <tqcombobox.h> +#include <tqgroupbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqlistbox.h> +#include <tqobject.h> +#include <tqregexp.h> +#include <tqstring.h> +#include <tqstringlist.h> +#include <tqtabdialog.h> +#include <tqtabwidget.h> +#include <tqtextbrowser.h> +#include <tqtooltip.h> +#include <tqwidget.h> +#include <tqvbox.h> #include <kapplication.h> #include <kcombobox.h> @@ -58,29 +58,30 @@ #include <kstandarddirs.h> #include <kurl.h> -class QToolButton; +class TQToolButton; class Thesaurus : public KDataTool { Q_OBJECT + TQ_OBJECT public: - Thesaurus(QObject* parent, const char* name, const QStringList &); + Thesaurus(TQObject* tqparent, const char* name, const TQStringList &); ~Thesaurus(); - virtual bool run(const QString& command, void* data, - const QString& datatype, const QString& mimetype); + virtual bool run(const TQString& command, void* data, + const TQString& datatype, const TQString& mimetype); protected slots: void slotChangeLanguage(); void slotFindTerm(); - void slotFindTerm(const QString &term, bool add_to_history = true); + void slotFindTerm(const TQString &term, bool add_to_history = true); void slotUpdateNavButtons(); void slotGotoHistory(int index); - void slotSetReplaceTerm(QListBoxItem *item); - void slotSetReplaceTerm(const QString &term); + void slotSetReplaceTerm(TQListBoxItem *item); + void slotSetReplaceTerm(const TQString &term); void slotBack(); void slotForward(); @@ -95,20 +96,20 @@ protected slots: protected: enum Mode {grep, other}; - void findTerm(const QString &term); - void findTermThesaurus(const QString &term); - void findTermWordnet(const QString &term); - QString formatLine(QString l); + void findTerm(const TQString &term); + void findTermThesaurus(const TQString &term); + void findTermWordnet(const TQString &term); + TQString formatLine(TQString l); /** * Sort a list case insensitively. * Be careful: @p list is modified * TODO: use ksortablevaluelist? */ - QStringList sortQStringList(QStringList list); + TQStringList sortTQStringList(TQStringList list); void setCaption(); - QString m_no_match; + TQString m_no_match; int m_history_pos; @@ -117,47 +118,47 @@ protected: KConfig *m_config; KProcess *m_thesproc; - QString m_thesproc_stdout; - QString m_thesproc_stderr; + TQString m_thesproc_stdout; + TQString m_thesproc_stderr; KProcess *m_wnproc; - QString m_wnproc_stdout; - QString m_wnproc_stderr; + TQString m_wnproc_stdout; + TQString m_wnproc_stderr; Mode m_mode; - QFrame *m_page; - QVBoxLayout *m_top_layout; + TQFrame *m_page; + TQVBoxLayout *m_top_layout; KDialogBase *m_dialog; - QTabWidget *m_tab; - QVBox *vbox; - QVBox *vbox2; + TQTabWidget *m_tab; + TQVBox *vbox; + TQVBox *vbox2; - QToolButton *m_back; - QToolButton *m_forward; + TQToolButton *m_back; + TQToolButton *m_forward; KPushButton *m_lang; KPushButton *m_search; KHistoryCombo *m_edit; - QLabel *m_edit_label; + TQLabel *m_edit_label; - QLabel *m_replace_label; - KLineEdit *m_replace; + TQLabel *m_replace_label; + KLineEdit *m_tqreplace; - QString m_data_file; + TQString m_data_file; // WordNet: - QTextBrowser *m_resultbox; - QComboBox *m_combobox; + TQTextBrowser *m_resultbox; + TQComboBox *m_combobox; // Thesaurus: - QGroupBox *grpbox_syn; - QListBox *m_thes_syn; - QGroupBox *grpbox_hyper; - QListBox *m_thes_hyper; - QGroupBox *grpbox_hypo; - QListBox *m_thes_hypo; + TQGroupBox *grpbox_syn; + TQListBox *m_thes_syn; + TQGroupBox *grpbox_hyper; + TQListBox *m_thes_hyper; + TQGroupBox *grpbox_hypo; + TQListBox *m_thes_hypo; }; #endif |