summaryrefslogtreecommitdiffstats
path: root/lib/kotext/KoSearchDia.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commitb6edfe41c9395f2e20784cbf0e630af6426950a3 (patch)
tree56ed9b871d4296e6c15949c24e16420be1b28697 /lib/kotext/KoSearchDia.h
parentef39e8e4178a8f98cf5f154916ba0f03e4855206 (diff)
downloadkoffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.tar.gz
koffice-b6edfe41c9395f2e20784cbf0e630af6426950a3.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kotext/KoSearchDia.h')
-rw-r--r--lib/kotext/KoSearchDia.h26
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;