diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | da4be7880ff1de6415ab6256afd2514e64f5fa2e (patch) | |
tree | 0862c14883af0435b012f6f592221fc167ed7d91 /kpovmodeler/pminsertrulesystem.cpp | |
parent | d0a269b9b0361bf71c5dd5787be0839f9dcace8c (diff) | |
download | tdegraphics-da4be7880ff1de6415ab6256afd2514e64f5fa2e.tar.gz tdegraphics-da4be7880ff1de6415ab6256afd2514e64f5fa2e.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpovmodeler/pminsertrulesystem.cpp')
-rw-r--r-- | kpovmodeler/pminsertrulesystem.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kpovmodeler/pminsertrulesystem.cpp b/kpovmodeler/pminsertrulesystem.cpp index 1090837f..0cd2a4d0 100644 --- a/kpovmodeler/pminsertrulesystem.cpp +++ b/kpovmodeler/pminsertrulesystem.cpp @@ -136,7 +136,7 @@ bool isCondition( TQDomElement& e ) { return( e.tagName( ) == "not" || e.tagName( ) == "and" || e.tagName( ) == "or" || e.tagName( ) == "before" || - e.tagName( ) == "after" || e.tagName( ) == "tqcontains" || + e.tagName( ) == "after" || e.tagName( ) == "contains" || e.tagName( ) == "greater" || e.tagName( ) == "less" || e.tagName( ) == "equal" ); } @@ -168,7 +168,7 @@ PMRuleCondition* newCondition( TQDomElement& e, return new PMRuleBefore( e, globalGroups, localGroups ); if( e.tagName( ) == "after" ) return new PMRuleAfter( e, globalGroups, localGroups ); - if( e.tagName( ) == "tqcontains" ) + if( e.tagName( ) == "contains" ) return new PMRuleContains( e, globalGroups, localGroups ); if( e.tagName( ) == "greater" ) return new PMRuleGreater( e, globalGroups, localGroups ); @@ -383,7 +383,7 @@ PMRuleBefore::PMRuleBefore( TQDomElement& e, TQPtrList<PMRuleDefineGroup>& localGroups ) : PMRuleCondition( ) { - m_tqcontains = false; + m_contains = false; TQDomNode m = e.firstChild( ); while( !m.isNull( ) ) { @@ -405,23 +405,23 @@ PMRuleBefore::~PMRuleBefore( ) bool PMRuleBefore::evaluate( const PMObject* ) { - return m_tqcontains; + return m_contains; } void PMRuleBefore::countChildProtected( const TQString& className, bool afterInsertPoint ) { - if( afterInsertPoint && !m_tqcontains ) + if( afterInsertPoint && !m_contains ) { TQPtrListIterator<PMRuleCategory> it( m_categories ); - for( ; it.current( ) && !m_tqcontains; ++it ) - m_tqcontains = it.current( )->matches( className ); + for( ; it.current( ) && !m_contains; ++it ) + m_contains = it.current( )->matches( className ); } } void PMRuleBefore::resetProtected( ) { - m_tqcontains = false; + m_contains = false; } PMRuleAfter::PMRuleAfter( TQDomElement& e, @@ -429,7 +429,7 @@ PMRuleAfter::PMRuleAfter( TQDomElement& e, TQPtrList<PMRuleDefineGroup>& localGroups ) : PMRuleCondition( ) { - m_tqcontains = false; + m_contains = false; TQDomNode m = e.firstChild( ); while( !m.isNull( ) ) { @@ -451,23 +451,23 @@ PMRuleAfter::~PMRuleAfter( ) bool PMRuleAfter::evaluate( const PMObject* ) { - return m_tqcontains; + return m_contains; } void PMRuleAfter::countChildProtected( const TQString& className, bool afterInsertPoint ) { - if( !afterInsertPoint && !m_tqcontains ) + if( !afterInsertPoint && !m_contains ) { TQPtrListIterator<PMRuleCategory> it( m_categories ); - for( ; it.current( ) && !m_tqcontains; ++it ) - m_tqcontains = it.current( )->matches( className ); + for( ; it.current( ) && !m_contains; ++it ) + m_contains = it.current( )->matches( className ); } } void PMRuleAfter::resetProtected( ) { - m_tqcontains = false; + m_contains = false; } PMRuleContains::PMRuleContains( TQDomElement& e, @@ -475,7 +475,7 @@ PMRuleContains::PMRuleContains( TQDomElement& e, TQPtrList<PMRuleDefineGroup>& localGroups ) : PMRuleCondition( ) { - m_tqcontains = false; + m_contains = false; TQDomNode m = e.firstChild( ); while( !m.isNull( ) ) { @@ -497,22 +497,22 @@ PMRuleContains::~PMRuleContains( ) bool PMRuleContains::evaluate( const PMObject* ) { - return m_tqcontains; + return m_contains; } void PMRuleContains::countChildProtected( const TQString& className, bool ) { - if( !m_tqcontains ) + if( !m_contains ) { TQPtrListIterator<PMRuleCategory> it( m_categories ); - for( ; it.current( ) && !m_tqcontains; ++it ) - m_tqcontains = it.current( )->matches( className ); + for( ; it.current( ) && !m_contains; ++it ) + m_contains = it.current( )->matches( className ); } } void PMRuleContains::resetProtected( ) { - m_tqcontains = false; + m_contains = false; } PMRuleCompare::PMRuleCompare( TQDomElement& e, @@ -829,7 +829,7 @@ PMInsertRuleSystem::~PMInsertRuleSystem( ) void PMInsertRuleSystem::loadRules( const TQString& fileName ) { PMRuleClass::s_pPrototypeManager = m_pPart->prototypeManager( ); - if( m_loadedFiles.tqfind( fileName ) != m_loadedFiles.end( ) ) + if( m_loadedFiles.find( fileName ) != m_loadedFiles.end( ) ) return; m_loadedFiles.push_back( fileName ); @@ -877,7 +877,7 @@ void PMInsertRuleSystem::loadRules( const TQString& fileName ) PMRuleTargetClass* target = 0; if( !m_rulesDict.isEmpty( ) ) - target = m_rulesDict.tqfind( className ); + target = m_rulesDict.find( className ); if( target ) target->appendRules( ce, m_groups ); @@ -908,7 +908,7 @@ bool PMInsertRuleSystem::canInsert( const PMObject* parentObject, PMMetaObject* meta = parentObject->tqmetaObject( ); for( ; meta && !possible; meta = meta->superClass( ) ) { - PMRuleTargetClass* tc = m_rulesDict.tqfind( meta->className( ) ); + PMRuleTargetClass* tc = m_rulesDict.find( meta->className( ) ); if( tc ) { // check the exception list @@ -999,7 +999,7 @@ int PMInsertRuleSystem::canInsert( const PMObject* parentObject, PMMetaObject* meta = parentObject->tqmetaObject( ); for( ; meta; meta = meta->superClass( ) ) { - PMRuleTargetClass* tc = m_rulesDict.tqfind( meta->className( ) ); + PMRuleTargetClass* tc = m_rulesDict.find( meta->className( ) ); if( tc ) targetClassList.append( tc ); } |