diff options
Diffstat (limited to 'parts/abbrev/abbrevpart.h')
-rw-r--r-- | parts/abbrev/abbrevpart.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/parts/abbrev/abbrevpart.h b/parts/abbrev/abbrevpart.h index f0029b51..d1c1bc7c 100644 --- a/parts/abbrev/abbrevpart.h +++ b/parts/abbrev/abbrevpart.h @@ -16,8 +16,8 @@ #ifndef _ABBREVPART_H_ #define _ABBREVPART_H_ -#include <qmap.h> -#include <qptrlist.h> +#include <tqmap.h> +#include <tqptrlist.h> #include "kdevplugin.h" #include <ktexteditor/codecompletioninterface.h> @@ -35,10 +35,10 @@ namespace KTextEditor{ } struct CodeTemplate { - QString name; - QString description; - QString code; - QString suffixes; + TQString name; + TQString description; + TQString code; + TQString suffixes; }; class CodeTemplateList { @@ -46,18 +46,18 @@ public: CodeTemplateList(); ~CodeTemplateList(); - QMap<QString, CodeTemplate* > operator[](QString suffix); - void insert(QString name, QString description, QString code, QString suffixes); - void remove(const QString &suffixes, const QString &name); + TQMap<TQString, CodeTemplate* > operator[](TQString suffix); + void insert(TQString name, TQString description, TQString code, TQString suffixes); + void remove(const TQString &suffixes, const TQString &name); void clear(); - QStringList suffixes(); + TQStringList suffixes(); - QPtrList<CodeTemplate> allTemplates() const; + TQPtrList<CodeTemplate> allTemplates() const; private: - QMap<QString, QMap<QString, CodeTemplate* > > templates; - QPtrList<CodeTemplate> allCodeTemplates; - QStringList m_suffixes; + TQMap<TQString, TQMap<TQString, CodeTemplate* > > templates; + TQPtrList<CodeTemplate> allCodeTemplates; + TQStringList m_suffixes; }; class AbbrevPart : public KDevPlugin @@ -65,15 +65,15 @@ class AbbrevPart : public KDevPlugin Q_OBJECT public: - AbbrevPart( QObject *parent, const char *name, const QStringList & ); + AbbrevPart( TQObject *parent, const char *name, const TQStringList & ); ~AbbrevPart(); bool autoWordCompletionEnabled() const; void setAutoWordCompletionEnabled( bool enabled ); - void addTemplate(const QString &templ, const QString &descr, - const QString &suffixes, const QString &code); - void removeTemplate(const QString &suffixes, const QString &name); + void addTemplate(const TQString &templ, const TQString &descr, + const TQString &suffixes, const TQString &code); + void removeTemplate(const TQString &suffixes, const TQString &name); void clearTemplates(); CodeTemplateList templates() const; @@ -85,24 +85,24 @@ private slots: void slotTextChanged(); void slotCompletionAborted(); void slotCompletionDone(); - void slotFilterInsertString( KTextEditor::CompletionEntry*, QString* ); + void slotFilterInsertString( KTextEditor::CompletionEntry*, TQString* ); void slotAboutToShowCompletionBox(); private: void updateActions(); void load(); void save(); - QString currentWord() const; - QValueList<KTextEditor::CompletionEntry> findAllWords(const QString &text, const QString &prefix); - void insertChars( const QString &chars ); -// QAsciiDict<CodeTemplate> m_templates; + TQString currentWord() const; + TQValueList<KTextEditor::CompletionEntry> findAllWords(const TQString &text, const TQString &prefix); + void insertChars( const TQString &chars ); +// TQAsciiDict<CodeTemplate> m_templates; CodeTemplateList m_templates; bool m_inCompletion; int m_prevLine; int m_prevColumn; int m_sequenceLength; bool m_autoWordCompletionEnabled; - QString m_completionFile; + TQString m_completionFile; KTextEditor::Document* docIface; KTextEditor::EditInterface* editIface; |