diff options
Diffstat (limited to 'karbon/plugins')
20 files changed, 147 insertions, 135 deletions
diff --git a/karbon/plugins/flattenpath/flattenpathplugin.cc b/karbon/plugins/flattenpath/flattenpathplugin.cc index 4532a12c..1cb16658 100644 --- a/karbon/plugins/flattenpath/flattenpathplugin.cc +++ b/karbon/plugins/flattenpath/flattenpathplugin.cc @@ -23,8 +23,8 @@ #include <karbon_part.h> #include <kgenericfactory.h> #include <kdebug.h> -#include <qgroupbox.h> -#include <qlabel.h> +#include <tqgroupbox.h> +#include <tqlabel.h> #include <knuminput.h> #include <commands/vflattencmd.h> @@ -33,12 +33,12 @@ typedef KGenericFactory<FlattenPathPlugin, KarbonView> FlattenPathPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_flattenpathplugin, FlattenPathPluginFactory( "karbonflattenpathplugin" ) ) -FlattenPathPlugin::FlattenPathPlugin( KarbonView *parent, const char* name, const QStringList & ) -: Plugin( parent, name ) +FlattenPathPlugin::FlattenPathPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) +: Plugin( tqparent, name ) { new KAction( i18n( "&Flatten Path..." ), "14_flatten", 0, this, - SLOT( slotFlattenPath() ), actionCollection(), "path_flatten" ); + TQT_SLOT( slotFlattenPath() ), actionCollection(), "path_flatten" ); m_flattenPathDlg = new VFlattenDlg(); m_flattenPathDlg->setFlatness( 0.2 ); @@ -47,23 +47,23 @@ FlattenPathPlugin::FlattenPathPlugin( KarbonView *parent, const char* name, cons void FlattenPathPlugin::slotFlattenPath() { - KarbonPart *part = ((KarbonView *)parent())->part(); + KarbonPart *part = ((KarbonView *)tqparent())->part(); if( part && m_flattenPathDlg->exec() ) part->addCommand( new VFlattenCmd( &part->document(), m_flattenPathDlg->flatness() ), true ); } -VFlattenDlg::VFlattenDlg( QWidget* parent, const char* name ) - : KDialogBase( parent, name, true, i18n( "Flatten Path" ), Ok | Cancel ) +VFlattenDlg::VFlattenDlg( TQWidget* tqparent, const char* name ) + : KDialogBase( tqparent, name, true, i18n( "Flatten Path" ), Ok | Cancel ) { // add input fields on the left: - QGroupBox* group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); - new QLabel( i18n( "Flatness:" ), group ); + TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); + new TQLabel( i18n( "Flatness:" ), group ); m_flatness = new KDoubleNumInput( group ); group->setMinimumWidth( 300 ); // signals and slots: - connect( this, SIGNAL( okClicked() ), this, SLOT( accept() ) ); - connect( this, SIGNAL( cancelClicked() ), this, SLOT( reject() ) ); + connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( accept() ) ); + connect( this, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( reject() ) ); setMainWidget( group ); setFixedSize( baseSize() ); diff --git a/karbon/plugins/flattenpath/flattenpathplugin.h b/karbon/plugins/flattenpath/flattenpathplugin.h index 0e92d8f3..d4a4e3a7 100644 --- a/karbon/plugins/flattenpath/flattenpathplugin.h +++ b/karbon/plugins/flattenpath/flattenpathplugin.h @@ -29,8 +29,9 @@ class VFlattenDlg; class FlattenPathPlugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - FlattenPathPlugin( KarbonView *parent, const char* name, const QStringList & ); + FlattenPathPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); virtual ~FlattenPathPlugin() {} private slots: @@ -45,9 +46,10 @@ class KDoubleNumInput; class VFlattenDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - VFlattenDlg( QWidget* parent = 0L, const char* name = 0L ); + VFlattenDlg( TQWidget* tqparent = 0L, const char* name = 0L ); double flatness() const; void setFlatness( double value ); diff --git a/karbon/plugins/imagetool/imagetoolplugin.cc b/karbon/plugins/imagetool/imagetoolplugin.cc index cd9c7c2f..2bb9962a 100644 --- a/karbon/plugins/imagetool/imagetoolplugin.cc +++ b/karbon/plugins/imagetool/imagetoolplugin.cc @@ -31,17 +31,17 @@ typedef KGenericFactory<ImageToolPlugin> ImageToolPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_imagetoolplugin, ImageToolPluginFactory( "karbonimagetoolplugin" ) ) -ImageToolPlugin::ImageToolPlugin(QObject *parent, const char *name, const QStringList &) : KParts::Plugin(parent, name) +ImageToolPlugin::ImageToolPlugin(TQObject *tqparent, const char *name, const TQStringList &) : KParts::Plugin(tqparent, name) { setInstance(ImageToolPluginFactory::instance()); kdDebug() << "VImageToolPlugin. Class: " << className() << ", Parent: " - << parent -> className() + << tqparent -> className() << "\n"; - if ( parent->inherits("KarbonFactory") ) + if ( tqparent->inherits("KarbonFactory") ) { KarbonToolRegistry* r = KarbonToolRegistry::instance(); r->add(new KarbonToolFactory<VImageTool>()); diff --git a/karbon/plugins/imagetool/imagetoolplugin.h b/karbon/plugins/imagetool/imagetoolplugin.h index 6f7e6547..236b0ac6 100644 --- a/karbon/plugins/imagetool/imagetoolplugin.h +++ b/karbon/plugins/imagetool/imagetoolplugin.h @@ -21,7 +21,7 @@ #ifndef __IMAGETOOLPLUGIN_H__ #define __IMAGETOOLPLUGIN_H__ -#include <qstring.h> +#include <tqstring.h> #include <kparts/plugin.h> @@ -30,8 +30,9 @@ class ImageToolPlugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - ImageToolPlugin(QObject *parent, const char *name, const QStringList &); + ImageToolPlugin(TQObject *tqparent, const char *name, const TQStringList &); virtual ~ImageToolPlugin(); }; diff --git a/karbon/plugins/imagetool/vimagetool.cc b/karbon/plugins/imagetool/vimagetool.cc index 6511fa4d..40823e99 100644 --- a/karbon/plugins/imagetool/vimagetool.cc +++ b/karbon/plugins/imagetool/vimagetool.cc @@ -18,7 +18,7 @@ */ -#include <qcursor.h> +#include <tqcursor.h> #include <klocale.h> #include <kfiledialog.h> #include <kdebug.h> @@ -33,7 +33,7 @@ VImageTool::VImageTool( KarbonView *view ) : VTool( view, "tool_image_plugin" ) { registerTool( this ); - m_cursor = new QCursor( VCursor::createCursor( VCursor::CrossHair ) ); + m_cursor = new TQCursor( VCursor::createCursor( VCursor::CrossHair ) ); } VImageTool::~VImageTool() @@ -41,10 +41,10 @@ VImageTool::~VImageTool() delete m_cursor; } -QString +TQString VImageTool::contextHelp() { - QString s = i18n( "<qt><b>Image tool:</b><br>" ); + TQString s = i18n( "<qt><b>Image tool:</b><br>" ); return s; } @@ -55,7 +55,7 @@ VImageTool::activate() VTool::activate(); } -QString +TQString VImageTool::statusText() { return i18n( "Image Tool" ); @@ -69,7 +69,7 @@ VImageTool::deactivate() void VImageTool::mouseButtonRelease() { - QString fname = KFileDialog::getOpenFileName( QString::null, "*.jpg *.gif *.png", view(), i18n( "Choose Image to Add" ) ); + TQString fname = KFileDialog::getOpenFileName( TQString(), "*.jpg *.gif *.png", view(), i18n( "Choose Image to Add" ) ); if( !fname.isEmpty() ) { VImage *image = new VImage( 0L, fname ); @@ -79,7 +79,7 @@ VImageTool::mouseButtonRelease() } } -VImageTool::VInsertImageCmd::VInsertImageCmd( VDocument* doc, const QString& name, VImage *image, KoPoint pos ) +VImageTool::VInsertImageCmd::VInsertImageCmd( VDocument* doc, const TQString& name, VImage *image, KoPoint pos ) : VCommand( doc, name, "frame_image" ), m_image( image ), m_pos( pos ) { } @@ -95,7 +95,7 @@ VImageTool::VInsertImageCmd::execute() else { m_image->setState( VObject::normal ); - m_image->transform( QWMatrix().translate( m_pos.x(), m_pos.y() ) ); + m_image->transform( TQWMatrix().translate( m_pos.x(), m_pos.y() ) ); document()->append( m_image ); document()->selection()->clear(); document()->selection()->append( m_image ); @@ -123,7 +123,7 @@ VImageTool::setup( KActionCollection *collection ) if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Image Tool" ), "14_image", Qt::SHIFT+Qt::Key_H, this, SLOT( activate() ), collection, name() ); + m_action = new KRadioAction( i18n( "Image Tool" ), "14_image", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Image" ) ); m_action->setExclusiveGroup( "misc" ); //m_ownAction = true; diff --git a/karbon/plugins/imagetool/vimagetool.h b/karbon/plugins/imagetool/vimagetool.h index c9ac7f44..65b187ea 100644 --- a/karbon/plugins/imagetool/vimagetool.h +++ b/karbon/plugins/imagetool/vimagetool.h @@ -21,14 +21,14 @@ #ifndef __VIMAGETOOL_H__ #define __VIMAGETOOL_H__ -#include <qstring.h> +#include <tqstring.h> #include "vtool.h" #include <commands/vcommand.h> class KarbonView; class VImage; -class QCursor; +class TQCursor; class VImageTool : public VTool { @@ -40,15 +40,15 @@ public: virtual void deactivate(); virtual void setup( KActionCollection *collection ); - virtual QString uiname() { return i18n( "Image Tool" ); } - virtual QString contextHelp(); - virtual QString statusText(); + virtual TQString uiname() { return i18n( "Image Tool" ); } + virtual TQString contextHelp(); + virtual TQString statusText(); protected: class VInsertImageCmd : public VCommand { public: - VInsertImageCmd( VDocument* doc, const QString& name, VImage *image, KoPoint pos ); + VInsertImageCmd( VDocument* doc, const TQString& name, VImage *image, KoPoint pos ); virtual ~VInsertImageCmd() {} virtual void execute(); @@ -63,7 +63,7 @@ protected: virtual void mouseButtonRelease(); private: - QCursor* m_cursor; + TQCursor* m_cursor; }; #endif diff --git a/karbon/plugins/insertknots/insertknotsplugin.cc b/karbon/plugins/insertknots/insertknotsplugin.cc index 2d470b88..b31d33f9 100644 --- a/karbon/plugins/insertknots/insertknotsplugin.cc +++ b/karbon/plugins/insertknots/insertknotsplugin.cc @@ -25,19 +25,19 @@ #include <core/vsegment.h> #include <kgenericfactory.h> #include <kdebug.h> -#include <qgroupbox.h> -#include <qlabel.h> +#include <tqgroupbox.h> +#include <tqlabel.h> #include <knuminput.h> typedef KGenericFactory<InsertKnotsPlugin, KarbonView> InsertKnotsPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_insertknotsplugin, InsertKnotsPluginFactory( "karboninsertknotsplugin" ) ) -InsertKnotsPlugin::InsertKnotsPlugin( KarbonView *parent, const char* name, const QStringList & ) : Plugin( parent, name ) +InsertKnotsPlugin::InsertKnotsPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) : Plugin( tqparent, name ) { new KAction( i18n( "&Insert Knots..." ), "14_insertknots", 0, this, - SLOT( slotInsertKnots() ), actionCollection(), "path_insert_knots" ); + TQT_SLOT( slotInsertKnots() ), actionCollection(), "path_insert_knots" ); m_insertKnotsDlg = new VInsertKnotsDlg(); } @@ -45,25 +45,25 @@ InsertKnotsPlugin::InsertKnotsPlugin( KarbonView *parent, const char* name, cons void InsertKnotsPlugin::slotInsertKnots() { - KarbonPart *part = ((KarbonView *)parent())->part(); + KarbonPart *part = ((KarbonView *)tqparent())->part(); if( part && m_insertKnotsDlg->exec() ) part->addCommand( new VInsertKnotsCmd( &part->document(), m_insertKnotsDlg->knots() ), true ); } -VInsertKnotsDlg::VInsertKnotsDlg( QWidget* parent, const char* name ) - : KDialogBase( parent, name, true, i18n( "Insert Knots" ), Ok | Cancel ) +VInsertKnotsDlg::VInsertKnotsDlg( TQWidget* tqparent, const char* name ) + : KDialogBase( tqparent, name, true, i18n( "Insert Knots" ), Ok | Cancel ) { // add input fields: - QGroupBox* group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); + TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); - new QLabel( i18n( "Knots:" ), group ); + new TQLabel( i18n( "Knots:" ), group ); m_knots = new KIntSpinBox( group ); m_knots->setMinValue( 1 ); group->setMinimumWidth( 300 ); // signals and slots: - connect( this, SIGNAL( okClicked() ), this, SLOT( accept() ) ); - connect( this, SIGNAL( cancelClicked() ), this, SLOT( reject() ) ); + connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( accept() ) ); + connect( this, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( reject() ) ); setMainWidget( group ); setFixedSize( baseSize() ); diff --git a/karbon/plugins/insertknots/insertknotsplugin.h b/karbon/plugins/insertknots/insertknotsplugin.h index 89f0a4d0..4bd2b212 100644 --- a/karbon/plugins/insertknots/insertknotsplugin.h +++ b/karbon/plugins/insertknots/insertknotsplugin.h @@ -30,8 +30,9 @@ class KarbonView; class InsertKnotsPlugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - InsertKnotsPlugin( KarbonView *parent, const char* name, const QStringList & ); + InsertKnotsPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); virtual ~InsertKnotsPlugin() {} private slots: @@ -46,9 +47,10 @@ class KIntSpinBox; class VInsertKnotsDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - VInsertKnotsDlg( QWidget* parent = 0L, const char* name = 0L ); + VInsertKnotsDlg( TQWidget* tqparent = 0L, const char* name = 0L ); uint knots() const; void setKnots( uint value ); diff --git a/karbon/plugins/roundcorners/roundcornersplugin.cc b/karbon/plugins/roundcorners/roundcornersplugin.cc index 5a36fa51..cb24087f 100644 --- a/karbon/plugins/roundcorners/roundcornersplugin.cc +++ b/karbon/plugins/roundcorners/roundcornersplugin.cc @@ -24,19 +24,19 @@ #include <core/vsegment.h> #include <kgenericfactory.h> #include <kdebug.h> -#include <qgroupbox.h> -#include <qlabel.h> +#include <tqgroupbox.h> +#include <tqlabel.h> #include <knuminput.h> typedef KGenericFactory<VRoundCornersPlugin, KarbonView> VRoundCornersPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_roundcornersplugin, VRoundCornersPluginFactory( "karbonroundcornersplugin" ) ) -VRoundCornersPlugin::VRoundCornersPlugin( KarbonView *parent, const char* name, const QStringList & ) : Plugin( parent, name ) +VRoundCornersPlugin::VRoundCornersPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) : Plugin( tqparent, name ) { new KAction( i18n( "&Round Corners..." ), "14_roundcorners", 0, this, - SLOT( slotRoundCorners() ), actionCollection(), "path_round_corners" ); + TQT_SLOT( slotRoundCorners() ), actionCollection(), "path_round_corners" ); m_roundCornersDlg = new VRoundCornersDlg(); m_roundCornersDlg->setRadius( 10.0 ); @@ -49,25 +49,25 @@ VRoundCornersPlugin::~VRoundCornersPlugin() void VRoundCornersPlugin::slotRoundCorners() { - KarbonPart *part = ((KarbonView *)parent())->part(); + KarbonPart *part = ((KarbonView *)tqparent())->part(); if( part && m_roundCornersDlg->exec() ) part->addCommand( new VRoundCornersCmd( &part->document(), m_roundCornersDlg->radius() ), true ); } -VRoundCornersDlg::VRoundCornersDlg( QWidget* parent, const char* name ) - : KDialogBase( parent, name, true, i18n( "Polygonize" ), Ok | Cancel ) +VRoundCornersDlg::VRoundCornersDlg( TQWidget* tqparent, const char* name ) + : KDialogBase( tqparent, name, true, i18n( "Polygonize" ), Ok | Cancel ) { // add input: - QGroupBox* group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); + TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); - new QLabel( i18n( "Round corners:" ), group ); + new TQLabel( i18n( "Round corners:" ), group ); m_radius = new KDoubleNumInput( group ); group->setMinimumWidth( 300 ); // signals and slots: - connect( this, SIGNAL( okClicked() ), this, SLOT( accept() ) ); - connect( this, SIGNAL( cancelClicked() ), this, SLOT( reject() ) ); + connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( accept() ) ); + connect( this, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( reject() ) ); setMainWidget( group ); setFixedSize( baseSize() ); @@ -102,7 +102,7 @@ VRoundCornersCmd::visitVSubpath( VSubpath& path ) return; // Note: we modiy segments from path. that doesn't hurt, since we - // replace "path" with the temporary path "newPath" afterwards. + // tqreplace "path" with the temporary path "newPath" afterwards. VSubpath newPath( 0L ); @@ -395,7 +395,7 @@ VRoundCornersCmd::visitVSubpath( VSubpath& path ) path = newPath; // Invalidate bounding box once. - path.invalidateBoundingBox(); + path.tqinvalidateBoundingBox(); } #include "roundcornersplugin.moc" diff --git a/karbon/plugins/roundcorners/roundcornersplugin.h b/karbon/plugins/roundcorners/roundcornersplugin.h index 626d698c..74e49f88 100644 --- a/karbon/plugins/roundcorners/roundcornersplugin.h +++ b/karbon/plugins/roundcorners/roundcornersplugin.h @@ -31,8 +31,9 @@ class VRoundCornersDlg; class KARBONBASE_EXPORT VRoundCornersPlugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - VRoundCornersPlugin( KarbonView *parent, const char* name, const QStringList & ); + VRoundCornersPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); virtual ~VRoundCornersPlugin(); private slots: @@ -47,9 +48,10 @@ class KDoubleNumInput; class VRoundCornersDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - VRoundCornersDlg( QWidget* parent = 0L, const char* name = 0L ); + VRoundCornersDlg( TQWidget* tqparent = 0L, const char* name = 0L ); double radius() const; void setRadius( double value ); diff --git a/karbon/plugins/shadoweffect/shadoweffectplugin.cc b/karbon/plugins/shadoweffect/shadoweffectplugin.cc index c1a0aa33..903f0ee0 100644 --- a/karbon/plugins/shadoweffect/shadoweffectplugin.cc +++ b/karbon/plugins/shadoweffect/shadoweffectplugin.cc @@ -23,8 +23,8 @@ #include <karbon_part.h> #include <kgenericfactory.h> #include <kdebug.h> -#include <qgroupbox.h> -#include <qlabel.h> +#include <tqgroupbox.h> +#include <tqlabel.h> #include <knuminput.h> #include <core/vgroup.h> @@ -37,12 +37,12 @@ typedef KGenericFactory<ShadowEffectPlugin, KarbonView> ShadowEffectPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_shadoweffectplugin, ShadowEffectPluginFactory( "karbonshadoweffectplugin" ) ) -ShadowEffectPlugin::ShadowEffectPlugin( KarbonView *parent, const char* name, const QStringList & ) -: Plugin( parent, name ) +ShadowEffectPlugin::ShadowEffectPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) +: Plugin( tqparent, name ) { new KAction( i18n( "&Shadow Effect..." ), "shadowRB", 0, this, - SLOT( slotShadowEffect() ), actionCollection(), "object_shadow" ); + TQT_SLOT( slotShadowEffect() ), actionCollection(), "object_shadow" ); m_shadowEffectDlg = new VShadowEffectDlg(); m_shadowEffectDlg->setDistance( 2 ); @@ -52,25 +52,25 @@ ShadowEffectPlugin::ShadowEffectPlugin( KarbonView *parent, const char* name, co void ShadowEffectPlugin::slotShadowEffect() { - KarbonPart *part = ((KarbonView *)parent())->part(); + KarbonPart *part = ((KarbonView *)tqparent())->part(); if( part && m_shadowEffectDlg->exec() ) part->addCommand( new VCreateShadowCmd( &part->document(), m_shadowEffectDlg->distance(), m_shadowEffectDlg->angle(), double( m_shadowEffectDlg->opacity() ) / 255.0 ), true ); } -VShadowEffectDlg::VShadowEffectDlg( QWidget* parent, const char* name ) - : KDialogBase( parent, name, true, i18n( "Create Shadow Effect" ), Ok | Cancel ) +VShadowEffectDlg::VShadowEffectDlg( TQWidget* tqparent, const char* name ) + : KDialogBase( tqparent, name, true, i18n( "Create Shadow Effect" ), Ok | Cancel ) { // add input fields on the left: - QGroupBox* group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); - new QLabel( i18n( "Distance:" ), group ); + TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); + new TQLabel( i18n( "Distance:" ), group ); m_distance = new KIntNumInput( group ); m_distance->setRange( -1000, 1000, 1, true ); m_distance->setValue( 2 ); - new QLabel( i18n( "Angle:" ), group ); + new TQLabel( i18n( "Angle:" ), group ); m_angle = new KIntNumInput( group ); m_angle->setRange( 0, 360, 10, true ); m_angle->setValue( 0 ); - new QLabel( i18n( "Opacity:" ), group ); + new TQLabel( i18n( "Opacity:" ), group ); m_opacity = new KIntNumInput( group ); m_opacity->setRange( 0, 100, 1, true ); m_opacity->setValue( 100 ); @@ -78,8 +78,8 @@ VShadowEffectDlg::VShadowEffectDlg( QWidget* parent, const char* name ) m_opacity->setSuffix(i18n("%")); // signals and slots: - connect( this, SIGNAL( okClicked() ), this, SLOT( accept() ) ); - connect( this, SIGNAL( cancelClicked() ), this, SLOT( reject() ) ); + connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( accept() ) ); + connect( this, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( reject() ) ); setMainWidget( group ); } @@ -142,7 +142,7 @@ VCreateShadowCmd::execute() bool successful = false; - // Create new shapes if they don't exist yet. + // Create new tqshapes if they don't exist yet. if( !m_newObjects ) { m_newObjects = new VSelection(); @@ -169,11 +169,11 @@ VCreateShadowCmd::execute() if(newObject) { - // Insert new shape right before old shape. - itr.current()->parent()->insertInfrontOf( + // Insert new tqshape right before old tqshape. + itr.current()->tqparent()->insertInfrontOf( newObject, itr.current() ); - // Add new shape to list of new objects. + // Add new tqshape to list of new objects. m_newObjects->append( newObject ); } } diff --git a/karbon/plugins/shadoweffect/shadoweffectplugin.h b/karbon/plugins/shadoweffect/shadoweffectplugin.h index 9a97da98..fc500bb7 100644 --- a/karbon/plugins/shadoweffect/shadoweffectplugin.h +++ b/karbon/plugins/shadoweffect/shadoweffectplugin.h @@ -31,8 +31,9 @@ class VShadowEffectDlg; class ShadowEffectPlugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - ShadowEffectPlugin( KarbonView *parent, const char* name, const QStringList & ); + ShadowEffectPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); virtual ~ShadowEffectPlugin() {} private slots: @@ -47,9 +48,10 @@ class KIntNumInput; class VShadowEffectDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - VShadowEffectDlg( QWidget* parent = 0L, const char* name = 0L ); + VShadowEffectDlg( TQWidget* tqparent = 0L, const char* name = 0L ); void setAngle( int ); void setDistance( int ); diff --git a/karbon/plugins/shadoweffect/vshadowdecorator.cc b/karbon/plugins/shadoweffect/vshadowdecorator.cc index 238673ba..e6b2f378 100644 --- a/karbon/plugins/shadoweffect/vshadowdecorator.cc +++ b/karbon/plugins/shadoweffect/vshadowdecorator.cc @@ -26,8 +26,8 @@ #include <core/vselection.h> #include <commands/vtransformcmd.h> -VShadowDecorator::VShadowDecorator( VObject *object, VObject* parent, int distance, int angle, float opacity ) - : VObject( parent ), m_object( object ), m_distance( distance ), m_angle( angle ), m_opacity( opacity ) +VShadowDecorator::VShadowDecorator( VObject *object, VObject* tqparent, int distance, int angle, float opacity ) + : VObject( tqparent ), m_object( object ), m_distance( distance ), m_angle( angle ), m_opacity( opacity ) { } @@ -64,12 +64,12 @@ VShadowDecorator::draw( VPainter* painter, const KoRect* rect ) const VFill *fill = new VFill( *m_object->fill() ); VStroke *stroke = new VStroke( *m_object->stroke() ); - VColor black( Qt::black ); + VColor black( TQt::black ); black.setOpacity( m_opacity ); if( m_object->fill()->type() != VFill::none ) m_object->fill()->setColor( black ); m_object->stroke()->setColor( black ); - QWMatrix mat = painter->worldMatrix(); + TQWMatrix mat = painter->tqworldMatrix(); painter->setWorldMatrix( mat.translate( shadowDx * painter->zoomFactor(), -shadowDy * painter->zoomFactor()) ); m_object->draw( painter, rect ); m_object->setFill( *fill ); @@ -122,7 +122,7 @@ VShadowDecorator::setState( const VState state ) } void -VShadowDecorator::save( QDomElement& element ) const +VShadowDecorator::save( TQDomElement& element ) const { if( m_state != VObject::deleted ) { @@ -132,12 +132,12 @@ VShadowDecorator::save( QDomElement& element ) const VObject *shadow = m_object->clone(); - VColor black( Qt::black ); + VColor black( TQt::black ); black.setOpacity( m_opacity ); if( shadow->fill()->type() != VFill::none ) shadow->fill()->setColor( black ); shadow->stroke()->setColor( black ); - QWMatrix mat; + TQWMatrix mat; mat.translate( shadowDx, -shadowDy ); VTransformCmd trafo( 0L, mat ); trafo.visit( *shadow ); diff --git a/karbon/plugins/shadoweffect/vshadowdecorator.h b/karbon/plugins/shadoweffect/vshadowdecorator.h index 3ec57e88..0518baf7 100644 --- a/karbon/plugins/shadoweffect/vshadowdecorator.h +++ b/karbon/plugins/shadoweffect/vshadowdecorator.h @@ -29,7 +29,7 @@ class KARBONBASE_EXPORT VShadowDecorator : public VObject { public: - VShadowDecorator( VObject* object, VObject* parent, int distance = 2, int angle = 0, float opacity = 1.0 ); + VShadowDecorator( VObject* object, VObject* tqparent, int distance = 2, int angle = 0, float opacity = 1.0 ); VShadowDecorator( const VShadowDecorator& obj ); virtual ~VShadowDecorator(); @@ -44,8 +44,8 @@ public: virtual void accept( VVisitor& /*visitor*/ ); - virtual void save( QDomElement& ) const; - virtual void load( const QDomElement& ) {} + virtual void save( TQDomElement& ) const; + virtual void load( const TQDomElement& ) {} virtual VObject* clone() const; diff --git a/karbon/plugins/whirlpinch/whirlpinchplugin.cc b/karbon/plugins/whirlpinch/whirlpinchplugin.cc index 5c6c716a..f26fd091 100644 --- a/karbon/plugins/whirlpinch/whirlpinchplugin.cc +++ b/karbon/plugins/whirlpinch/whirlpinchplugin.cc @@ -30,19 +30,19 @@ #include <kdebug.h> -#include <qgroupbox.h> -#include <qlabel.h> +#include <tqgroupbox.h> +#include <tqlabel.h> #include <knuminput.h> typedef KGenericFactory<WhirlPinchPlugin, KarbonView> WhirlPinchPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_whirlpinchplugin, WhirlPinchPluginFactory( "karbonwhirlpinchplugin" ) ) -WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *parent, const char* name, const QStringList & ) : Plugin( parent, name ) +WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) : Plugin( tqparent, name ) { new KAction( i18n( "&Whirl/Pinch..." ), "14_whirl", 0, this, - SLOT( slotWhirlPinch() ), actionCollection(), "path_whirlpinch" ); + TQT_SLOT( slotWhirlPinch() ), actionCollection(), "path_whirlpinch" ); m_whirlPinchDlg = new VWhirlPinchDlg(); m_whirlPinchDlg->setAngle( 20.0 ); @@ -53,28 +53,28 @@ WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *parent, const char* name, const void WhirlPinchPlugin::slotWhirlPinch() { - KarbonPart *part = ((KarbonView *)parent())->part(); + KarbonPart *part = ((KarbonView *)tqparent())->part(); if( part && m_whirlPinchDlg->exec() ) part->addCommand( new VWhirlPinchCmd( &part->document(), m_whirlPinchDlg->angle(), m_whirlPinchDlg->pinch(), m_whirlPinchDlg->radius() ), true ); } -VWhirlPinchDlg::VWhirlPinchDlg( QWidget* parent, const char* name ) - : KDialogBase( parent, name, true, i18n( "Whirl Pinch" ), Ok | Cancel ) +VWhirlPinchDlg::VWhirlPinchDlg( TQWidget* tqparent, const char* name ) + : KDialogBase( tqparent, name, true, i18n( "Whirl Pinch" ), Ok | Cancel ) { // add input fields: - QGroupBox* group = new QGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); + TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); - new QLabel( i18n( "Angle:" ), group ); + new TQLabel( i18n( "Angle:" ), group ); m_angle = new KDoubleNumInput( group ); - new QLabel( i18n( "Pinch:" ), group ); + new TQLabel( i18n( "Pinch:" ), group ); m_pinch = new KDoubleNumInput( group ); - new QLabel( i18n( "Radius:" ), group ); + new TQLabel( i18n( "Radius:" ), group ); m_radius = new KDoubleNumInput( group ); group->setMinimumWidth( 300 ); // signals and slots: - connect( this, SIGNAL( okClicked() ), this, SLOT( accept() ) ); - connect( this, SIGNAL( cancelClicked() ), this, SLOT( reject() ) ); + connect( this, TQT_SIGNAL( okClicked() ), this, TQT_SLOT( accept() ) ); + connect( this, TQT_SIGNAL( cancelClicked() ), this, TQT_SLOT( reject() ) ); setMainWidget( group ); setFixedSize( baseSize() ); @@ -143,7 +143,7 @@ VWhirlPinchCmd::visitVPath( VPath& composite ) void VWhirlPinchCmd::visitVSubpath( VSubpath& path ) { - QWMatrix m; + TQWMatrix m; KoPoint delta; double dist; @@ -192,7 +192,7 @@ VWhirlPinchCmd::visitVSubpath( VSubpath& path ) } // Invalidate bounding box once. - path.invalidateBoundingBox(); + path.tqinvalidateBoundingBox(); } #include "whirlpinchplugin.moc" diff --git a/karbon/plugins/whirlpinch/whirlpinchplugin.h b/karbon/plugins/whirlpinch/whirlpinchplugin.h index ffbff5b2..215f9bcd 100644 --- a/karbon/plugins/whirlpinch/whirlpinchplugin.h +++ b/karbon/plugins/whirlpinch/whirlpinchplugin.h @@ -30,8 +30,9 @@ class VWhirlPinchDlg; class WhirlPinchPlugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - WhirlPinchPlugin( KarbonView *parent, const char* name, const QStringList & ); + WhirlPinchPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); virtual ~WhirlPinchPlugin() {} private slots: @@ -46,9 +47,10 @@ class KDoubleNumInput; class VWhirlPinchDlg : public KDialogBase { Q_OBJECT + TQ_OBJECT public: - VWhirlPinchDlg( QWidget* parent = 0L, const char* name = 0L ); + VWhirlPinchDlg( TQWidget* tqparent = 0L, const char* name = 0L ); double angle() const; double pinch() const; diff --git a/karbon/plugins/zoomtool/vzoomtool.cc b/karbon/plugins/zoomtool/vzoomtool.cc index 60142481..01a80aaa 100644 --- a/karbon/plugins/zoomtool/vzoomtool.cc +++ b/karbon/plugins/zoomtool/vzoomtool.cc @@ -18,8 +18,8 @@ */ -#include <qcursor.h> -#include <qevent.h> +#include <tqcursor.h> +#include <tqevent.h> #include <klocale.h> @@ -34,7 +34,7 @@ VZoomTool::VZoomTool(KarbonView *view ): VTool( view, "tool_zoom_plugin" ) { - m_plusCursor = new QCursor( VCursor::createCursor( VCursor::ZoomPlus ) ); + m_plusCursor = new TQCursor( VCursor::createCursor( VCursor::ZoomPlus ) ); registerTool( this ); } @@ -44,10 +44,10 @@ VZoomTool::~VZoomTool() delete m_plusCursor; } -QString +TQString VZoomTool::contextHelp() { - QString s = i18n( "<qt><b>Zoom tool:</b><br>" ); + TQString s = i18n( "<qt><b>Zoom tool:</b><br>" ); s += i18n( "<i>Click and drag</i> to zoom into a rectangular area.<br>" ); s += i18n( "<i>Right click</i> to zoom out of canvas.<br>" ); s += i18n( "<i>Pressing +/- keys</i><br>to zoom into/out of canvas." ); @@ -61,7 +61,7 @@ VZoomTool::activate() view()->setCursor( *m_plusCursor ); } -QString +TQString VZoomTool::statusText() { return i18n( "Zoom Tool" ); @@ -76,11 +76,11 @@ void VZoomTool::draw() { VPainter *painter = view()->painterFactory()->editpainter(); - painter->setRasterOp( Qt::NotROP ); + painter->setRasterOp( TQt::NotROP ); if( isDragging() ) { - painter->setPen( Qt::DotLine ); + painter->setPen( TQt::DotLine ); painter->newPath(); painter->moveTo( KoPoint( first().x(), first().y() ) ); painter->lineTo( KoPoint( m_current.x(), first().y() ) ); @@ -132,12 +132,12 @@ VZoomTool::mouseDragRelease() } bool -VZoomTool::keyReleased( Qt::Key key ) +VZoomTool::keyReleased( TQt::Key key ) { double zoomChange = 0; - if( key == Qt::Key_Minus ) + if( key == TQt::Key_Minus ) zoomChange = 0.75; - else if( key == Qt::Key_Plus ) + else if( key == TQt::Key_Plus ) zoomChange = 1.50; if( zoomChange != 0 ) @@ -161,7 +161,7 @@ VZoomTool::setup( KActionCollection *collection ) if( m_action == 0 ) { - m_action = new KRadioAction( i18n( "Zoom Tool" ), "14_zoom", Qt::SHIFT+Qt::Key_H, this, SLOT( activate() ), collection, name() ); + m_action = new KRadioAction( i18n( "Zoom Tool" ), "14_zoom", TQt::SHIFT+TQt::Key_H, this, TQT_SLOT( activate() ), collection, name() ); m_action->setToolTip( i18n( "Zoom" ) ); m_action->setExclusiveGroup( "misc" ); //m_ownAction = true; diff --git a/karbon/plugins/zoomtool/vzoomtool.h b/karbon/plugins/zoomtool/vzoomtool.h index 2616c03f..c6f1ffcd 100644 --- a/karbon/plugins/zoomtool/vzoomtool.h +++ b/karbon/plugins/zoomtool/vzoomtool.h @@ -22,11 +22,11 @@ #define __VZOOMTOOL_H__ #include "KoPoint.h" -#include <qstring.h> +#include <tqstring.h> #include "vtool.h" -class QCursor; +class TQCursor; class KarbonView; @@ -40,9 +40,9 @@ public: virtual void deactivate(); virtual void setup( KActionCollection *collection ); - virtual QString uiname() { return i18n( "Zoom Tool" ); } - virtual QString contextHelp(); - virtual QString statusText(); + virtual TQString uiname() { return i18n( "Zoom Tool" ); } + virtual TQString contextHelp(); + virtual TQString statusText(); protected: void draw(); @@ -52,7 +52,7 @@ protected: virtual void mouseDrag(); virtual void mouseDragRelease(); - virtual bool keyReleased( Qt::Key key ); + virtual bool keyReleased( TQt::Key key ); virtual void rightMouseButtonRelease(); @@ -61,7 +61,7 @@ protected: KoPoint m_current; private: - QCursor* m_plusCursor; + TQCursor* m_plusCursor; }; diff --git a/karbon/plugins/zoomtool/zoomtoolplugin.cc b/karbon/plugins/zoomtool/zoomtoolplugin.cc index fefec1d9..5a9a0115 100644 --- a/karbon/plugins/zoomtool/zoomtoolplugin.cc +++ b/karbon/plugins/zoomtool/zoomtoolplugin.cc @@ -30,18 +30,18 @@ typedef KGenericFactory<ZoomToolPlugin> ZoomToolPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_zoomtoolplugin, ZoomToolPluginFactory( "karbonzoomtoolplugin" ) ) -ZoomToolPlugin::ZoomToolPlugin(QObject *parent, const char *name, const QStringList &) - : KParts::Plugin(parent, name) +ZoomToolPlugin::ZoomToolPlugin(TQObject *tqparent, const char *name, const TQStringList &) + : KParts::Plugin(tqparent, name) { setInstance(ZoomToolPluginFactory::instance()); kdDebug() << "Zoom tool plugin. Class: " << className() << ", Parent: " - << parent -> className() + << tqparent -> className() << "\n"; - if ( parent->inherits("KarbonFactory") ) + if ( tqparent->inherits("KarbonFactory") ) { KarbonToolRegistry* r = KarbonToolRegistry::instance(); r -> add(new KarbonToolFactory<VZoomTool>()); diff --git a/karbon/plugins/zoomtool/zoomtoolplugin.h b/karbon/plugins/zoomtool/zoomtoolplugin.h index 488526c7..9501832f 100644 --- a/karbon/plugins/zoomtool/zoomtoolplugin.h +++ b/karbon/plugins/zoomtool/zoomtoolplugin.h @@ -21,7 +21,7 @@ #ifndef __ZOOMTOOLPLUGIN_H__ #define __ZOOMTOOLPLUGIN_H__ -#include <qstring.h> +#include <tqstring.h> #include <kparts/plugin.h> @@ -31,8 +31,9 @@ class ZoomToolPlugin : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: - ZoomToolPlugin(QObject *parent, const char *name, const QStringList &); + ZoomToolPlugin(TQObject *tqparent, const char *name, const TQStringList &); virtual ~ZoomToolPlugin(); }; |