diff options
author | Timothy Pearson <[email protected]> | 2011-12-15 15:32:11 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-15 15:32:11 -0600 |
commit | 94844816550ad672ccfcdc25659c625546239998 (patch) | |
tree | e35fc60fd736c645d59f6408af032774ad8023d3 /kpresenter/KPrCommand.cpp | |
parent | 2a811c38c74c03648ecf857e566c44483cbad706 (diff) | |
download | koffice-94844816550ad672ccfcdc25659c625546239998.tar.gz koffice-94844816550ad672ccfcdc25659c625546239998.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kpresenter/KPrCommand.cpp')
-rw-r--r-- | kpresenter/KPrCommand.cpp | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/kpresenter/KPrCommand.cpp b/kpresenter/KPrCommand.cpp index 5236aaf6..5f88381d 100644 --- a/kpresenter/KPrCommand.cpp +++ b/kpresenter/KPrCommand.cpp @@ -94,7 +94,7 @@ void KPrShadowCmd::execute() it.current()->setShadowParameter(newShadow.shadowDistance, newShadow.shadowDirection, newShadow.shadowColor); - doc->tqrepaint( false ); + doc->repaint( false ); doc->updateSideBarItem( m_page ); } @@ -105,7 +105,7 @@ void KPrShadowCmd::unexecute() objects.at( i )->setShadowParameter(oldShadow.at(i)->shadowDistance, oldShadow.at(i)->shadowDirection, oldShadow.at(i)->shadowColor); - doc->tqrepaint( false ); + doc->repaint( false ); doc->updateSideBarItem( m_page ); } @@ -145,7 +145,7 @@ void KPrSetOptionsCmd::execute() doc->setGridValue( gridX, gridY, false ); doc->updateRuler(); doc->setTxtBackCol( txtBackCol ); - doc->tqrepaint( false ); + doc->repaint( false ); } void KPrSetOptionsCmd::unexecute() @@ -155,7 +155,7 @@ void KPrSetOptionsCmd::unexecute() doc->setGridValue( oldGridX, oldGridY, false ); doc->updateRuler(); doc->setTxtBackCol( otxtBackCol ); - doc->tqrepaint( false ); + doc->repaint( false ); } KPrSetBackCmd::KPrSetBackCmd( const TQString &name, const KPrBackGround::Settings &settings, @@ -189,7 +189,7 @@ void KPrSetBackCmd::execute() } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); if ( m_takeGlobal ) { TQPtrListIterator<KPrPage> it( m_doc->getPageList() ); @@ -217,7 +217,7 @@ void KPrSetBackCmd::unexecute() m_doc->restoreBackground(it.current()); } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); if ( m_takeGlobal ) { TQPtrListIterator<KPrPage> it( m_doc->getPageList() ); @@ -272,7 +272,7 @@ void KPrRotateCmd::execute() it.current()->rotate( m_newAngle ); } m_doc->updateRuler(); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -282,7 +282,7 @@ void KPrRotateCmd::unexecute() for ( unsigned int i = 0; i < m_objects.count(); i++ ) m_objects.at(i)->rotate( m_oldAngles.at( i )->angle ); m_doc->updateRuler(); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -311,7 +311,7 @@ KPrChgPixCmd::~KPrChgPixCmd() void KPrChgPixCmd::execute() { m_page->replaceObject( oldObject, newObject ); - doc->tqrepaint( newObject ); + doc->repaint( newObject ); doc->updateSideBarItem( m_page ); } @@ -319,7 +319,7 @@ void KPrChgPixCmd::execute() void KPrChgPixCmd::unexecute() { m_page->replaceObject( newObject, oldObject ); - doc->tqrepaint( oldObject ); + doc->repaint( oldObject ); doc->updateSideBarItem( m_page ); } @@ -378,7 +378,7 @@ void KPrDeleteCmd::execute() for ( itDelete.toFirst(); itDelete.current(); ++itDelete ) { TQRect oldRect = m_doc->zoomHandler()->zoomRect( itDelete.current()->getRepaintRect() ); - m_doc->tqrepaint( oldRect ); + m_doc->repaint( oldRect ); } if(textObj) m_doc->updateRuler(); @@ -393,7 +393,7 @@ void KPrDeleteCmd::unexecute() for ( ; it.current(); ++it ) { it.current()->addToObjList(); - m_doc->tqrepaint( it.current() ); + m_doc->repaint( it.current() ); } m_doc->updateSideBarItem( m_page ); @@ -501,7 +501,7 @@ void KPrGroupObjCmd::execute() m_groupObject->setSelected( true ); m_doc->refreshGroupButton(); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -522,7 +522,7 @@ void KPrGroupObjCmd::unexecute() m_doc->refreshGroupButton(); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -561,7 +561,7 @@ void UnGroupObjCmd::execute() m_doc->refreshGroupButton(); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -587,7 +587,7 @@ void UnGroupObjCmd::unexecute() m_groupObject->setSelected( true ); m_doc->refreshGroupButton(); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -641,7 +641,7 @@ void KPrInsertCmd::execute() m_object->addToObjList(); if ( m_object->getType() == OT_TEXT ) m_doc->updateRuler(); - m_doc->tqrepaint( m_object ); + m_doc->repaint( m_object ); } else { @@ -653,7 +653,7 @@ void KPrInsertCmd::execute() ( *it )->addToObjList(); if ( ( *it )->getType() == OT_TEXT ) updateRuler = true; - m_doc->tqrepaint( *it ); + m_doc->repaint( *it ); } if ( updateRuler ) m_doc->updateRuler(); @@ -678,7 +678,7 @@ void KPrInsertCmd::unexecute() m_doc->updateRuler(); } } - m_doc->tqrepaint( oldRect ); + m_doc->repaint( oldRect ); } else { @@ -703,7 +703,7 @@ void KPrInsertCmd::unexecute() if ( updateRuler ) m_doc->updateRuler(); - m_doc->tqrepaint( false ); + m_doc->repaint( false ); } m_doc->updateSideBarItem( m_page ); @@ -736,7 +736,7 @@ KPrLowerRaiseCmd::~KPrLowerRaiseCmd() void KPrLowerRaiseCmd::execute() { m_page->setObjectList( newList ); - doc->tqrepaint( false ); + doc->repaint( false ); doc->updateSideBarItem( m_page ); } @@ -744,7 +744,7 @@ void KPrLowerRaiseCmd::execute() void KPrLowerRaiseCmd::unexecute() { m_page->setObjectList( oldList ); - doc->tqrepaint( false ); + doc->repaint( false ); doc->updateSideBarItem( m_page ); } @@ -783,8 +783,8 @@ void KPrMoveByCmd::execute() if(objects.at(i)->isSelected()) doc->updateRuler(); } - doc->tqrepaint( oldRect ); - doc->tqrepaint( objects.at( i ) ); + doc->repaint( oldRect ); + doc->repaint( objects.at( i ) ); } doc->updateSideBarItem( m_page ); @@ -803,8 +803,8 @@ void KPrMoveByCmd::unexecute() if(objects.at(i)->isSelected()) doc->updateRuler(); } - doc->tqrepaint( oldRect ); - doc->tqrepaint( objects.at( i ) ); + doc->repaint( oldRect ); + doc->repaint( objects.at( i ) ); } doc->updateSideBarItem( m_page ); @@ -888,8 +888,8 @@ void KPrAlignCmd::execute() doc->updateRuler(); } - doc->tqrepaint( oldRect ); - doc->tqrepaint( objects.at( i ) ); + doc->repaint( oldRect ); + doc->repaint( objects.at( i ) ); } doc->updateSideBarItem( m_page ); @@ -907,8 +907,8 @@ void KPrAlignCmd::unexecute() if(objects.at(i)->isSelected()) doc->updateRuler(); } - doc->tqrepaint( oldRect ); - doc->tqrepaint( objects.at( i ) ); + doc->repaint( oldRect ); + doc->repaint( objects.at( i ) ); doc->updateRuler(); } @@ -976,7 +976,7 @@ void KoPenCmd::applyPen( KPrObject *object, Pen *tmpPen ) //obj->setPen( tmpPen->pen ); obj->setLineBegin( tmpPen->lineBegin ); obj->setLineEnd( tmpPen->lineEnd ); - //doc->tqrepaint( obj ); + //doc->repaint( obj ); } } break; case OT_FREEHAND: @@ -990,7 +990,7 @@ void KoPenCmd::applyPen( KPrObject *object, Pen *tmpPen ) //obj->setPen( tmpPen->pen ); obj->setLineBegin( tmpPen->lineBegin ); obj->setLineEnd( tmpPen->lineEnd ); - //doc->tqrepaint( obj ); + //doc->repaint( obj ); } } break; case OT_PIE: @@ -1019,7 +1019,7 @@ void KoPenCmd::applyPen( KPrObject *object, Pen *tmpPen ) if ( obj ) { obj->setPen( tmpPen->pen ); - doc->tqrepaint( obj ); + doc->repaint( obj ); } } @@ -1220,7 +1220,7 @@ void KPrBrushCmd::applyBrush( KPr2DObject *object, Brush *tmpBrush ) object->setGUnbalanced( tmpBrush->unbalanced ); object->setGXFactor( tmpBrush->xfactor ); object->setGYFactor( tmpBrush->yfactor ); - doc->tqrepaint( object ); + doc->repaint( object ); } void KPrBrushCmd::unexecute() @@ -1345,7 +1345,7 @@ KPrPgLayoutCmd::KPrPgLayoutCmd( const TQString &_name, KoPageLayout _layout, KoP : KNamedCommand( _name ) { m_doc=_doc; - tqlayout = _layout; + layout = _layout; oldLayout = _oldLayout; oldUnit = _oldUnit; unit = _unit; @@ -1354,7 +1354,7 @@ KPrPgLayoutCmd::KPrPgLayoutCmd( const TQString &_name, KoPageLayout _layout, KoP void KPrPgLayoutCmd::execute() { m_doc->setUnit( unit ); - m_doc->setPageLayout( tqlayout ); + m_doc->setPageLayout( layout ); m_doc->updateHeaderFooterPosition(); m_doc->updateRuler(); m_doc->updateRulerPageLayout(); @@ -1456,7 +1456,7 @@ void KPrPieValueCmd::execute() obj->setPieLength( m_newValues.pieLength ); } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -1473,7 +1473,7 @@ void KPrPieValueCmd::unexecute() obj->setPieLength( m_oldValues.at( i )->pieLength ); } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -1553,7 +1553,7 @@ void KPrPolygonSettingCmd::execute() obj->setSharpnessValue(m_newSettings.sharpnessValue ); } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -1570,7 +1570,7 @@ void KPrPolygonSettingCmd::unexecute() obj->setSharpnessValue(m_oldSettings.at( i )->sharpnessValue); } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -1670,7 +1670,7 @@ void KPrPictureSettingCmd::execute() obj->setPictureBright( m_newSettings.bright ); } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -1688,7 +1688,7 @@ void KPrPictureSettingCmd::unexecute() obj->setPictureBright( pictureSettings->bright ); } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -1795,7 +1795,7 @@ void KPrRectValueCmd::execute() obj->setRnds( xtmp, ytmp ); } } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -1809,7 +1809,7 @@ void KPrRectValueCmd::unexecute() if( obj ) obj->setRnds( m_oldValues.at( i )->xRnd, m_oldValues.at( i )->yRnd ); } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -1842,12 +1842,12 @@ void KPrResizeCmd::execute() { if(object->isSelected()) doc->updateRuler(); - doc->tqlayout( object ); + doc->layout( object ); } if ( object->isSelected()) doc->updateObjectStatusBarItem(); - doc->tqrepaint( oldRect ); - doc->tqrepaint( object ); + doc->repaint( oldRect ); + doc->repaint( object ); doc->updateSideBarItem( m_page ); } @@ -1863,13 +1863,13 @@ void KPrResizeCmd::unexecute() { if(object->isSelected()) doc->updateRuler(); - doc->tqlayout( object ); + doc->layout( object ); } if ( object->isSelected()) doc->updateObjectStatusBarItem(); - doc->tqrepaint( oldRect ); - doc->tqrepaint( object ); + doc->repaint( oldRect ); + doc->repaint( object ); doc->updateSideBarItem( m_page ); } @@ -2368,7 +2368,7 @@ void KPrFlipObjectCommand::flipObjects() for ( ; it.current() ; ++it ) { it.current()->flip( horizontal ); - m_doc->tqrepaint( it.current() ); + m_doc->repaint( it.current() ); } m_doc->updateSideBarItem( m_page ); @@ -2425,7 +2425,7 @@ void KPrGeometryPropertiesCommand::execute() { it.current()->setProtect( m_newValue ); if ( it.current()->isSelected() ) - m_doc->tqrepaint( it.current() ); + m_doc->repaint( it.current() ); } else if ( m_type == KeepRatio) it.current()->setKeepRatio( m_newValue ); @@ -2441,7 +2441,7 @@ void KPrGeometryPropertiesCommand::unexecute() { obj->setProtect( *m_oldValue.at(i) ); if ( obj->isSelected() ) - m_doc->tqrepaint( obj ); + m_doc->repaint( obj ); } else if ( m_type == KeepRatio) obj->setKeepRatio( *m_oldValue.at(i) ); @@ -2568,7 +2568,7 @@ void KPrCloseObjectCommand::execute() ( *closeIt )->addToObjList(); ( *openIt )->setSelected( false ); ( *closeIt )->setSelected( selected ); - m_doc->tqrepaint( *closeIt ); + m_doc->repaint( *closeIt ); } m_doc->updateSideBarItem( m_page ); } @@ -2585,7 +2585,7 @@ void KPrCloseObjectCommand::unexecute() ( *openIt )->addToObjList(); ( *closeIt )->setSelected( false ); ( *openIt )->setSelected( selected ); - m_doc->tqrepaint( *openIt ); + m_doc->repaint( *openIt ); } m_doc->updateSideBarItem( m_page ); } @@ -2668,9 +2668,9 @@ void KPrChangeMarginCommand::execute() it.current()->setTextMargins( m_newMargins.leftMargin, m_newMargins.topMargin, m_newMargins.rightMargin, m_newMargins.bottomMargin); it.current()->resizeTextDocument(); - it.current()->tqlayout(); + it.current()->layout(); } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -2684,9 +2684,9 @@ void KPrChangeMarginCommand::unexecute() object->setTextMargins( marginsStruct->leftMargin, marginsStruct->topMargin, marginsStruct->rightMargin, marginsStruct->bottomMargin); object->resizeTextDocument(); - object->tqlayout(); + object->layout(); } - m_doc->tqrepaint( false ); + m_doc->repaint( false ); m_doc->updateSideBarItem( m_page ); } @@ -2708,8 +2708,8 @@ KPrChangeVerticalAlignmentCommand::KPrChangeVerticalAlignmentCommand( const TQSt void KPrChangeVerticalAlignmentCommand::execute() { m_obj->setVerticalAligment( m_newAlign ); - m_obj->kPresenterDocument()->tqlayout(m_obj); - m_obj->kPresenterDocument()->tqrepaint(m_obj); + m_obj->kPresenterDocument()->layout(m_obj); + m_obj->kPresenterDocument()->repaint(m_obj); m_doc->updateSideBarItem( m_page ); } @@ -2717,8 +2717,8 @@ void KPrChangeVerticalAlignmentCommand::execute() void KPrChangeVerticalAlignmentCommand::unexecute() { m_obj->setVerticalAligment( m_oldAlign ); - m_obj->kPresenterDocument()->tqlayout(m_obj); - m_obj->kPresenterDocument()->tqrepaint(m_obj); + m_obj->kPresenterDocument()->layout(m_obj); + m_obj->kPresenterDocument()->repaint(m_obj); m_doc->updateSideBarItem( m_page ); } @@ -2779,7 +2779,7 @@ void KPrImageEffectCmd::execute() obj->setIEParams(newSettings.param1, newSettings.param2, newSettings.param3); } } - doc->tqrepaint( false ); + doc->repaint( false ); doc->updateSideBarItem( m_page ); } @@ -2794,7 +2794,7 @@ void KPrImageEffectCmd::unexecute() oldSettings.at( i )->param3); } } - doc->tqrepaint( false ); + doc->repaint( false ); doc->updateSideBarItem( m_page ); } |