diff options
Diffstat (limited to 'kbabel/kbabeldict/kbabeldictbox.h')
-rw-r--r-- | kbabel/kbabeldict/kbabeldictbox.h | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/kbabel/kbabeldict/kbabeldictbox.h b/kbabel/kbabeldict/kbabeldictbox.h index 8168786e..2c3992f1 100644 --- a/kbabel/kbabeldict/kbabeldictbox.h +++ b/kbabel/kbabeldict/kbabeldictbox.h @@ -37,10 +37,10 @@ #include "searchengine.h" #include "catalog.h" -#include <qdict.h> -#include <qguardedptr.h> -#include <qptrlist.h> -#include <qstringlist.h> +#include <tqdict.h> +#include <tqguardedptr.h> +#include <tqptrlist.h> +#include <tqstringlist.h> class KListView; class QLabel; @@ -53,36 +53,36 @@ class QToolButton; struct ModuleInfo { - QString id; - QString name; + TQString id; + TQString name; bool editable; }; -class KDE_EXPORT KBabelDictBox : public QWidget, virtual public KBabelDictIFace +class KDE_EXPORT KBabelDictBox : public TQWidget, virtual public KBabelDictIFace { Q_OBJECT public: - KBabelDictBox( QWidget* parent = 0, const char* name = 0 + KBabelDictBox( TQWidget* parent = 0, const char* name = 0 , WFlags fl = 0 ); ~KBabelDictBox(); /** @returns ids of available modules */ - virtual QStringList modules(); + virtual TQStringList modules(); /** @returns (translated) names of available modules */ - QStringList moduleNames(); + TQStringList moduleNames(); /** * @returns a list with information about the available modules * Take care about, that you have to delete the items by yourself. */ - QPtrList<ModuleInfo> moduleInfos(); + TQPtrList<ModuleInfo> moduleInfos(); /** @returns preferencesWidgets of modules */ - QPtrList<PrefWidget> modPrefWidgets(QWidget* parent); + TQPtrList<PrefWidget> modPrefWidgets(TQWidget* parent); int activeModule(); bool activeModuleEditable(); @@ -95,15 +95,15 @@ public: void nextResult(); void prevResult(); - void startSearch(const QString); - void startTranslationSearch(const QString); - void startDelayedSearch(const QString); - void startDelayedTranslationSearch(const QString); - QString translate(const QString); - QString searchTranslation(const QString, int& score); - QString fuzzyTranslation(const QString, int& score); + void startSearch(const TQString); + void startTranslationSearch(const TQString); + void startDelayedSearch(const TQString); + void startDelayedTranslationSearch(const TQString); + TQString translate(const TQString); + TQString searchTranslation(const TQString, int& score); + TQString fuzzyTranslation(const TQString, int& score); void stopSearch(); - void setActiveModule(QString name); + void setActiveModule(TQString name); /** * @returns true, if a search is active at the moment @@ -120,7 +120,7 @@ public: * Saves the settings of the given module * in the given config object. */ - void saveSettings(const QString& moduleId, KConfigBase *config); + void saveSettings(const TQString& moduleId, KConfigBase *config); /** * Reads the settings including the settings of the different modules @@ -132,20 +132,20 @@ public: * Reads the settings of the given module * from the given config object. */ - void readSettings(const QString& moduleId, KConfigBase *config); + void readSettings(const TQString& moduleId, KConfigBase *config); /** @returns the translation of the current search result */ - QString translation(); + TQString translation(); bool hasSelectedText() const; - QString selectedText() const; + TQString selectedText() const; - void setRMBMenu(QPopupMenu *popup); + void setRMBMenu(TQPopupMenu *popup); - virtual bool eventFilter(QObject *, QEvent*); + virtual bool eventFilter(TQObject *, TQEvent*); /** @@ -153,37 +153,37 @@ public: * from dbsearchengine. When dbsearchengine allows multiple access to * the database this will get removed. */ - bool messagesForPackage(const QString& package - , QValueList<KBabel::DiffEntry>& resultList, QString& error); + bool messagesForPackage(const TQString& package + , TQValueList<KBabel::DiffEntry>& resultList, TQString& error); public slots: virtual void setActiveModule(int); - void slotStartSearch(const QString&); + void slotStartSearch(const TQString&); void slotStopSearch(); void slotNextResult(); void slotPrevResult(); void about(); - void aboutModule(const QString& moduleID); + void aboutModule(const TQString& moduleID); void aboutActiveModule(); /** * sets the name of the package currently edited */ - void setEditedPackage(const QString& packageName); + void setEditedPackage(const TQString& packageName); /** * sets the filepath of the package currently edited */ - void setEditedFile(const QString& path); + void setEditedFile(const TQString& path); /** sets the language code to use */ - void setLanguage(const QString& languageCode - , const QString& languageName); + void setLanguage(const TQString& languageCode + , const TQString& languageName); - void setTextChanged(const QStringList& orig, const QString& translation, - uint pluralForm, const QString& description); + void setTextChanged(const TQStringList& orig, const TQString& translation, + uint pluralForm, const TQString& description); /** * if text is marked, copy this into the clipboard, otherwise @@ -191,8 +191,8 @@ public slots: */ void copy(); - void configure(const QString& moduleID, bool modal=false); - void edit(const QString& moduleID); + void configure(const TQString& moduleID, bool modal=false); + void edit(const TQString& moduleID); void edit(); void clear(); @@ -202,11 +202,11 @@ signals: void searchStarted(); void searchStopped(); void progressed(int); - void progressStarts(const QString&); + void progressStarts(const TQString&); void progressEnds(); void activeModuleChanged(int); void activeModuleChanged(bool editable); - void errorInModule(const QString& error); + void errorInModule(const TQString& error); /** * emitted when either the order @@ -215,14 +215,14 @@ signals: void modulesChanged(); protected slots: - void showResult(QListViewItem*); + void showResult(TQListViewItem*); void addResult(const SearchResult*); void nextInfo(); void showDetailsOnly(); void showListOnly(); void clearModuleResults(); void editFile(); - void showContextMenu(KListView *, QListViewItem *, const QPoint&); + void showContextMenu(KListView *, TQListViewItem *, const TQPoint&); /** * This slots gets connected to a SearchEngine's searchStopped() signal, @@ -239,7 +239,7 @@ protected slots: void destroyConfigDialog(); protected: - virtual void wheelEvent(QWheelEvent*); + virtual void wheelEvent(TQWheelEvent*); private: /** @@ -247,36 +247,36 @@ private: */ void registerModule( SearchEngine* module); - QPtrList<SearchEngine> moduleList; + TQPtrList<SearchEngine> moduleList; int active; int currentResult; int currentInfo; int total; /** stores a string to be used with delayed search */ - QString searchText; - - QDict<QWidget> prefDialogs; - - QLabel *translatorLabel; - QLabel *locationLabel; - QLabel *totalResultsLabel; - QLabel *currentLabel; - QLabel *dateLabel; - QPushButton *moreButton; - QPushButton *nextButton; - QPushButton *prevButton; - QTextView *origView; - QTextView *translationView; - QSplitter *viewContainer; + TQString searchText; + + TQDict<TQWidget> prefDialogs; + + TQLabel *translatorLabel; + TQLabel *locationLabel; + TQLabel *totalResultsLabel; + TQLabel *currentLabel; + TQLabel *dateLabel; + TQPushButton *moreButton; + TQPushButton *nextButton; + TQPushButton *prevButton; + TQTextView *origView; + TQTextView *translationView; + TQSplitter *viewContainer; KListView *resultListView; - QSplitter *resultSplitter; + TQSplitter *resultSplitter; - QToolButton *listButton; - QToolButton *detailButton; + TQToolButton *listButton; + TQToolButton *detailButton; int editFileIndex; - QGuardedPtr<QPopupMenu> rmbPopup; + TQGuardedPtr<TQPopupMenu> rmbPopup; }; #endif // KBABELDICTBOX_H |