diff options
Diffstat (limited to 'karbon/tools/vpenciltool.cc')
-rw-r--r-- | karbon/tools/vpenciltool.cc | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/karbon/tools/vpenciltool.cc b/karbon/tools/vpenciltool.cc index 3a18fcb0..7347e0f9 100644 --- a/karbon/tools/vpenciltool.cc +++ b/karbon/tools/vpenciltool.cc @@ -19,14 +19,14 @@ */ #include <math.h> -#include <qcursor.h> -#include <qevent.h> -#include <qlabel.h> -#include <qgroupbox.h> -#include <qcombobox.h> -#include <qcheckbox.h> -#include <qvbox.h> -#include <qwidgetstack.h> +#include <tqcursor.h> +#include <tqevent.h> +#include <tqlabel.h> +#include <tqgroupbox.h> +#include <tqcombobox.h> +#include <tqcheckbox.h> +#include <tqvbox.h> +#include <tqwidgetstack.h> #include <klocale.h> #include <knuminput.h> @@ -45,45 +45,45 @@ #include <render/vpainter.h> #include <render/vpainterfactory.h> #include "vpenciltool.h" -#include <commands/vshapecmd.h> +#include <commands/vtqshapecmd.h> #include "vcurvefit.h" #include "vpenciltool.moc" -VPencilOptionsWidget::VPencilOptionsWidget( KarbonView*view, QWidget* parent, const char* name ) - : KDialogBase( parent, name, true, i18n( "Pencil Settings" ), Ok | Cancel ), m_view( view ) +VPencilOptionsWidget::VPencilOptionsWidget( KarbonView*view, TQWidget* tqparent, const char* name ) + : KDialogBase( tqparent, name, true, i18n( "Pencil Settings" ), Ok | Cancel ), m_view( view ) { - QVBox *vbox = new QVBox( this ); + TQVBox *vbox = new TQVBox( this ); - m_combo = new QComboBox( vbox ); + m_combo = new TQComboBox( vbox ); m_combo->insertItem( i18n( "Raw" ) ); m_combo->insertItem( i18n( "Curve" ) ); m_combo->insertItem( i18n( "Straight" ) ); - m_widgetStack = new QWidgetStack( vbox ); + m_widgetStack = new TQWidgetStack( vbox ); - QGroupBox *group1 = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), m_widgetStack ); + TQGroupBox *group1 = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), m_widgetStack ); m_widgetStack->addWidget( group1, 1 ); - m_optimizeRaw = new QCheckBox( i18n( "Optimize" ), group1 ); + m_optimizeRaw = new TQCheckBox( i18n( "Optimize" ), group1 ); group1->setInsideMargin( 4 ); group1->setInsideSpacing( 2 ); - QGroupBox *group2 = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), m_widgetStack ); + TQGroupBox *group2 = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), m_widgetStack ); m_widgetStack->addWidget( group2, 2 ); - QVBox *vbox2 = new QVBox( group2 ); + TQVBox *vbox2 = new TQVBox( group2 ); - m_optimizeCurve = new QCheckBox( i18n( "Optimize" ), vbox2 ); + m_optimizeCurve = new TQCheckBox( i18n( "Optimize" ), vbox2 ); m_fittingError = new KDoubleNumInput( 0.0, 400.0, 4.00, 0.50, 3, vbox2 ); m_fittingError->setLabel( i18n( "Exactness:" ) ); group2->setInsideMargin( 4 ); group2->setInsideSpacing( 2 ); - QGroupBox *group3 = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), m_widgetStack ); + TQGroupBox *group3 = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), m_widgetStack ); m_widgetStack->addWidget( group3, 3 ); m_combineAngle = new KDoubleNumInput( 0.0, 360.0, 0.10, 0.50, 3, group3 ); @@ -93,7 +93,7 @@ VPencilOptionsWidget::VPencilOptionsWidget( KarbonView*view, QWidget* parent, co group3->setInsideMargin( 4 ); group3->setInsideSpacing( 2 ); - connect( m_combo, SIGNAL( activated( int ) ), this, SLOT( selectMode() ) ); + connect( m_combo, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( selectMode() ) ); //Set the default settings m_mode = VPencilTool::CURVE; @@ -147,7 +147,7 @@ VPencilTool::VPencilTool( KarbonView *view ) m_mode = CURVE; m_optimize = true; m_combineAngle = 3.0f; - m_cursor = new QCursor( VCursor::createCursor( VCursor::CrossHair ) ); + m_cursor = new TQCursor( VCursor::createCursor( VCursor::CrossHair ) ); } VPencilTool::~VPencilTool() @@ -155,10 +155,10 @@ VPencilTool::~VPencilTool() delete m_cursor; } -QString +TQString VPencilTool::contextHelp() { - QString s = i18n( "<qt><b>Pencil tool:</b><br>" ); + TQString s = i18n( "<qt><b>Pencil tool:</b><br>" ); s += i18n( "- <i>Click</i> to begin drawing, release when you have finished."); s += i18n( "- Press <i>Enter</i> or <i>double click</i> to end the polyline.</qt>" ); @@ -185,8 +185,8 @@ VPencilTool::deactivate() VPath* line = 0L; - QPtrList<KoPoint> complete; - QPtrList<KoPoint> *points = &m_Points; + TQPtrList<KoPoint> complete; + TQPtrList<KoPoint> *points = &m_Points; if( m_Points.count() > 1 ) { @@ -216,7 +216,7 @@ VPencilTool::deactivate() while( ( nextp = m_Points.next() ) ) { float angle = ANGLE( complete.last(), nextp ); - if( QABS( angle - langle ) < cangle ) + if( TQABS( angle - langle ) < cangle ) complete.removeLast(); complete.append(nextp); langle=angle; @@ -273,7 +273,7 @@ void VPencilTool::draw() { VPainter* painter = view()->painterFactory()->editpainter(); - painter->setRasterOp( Qt::NotROP ); + painter->setRasterOp( TQt::NotROP ); m_mode = m_optionWidget->currentMode(); m_optimize = m_optionWidget->optimize(); @@ -392,7 +392,7 @@ VPencilTool::accept() bool VPencilTool::showDialog() const { - return m_optionWidget->exec() == QDialog::Accepted; + return m_optionWidget->exec() == TQDialog::Accepted; } void @@ -402,7 +402,7 @@ VPencilTool::setup( KActionCollection *collection ) if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Pencil Tool" ), "14_pencil", Qt::SHIFT+Qt::Key_P, this, SLOT( activate() ), collection, name() ); + m_action = new KRadioAction( i18n( "Pencil Tool" ), "14_pencil", TQt::SHIFT+TQt::Key_P, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Pencil" ) ); m_action->setExclusiveGroup( "freehand" ); //m_ownAction = true; |