diff options
Diffstat (limited to 'karbon/tools/vpolylinetool.cc')
-rw-r--r-- | karbon/tools/vpolylinetool.cc | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/karbon/tools/vpolylinetool.cc b/karbon/tools/vpolylinetool.cc index 59b72a0e..673503f9 100644 --- a/karbon/tools/vpolylinetool.cc +++ b/karbon/tools/vpolylinetool.cc @@ -18,9 +18,9 @@ */ -#include <qcursor.h> -#include <qevent.h> -#include <qlabel.h> +#include <tqcursor.h> +#include <tqevent.h> +#include <tqlabel.h> #include <klocale.h> @@ -35,7 +35,7 @@ #include <render/vpainter.h> #include <render/vpainterfactory.h> #include "vpolylinetool.h" -#include <commands/vshapecmd.h> +#include <commands/vtqshapecmd.h> #include <commands/vcommand.h> #include <widgets/vcanvas.h> @@ -44,7 +44,7 @@ VPolylineTool::VPolylineTool( KarbonView *view ) { m_bezierPoints.setAutoDelete( true ); registerTool( this ); - m_crossCursor = new QCursor( VCursor::createCursor( VCursor::CrossHair ) ); + m_crossCursor = new TQCursor( VCursor::createCursor( VCursor::CrossHair ) ); } VPolylineTool::~VPolylineTool() @@ -52,10 +52,10 @@ VPolylineTool::~VPolylineTool() delete m_crossCursor; } -QString +TQString VPolylineTool::contextHelp() { - QString s = i18n( "<qt><b>Polyline tool:</b><br>" ); + TQString s = i18n( "<qt><b>Polyline tool:</b><br>" ); s += i18n( "- <i>Click</i> to add a node and <i>drag</i> to set its bezier vector.<br>" ); s += i18n( "- Press <i>Ctrl</i> while dragging to edit the previous bezier vector.<br>" ); s += i18n( "- Press <i>Shift</i> while dragging to change the curve in a straight line.<br>" ); @@ -76,7 +76,7 @@ VPolylineTool::activate() m_bezierPoints.clear(); m_close = false; - connect( view()->part()->commandHistory(), SIGNAL(commandExecuted()), this, SLOT(commandExecuted()) ); + connect( view()->part()->commandHistory(), TQT_SIGNAL(commandExecuted()), this, TQT_SLOT(commandExecuted()) ); } void @@ -145,14 +145,14 @@ VPolylineTool::deactivate() createObject(); - disconnect( view()->part()->commandHistory(), SIGNAL(commandExecuted()), this, SLOT(commandExecuted()) ); + disconnect( view()->part()->commandHistory(), TQT_SIGNAL(commandExecuted()), this, TQT_SLOT(commandExecuted()) ); } void VPolylineTool::draw() { VPainter* painter = view()->painterFactory()->editpainter(); - painter->setRasterOp( Qt::NotROP ); + painter->setRasterOp( TQt::NotROP ); if( m_bezierPoints.count() > 2 ) { @@ -173,21 +173,21 @@ VPolylineTool::drawBezierVector( KoPoint& start, KoPoint& end ) float zoomFactor = view()->zoom(); - painter->setRasterOp( Qt::NotROP ); + painter->setRasterOp( TQt::NotROP ); painter->newPath(); -/* VStroke stroke( Qt::blue, 0L, 1.0 ); - QValueList<float> array; +/* VStroke stroke( TQt::blue, 0L, 1.0 ); + TQValueList<float> array; array << 2.0 << 3.0; stroke.dashPattern().setArray( array );*/ - painter->setPen( Qt::DotLine /*stroke*/ ); - painter->setBrush( Qt::NoBrush ); + painter->setPen( TQt::DotLine /*stroke*/ ); + painter->setBrush( TQt::NoBrush ); painter->moveTo( start ); painter->lineTo( end ); painter->strokePath(); - painter->setRasterOp( Qt::XorROP ); + painter->setRasterOp( TQt::XorROP ); painter->newPath(); - painter->setPen( Qt::yellow ); + painter->setPen( TQt::yellow ); float width = 2.0; @@ -262,10 +262,10 @@ VPolylineTool::mouseButtonRelease() VPainter* painter = view()->painterFactory()->editpainter(); painter->save(); painter->setZoomFactor( view()->zoom() ); - painter->setRasterOp( Qt::XorROP ); - VStroke stroke( Qt::yellow, 0L, 1.0 ); + painter->setRasterOp( TQt::XorROP ); + VStroke stroke( TQt::yellow, 0L, 1.0 ); painter->setPen( stroke ); - painter->setBrush( Qt::yellow ); + painter->setBrush( TQt::yellow ); painter->newPath(); painter->drawNode( m_lastVectorStart, 2 ); painter->strokePath(); @@ -486,9 +486,9 @@ VPolylineTool::setup( KActionCollection *collection ) if( m_action == 0 ) { - KShortcut shortcut( Qt::Key_Plus ); - shortcut.append( KShortcut( Qt::Key_F9 ) ); - m_action = new KRadioAction( i18n( "Polyline Tool" ), "14_polyline", shortcut, this, SLOT( activate() ), collection, name() ); + KShortcut shortcut( TQt::Key_Plus ); + shortcut.append( KShortcut( TQt::Key_F9 ) ); + m_action = new KRadioAction( i18n( "Polyline Tool" ), "14_polyline", shortcut, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Polyline" ) ); m_action->setExclusiveGroup( "freehand" ); //m_ownAction = true; |