diff options
Diffstat (limited to 'lib/kotext/KoSearchDia.h')
-rw-r--r-- | lib/kotext/KoSearchDia.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/kotext/KoSearchDia.h b/lib/kotext/KoSearchDia.h index 56570f4d..49eb75d1 100644 --- a/lib/kotext/KoSearchDia.h +++ b/lib/kotext/KoSearchDia.h @@ -128,7 +128,7 @@ class KOTEXT_EXPORT KoSearchDia: TQ_OBJECT public: - KoSearchDia( TQWidget *tqparent, const char *name, KoSearchContext *tqfind, bool hasSelection, bool hasCursor ); + KoSearchDia( TQWidget *tqparent, const char *name, KoSearchContext *find, bool hasSelection, bool hasCursor ); KoSearchContext * searchContext() { return m_findUI->context(); } @@ -152,7 +152,7 @@ class KOTEXT_EXPORT KoReplaceDia: public: - KoReplaceDia( TQWidget *tqparent, const char *name, KoSearchContext *tqfind, KoSearchContext *tqreplace, bool hasSelection, bool hasCursor ); + KoReplaceDia( TQWidget *tqparent, const char *name, KoSearchContext *find, KoSearchContext *replace, bool hasSelection, bool hasCursor ); KoSearchContext * searchContext() { return m_findUI->context(); } @@ -201,8 +201,8 @@ private: }; /** - * This class implements the 'tqfind' functionality ( the "search next, prompt" loop ) - * and the 'tqreplace' functionality. Same class, to allow centralizing the findNext() code. + * This class implements the 'find' functionality ( the "search next, prompt" loop ) + * and the 'replace' functionality. Same class, to allow centralizing the findNext() code. */ class KOTEXT_EXPORT KoFindReplace : public TQObject { @@ -217,7 +217,7 @@ public: return m_textIterator.currentParag(); } - bool isReplace() const { return m_tqreplace != 0L; } + bool isReplace() const { return m_replace != 0L; } bool shouldRestart(); @@ -252,10 +252,10 @@ protected: long options() const; void setOptions(long opt); void removeHighlight(); - bool needData() const { return m_tqfind ? m_tqfind->needData() : m_tqreplace->needData(); } + bool needData() const { return m_find ? m_find->needData() : m_replace->needData(); } void setData( const TQString& data, int startPos = -1 ) { - if ( m_tqfind ) m_tqfind->setData( data, startPos ); - else m_tqreplace->setData( data, startPos ); + if ( m_find ) m_find->setData( data, startPos ); + else m_replace->setData( data, startPos ); } protected slots: @@ -263,15 +263,15 @@ protected slots: void optionsChanged(); void dialogClosed(); void highlight( const TQString &text, int matchingIndex, int matchingLength ); - void tqreplace( const TQString &text, int replacementIndex, int replacedLength, int searchLength ); + void replace( const TQString &text, int replacementIndex, int replacedLength, int searchLength ); void slotCurrentParagraphModified( int, int, int ); private: - void connectFind( KFind* tqfind ); + void connectFind( KFind* find ); // Only one of those two will be set - KoTextFind * m_tqfind; - KoTextReplace * m_tqreplace; + KoTextFind * m_find; + KoTextReplace * m_replace; KoSearchContext m_searchContext; KoSearchContext m_replaceContext; @@ -282,7 +282,7 @@ private: KMacroCommand *m_macroCmd; int m_offset; - int m_matchingIndex; // can be removed once we use kde-3.2 (for ktqfind::index()) + int m_matchingIndex; // can be removed once we use kde-3.2 (for kfind::index()) KoTextIterator m_textIterator; |