diff options
Diffstat (limited to 'karbon/commands/vtransformcmd.cc')
-rw-r--r-- | karbon/commands/vtransformcmd.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/karbon/commands/vtransformcmd.cc b/karbon/commands/vtransformcmd.cc index 5feacac5..5cb08953 100644 --- a/karbon/commands/vtransformcmd.cc +++ b/karbon/commands/vtransformcmd.cc @@ -33,7 +33,7 @@ #include <kdebug.h> -VTransformCmd::VTransformCmd( VDocument *doc, const QWMatrix& mat, bool duplicate ) +VTransformCmd::VTransformCmd( VDocument *doc, const TQWMatrix& mat, bool duplicate ) : VCommand( doc, i18n( "Transform Objects" ) ), m_mat( mat ), m_duplicate( duplicate ) { m_selection = ( document() && document()->selection() ) @@ -51,7 +51,7 @@ VTransformCmd::VTransformCmd( VDocument *doc, const QWMatrix& mat, bool duplicat setName( i18n( "Transform Object" ) ); } -VTransformCmd::VTransformCmd( VDocument *doc, const QString& name, const QString& icon, bool duplicate ) +VTransformCmd::VTransformCmd( VDocument *doc, const TQString& name, const TQString& icon, bool duplicate ) : VCommand( doc, name, icon ), m_duplicate( duplicate ) { m_selection = ( document() && document()->selection() ) @@ -195,7 +195,7 @@ VTransformCmd::visitVSubpath( VSubpath& path ) segment = segment->next(); } - path.invalidateBoundingBox(); + path.tqinvalidateBoundingBox(); } void @@ -217,7 +217,7 @@ VTransformCmd::visitVText( VText& text ) visit( *itr.current() ); } - text.invalidateBoundingBox(); + text.tqinvalidateBoundingBox(); } void @@ -301,7 +301,7 @@ VTranslateBezierCmd::execute() { if( m_segment->degree() == 3 ) { - QWMatrix m2( m_mat.m11(), m_mat.m12(), m_mat.m21(), m_mat.m22(), -m_mat.dx(), -m_mat.dy() ); + TQWMatrix m2( m_mat.m11(), m_mat.m12(), m_mat.m21(), m_mat.m22(), -m_mat.dx(), -m_mat.dy() ); if( m_firstControl ) { if( m_segment->prev() && @@ -343,7 +343,7 @@ VTranslateBezierCmd::execute() } if( m_subpath ) - m_subpath->invalidateBoundingBox(); + m_subpath->tqinvalidateBoundingBox(); setSuccess( true ); } @@ -351,7 +351,7 @@ VTranslateBezierCmd::execute() void VTranslateBezierCmd::unexecute() { - QWMatrix m2( m_mat.m11(), m_mat.m12(), m_mat.m21(), m_mat.m22(), -m_mat.dx(), -m_mat.dy() ); + TQWMatrix m2( m_mat.m11(), m_mat.m12(), m_mat.m21(), m_mat.m22(), -m_mat.dx(), -m_mat.dy() ); if( m_segment ) { for( uint i = 0;i < m_segment->degree();i++ ) @@ -450,7 +450,7 @@ VTranslatePointCmd::visitVSubpath( VSubpath& path ) // save indices of selected points for all segments while( segment ) { - QValueVector<int> pnts; + TQValueVector<int> pnts; for( unsigned short i = 0; i < segment->degree(); ++i ) { @@ -471,21 +471,21 @@ VTranslatePointCmd::visitVSubpath( VSubpath& path ) void VTranslatePointCmd::translatePoints() { - QMap<VSegment*, QValueVector<int> >::iterator it, et = m_segPnts.end(); + TQMap<VSegment*, TQValueVector<int> >::iterator it, et = m_segPnts.end(); // iterate over the segments and transform all selected points for( it = m_segPnts.begin(); it != et; ++it ) { VSegment *segment = it.key(); - QValueVector<int> &pnts = it.data(); + TQValueVector<int> &pnts = it.data(); int pntCnt = pnts.size(); for( int i = 0; i < pntCnt; ++i ) segment->setPoint( pnts[i], segment->point( pnts[i] ).transform( m_mat ) ); } - // invalidate all changed subpaths + // tqinvalidate all changed subpaths VObjectListIterator itr( m_subpaths ); for( ; itr.current(); ++itr ) - itr.current()->invalidateBoundingBox(); + itr.current()->tqinvalidateBoundingBox(); } |