diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 04766b207afba7961d4d802313e426f5a2fbef63 (patch) | |
tree | c888ea1027c793e2d0386a7e5a1a0cd077b03cb3 /lib/kformula/numberelement.cc | |
parent | b6edfe41c9395f2e20784cbf0e630af6426950a3 (diff) | |
download | koffice-04766b207afba7961d4d802313e426f5a2fbef63.tar.gz koffice-04766b207afba7961d4d802313e426f5a2fbef63.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/kformula/numberelement.cc')
-rw-r--r-- | lib/kformula/numberelement.cc | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/lib/kformula/numberelement.cc b/lib/kformula/numberelement.cc index 4532d259..41ddc179 100644 --- a/lib/kformula/numberelement.cc +++ b/lib/kformula/numberelement.cc @@ -31,13 +31,13 @@ KFORMULA_NAMESPACE_BEGIN -NumberElement::NumberElement( BasicElement* tqparent ) : TokenElement( tqparent ) {} +NumberElement::NumberElement( BasicElement* parent ) : TokenElement( parent ) {} /* * Token elements' content has to be of homogeneous type. Every token element * must (TODO: check this) appear inside a non-token sequence, and thus, if * the command asks for a different content, a new element has to be created in - * tqparent sequence. + * parent sequence. */ KCommand* NumberElement::buildCommand( Container* container, Request* request ) { @@ -56,21 +56,21 @@ KCommand* NumberElement::buildCommand( Container* container, Request* request ) } if ( countChildren() == 0 || cursor->getPos() == countChildren() ) { - // We are in the last position, so it's easy, call the tqparent to + // We are in the last position, so it's easy, call the parent to // create a new child - SequenceElement* tqparent = static_cast<SequenceElement*>( getParent() ); - if ( tqparent ) { - uint pos = tqparent->childPos( this ); - cursor->setTo( tqparent, pos + 1); - return tqparent->buildCommand( container, request ); + SequenceElement* parent = static_cast<SequenceElement*>( getParent() ); + if ( parent ) { + uint pos = parent->childPos( this ); + cursor->setTo( parent, pos + 1); + return parent->buildCommand( container, request ); } } if ( cursor->getPos() == 0 ) { - SequenceElement* tqparent = static_cast<SequenceElement*>( getParent() ); - if ( tqparent ) { - uint pos = tqparent->childPos( this ); - cursor->setTo( tqparent, pos ); - return tqparent->buildCommand( container, request ); + SequenceElement* parent = static_cast<SequenceElement*>( getParent() ); + if ( parent ) { + uint pos = parent->childPos( this ); + cursor->setTo( parent, pos ); + return parent->buildCommand( container, request ); } } @@ -78,7 +78,7 @@ KCommand* NumberElement::buildCommand( Container* container, Request* request ) // a) Cut from mark to the end // b) Create a new token and add an element from key pressed // c) Create a new token and add elements cut previously - // d) Move cursor to tqparent so that it command execution works fine + // d) Move cursor to parent so that it command execution works fine switch( *request ) { case req_addTextChar: { @@ -89,9 +89,9 @@ KCommand* NumberElement::buildCommand( Container* container, Request* request ) command->addCursor( cursor ); command->addToken( id ); command->addContent( id, text ); - SequenceElement* tqparent = static_cast< SequenceElement* >( getParent() ); - if ( tqparent ) { - cursor->setTo( tqparent, tqparent->childPos( this ) + 1 ); + SequenceElement* parent = static_cast< SequenceElement* >( getParent() ); + if ( parent ) { + cursor->setTo( parent, parent->childPos( this ) + 1 ); } return command; } @@ -106,9 +106,9 @@ KCommand* NumberElement::buildCommand( Container* container, Request* request ) TextElement* text = creationStrategy->createTextElement( tr->text()[i] ); command->addContent( id, text ); } - SequenceElement* tqparent = static_cast< SequenceElement* >( getParent() ); - if ( tqparent ) { - cursor->setTo( tqparent, tqparent->childPos( this ) + 1 ); + SequenceElement* parent = static_cast< SequenceElement* >( getParent() ); + if ( parent ) { + cursor->setTo( parent, parent->childPos( this ) + 1 ); } return command; } @@ -121,9 +121,9 @@ KCommand* NumberElement::buildCommand( Container* container, Request* request ) command->addCursor( cursor ); command->addToken( op ); command->addContent( op, text ); - SequenceElement* tqparent = static_cast< SequenceElement* >( getParent() ); - if ( tqparent ) { - cursor->setTo( tqparent, tqparent->childPos( this ) + 1 ); + SequenceElement* parent = static_cast< SequenceElement* >( getParent() ); + if ( parent ) { + cursor->setTo( parent, parent->childPos( this ) + 1 ); } return command; } @@ -136,11 +136,11 @@ KCommand* NumberElement::buildCommand( Container* container, Request* request ) case req_addSymbol: case req_addOneByTwoMatrix: case req_addMatrix: { - SequenceElement* tqparent = static_cast<SequenceElement*>( getParent() ); - if ( tqparent ) { - uint pos = tqparent->childPos( this ); - cursor->setTo( tqparent, pos + 1); - return tqparent->buildCommand( container, request ); + SequenceElement* parent = static_cast<SequenceElement*>( getParent() ); + if ( parent ) { + uint pos = parent->childPos( this ); + cursor->setTo( parent, pos + 1); + return parent->buildCommand( container, request ); } } default: |