diff options
Diffstat (limited to 'karbon/plugins')
-rw-r--r-- | karbon/plugins/flattenpath/flattenpathplugin.cc | 10 | ||||
-rw-r--r-- | karbon/plugins/flattenpath/flattenpathplugin.h | 4 | ||||
-rw-r--r-- | karbon/plugins/imagetool/imagetoolplugin.cc | 6 | ||||
-rw-r--r-- | karbon/plugins/imagetool/imagetoolplugin.h | 2 | ||||
-rw-r--r-- | karbon/plugins/insertknots/insertknotsplugin.cc | 8 | ||||
-rw-r--r-- | karbon/plugins/insertknots/insertknotsplugin.h | 4 | ||||
-rw-r--r-- | karbon/plugins/roundcorners/roundcornersplugin.cc | 8 | ||||
-rw-r--r-- | karbon/plugins/roundcorners/roundcornersplugin.h | 4 | ||||
-rw-r--r-- | karbon/plugins/shadoweffect/shadoweffectplugin.cc | 12 | ||||
-rw-r--r-- | karbon/plugins/shadoweffect/shadoweffectplugin.h | 4 | ||||
-rw-r--r-- | karbon/plugins/shadoweffect/vshadowdecorator.cc | 4 | ||||
-rw-r--r-- | karbon/plugins/shadoweffect/vshadowdecorator.h | 2 | ||||
-rw-r--r-- | karbon/plugins/whirlpinch/whirlpinchplugin.cc | 8 | ||||
-rw-r--r-- | karbon/plugins/whirlpinch/whirlpinchplugin.h | 4 | ||||
-rw-r--r-- | karbon/plugins/zoomtool/zoomtoolplugin.cc | 8 | ||||
-rw-r--r-- | karbon/plugins/zoomtool/zoomtoolplugin.h | 2 |
16 files changed, 45 insertions, 45 deletions
diff --git a/karbon/plugins/flattenpath/flattenpathplugin.cc b/karbon/plugins/flattenpath/flattenpathplugin.cc index eff3cebd..aa5fb3cc 100644 --- a/karbon/plugins/flattenpath/flattenpathplugin.cc +++ b/karbon/plugins/flattenpath/flattenpathplugin.cc @@ -33,8 +33,8 @@ typedef KGenericFactory<FlattenPathPlugin, KarbonView> FlattenPathPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_flattenpathplugin, FlattenPathPluginFactory( "karbonflattenpathplugin" ) ) -FlattenPathPlugin::FlattenPathPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) -: Plugin( TQT_TQOBJECT(tqparent), name ) +FlattenPathPlugin::FlattenPathPlugin( KarbonView *parent, const char* name, const TQStringList & ) +: Plugin( TQT_TQOBJECT(parent), name ) { new KAction( i18n( "&Flatten Path..." ), "14_flatten", 0, this, @@ -47,13 +47,13 @@ FlattenPathPlugin::FlattenPathPlugin( KarbonView *tqparent, const char* name, co void FlattenPathPlugin::slotFlattenPath() { - KarbonPart *part = ((KarbonView *)tqparent())->part(); + KarbonPart *part = ((KarbonView *)parent())->part(); if( part && m_flattenPathDlg->exec() ) part->addCommand( new VFlattenCmd( &part->document(), m_flattenPathDlg->flatness() ), true ); } -VFlattenDlg::VFlattenDlg( TQWidget* tqparent, const char* name ) - : KDialogBase( tqparent, name, true, i18n( "Flatten Path" ), Ok | Cancel ) +VFlattenDlg::VFlattenDlg( TQWidget* parent, const char* name ) + : KDialogBase( parent, name, true, i18n( "Flatten Path" ), Ok | Cancel ) { // add input fields on the left: TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); diff --git a/karbon/plugins/flattenpath/flattenpathplugin.h b/karbon/plugins/flattenpath/flattenpathplugin.h index d4a4e3a7..9837f688 100644 --- a/karbon/plugins/flattenpath/flattenpathplugin.h +++ b/karbon/plugins/flattenpath/flattenpathplugin.h @@ -31,7 +31,7 @@ class FlattenPathPlugin : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - FlattenPathPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); + FlattenPathPlugin( KarbonView *parent, const char* name, const TQStringList & ); virtual ~FlattenPathPlugin() {} private slots: @@ -49,7 +49,7 @@ class VFlattenDlg : public KDialogBase TQ_OBJECT public: - VFlattenDlg( TQWidget* tqparent = 0L, const char* name = 0L ); + VFlattenDlg( TQWidget* parent = 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 2bb9962a..5a0d49a8 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(TQObject *tqparent, const char *name, const TQStringList &) : KParts::Plugin(tqparent, name) +ImageToolPlugin::ImageToolPlugin(TQObject *parent, const char *name, const TQStringList &) : KParts::Plugin(parent, name) { setInstance(ImageToolPluginFactory::instance()); kdDebug() << "VImageToolPlugin. Class: " << className() << ", Parent: " - << tqparent -> className() + << parent -> className() << "\n"; - if ( tqparent->inherits("KarbonFactory") ) + if ( parent->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 236b0ac6..ecd02709 100644 --- a/karbon/plugins/imagetool/imagetoolplugin.h +++ b/karbon/plugins/imagetool/imagetoolplugin.h @@ -32,7 +32,7 @@ class ImageToolPlugin : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - ImageToolPlugin(TQObject *tqparent, const char *name, const TQStringList &); + ImageToolPlugin(TQObject *parent, const char *name, const TQStringList &); virtual ~ImageToolPlugin(); }; diff --git a/karbon/plugins/insertknots/insertknotsplugin.cc b/karbon/plugins/insertknots/insertknotsplugin.cc index 9f462179..55fcde76 100644 --- a/karbon/plugins/insertknots/insertknotsplugin.cc +++ b/karbon/plugins/insertknots/insertknotsplugin.cc @@ -33,7 +33,7 @@ typedef KGenericFactory<InsertKnotsPlugin, KarbonView> InsertKnotsPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_insertknotsplugin, InsertKnotsPluginFactory( "karboninsertknotsplugin" ) ) -InsertKnotsPlugin::InsertKnotsPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) : Plugin( TQT_TQOBJECT(tqparent), name ) +InsertKnotsPlugin::InsertKnotsPlugin( KarbonView *parent, const char* name, const TQStringList & ) : Plugin( TQT_TQOBJECT(parent), name ) { new KAction( i18n( "&Insert Knots..." ), "14_insertknots", 0, this, @@ -45,13 +45,13 @@ InsertKnotsPlugin::InsertKnotsPlugin( KarbonView *tqparent, const char* name, co void InsertKnotsPlugin::slotInsertKnots() { - KarbonPart *part = ((KarbonView *)tqparent())->part(); + KarbonPart *part = ((KarbonView *)parent())->part(); if( part && m_insertKnotsDlg->exec() ) part->addCommand( new VInsertKnotsCmd( &part->document(), m_insertKnotsDlg->knots() ), true ); } -VInsertKnotsDlg::VInsertKnotsDlg( TQWidget* tqparent, const char* name ) - : KDialogBase( tqparent, name, true, i18n( "Insert Knots" ), Ok | Cancel ) +VInsertKnotsDlg::VInsertKnotsDlg( TQWidget* parent, const char* name ) + : KDialogBase( parent, name, true, i18n( "Insert Knots" ), Ok | Cancel ) { // add input fields: TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); diff --git a/karbon/plugins/insertknots/insertknotsplugin.h b/karbon/plugins/insertknots/insertknotsplugin.h index 4bd2b212..f8ea9a77 100644 --- a/karbon/plugins/insertknots/insertknotsplugin.h +++ b/karbon/plugins/insertknots/insertknotsplugin.h @@ -32,7 +32,7 @@ class InsertKnotsPlugin : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - InsertKnotsPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); + InsertKnotsPlugin( KarbonView *parent, const char* name, const TQStringList & ); virtual ~InsertKnotsPlugin() {} private slots: @@ -50,7 +50,7 @@ class VInsertKnotsDlg : public KDialogBase TQ_OBJECT public: - VInsertKnotsDlg( TQWidget* tqparent = 0L, const char* name = 0L ); + VInsertKnotsDlg( TQWidget* parent = 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 7003e510..28ede19d 100644 --- a/karbon/plugins/roundcorners/roundcornersplugin.cc +++ b/karbon/plugins/roundcorners/roundcornersplugin.cc @@ -32,7 +32,7 @@ typedef KGenericFactory<VRoundCornersPlugin, KarbonView> VRoundCornersPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_roundcornersplugin, VRoundCornersPluginFactory( "karbonroundcornersplugin" ) ) -VRoundCornersPlugin::VRoundCornersPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) : Plugin( TQT_TQOBJECT(tqparent), name ) +VRoundCornersPlugin::VRoundCornersPlugin( KarbonView *parent, const char* name, const TQStringList & ) : Plugin( TQT_TQOBJECT(parent), name ) { new KAction( i18n( "&Round Corners..." ), "14_roundcorners", 0, this, @@ -49,14 +49,14 @@ VRoundCornersPlugin::~VRoundCornersPlugin() void VRoundCornersPlugin::slotRoundCorners() { - KarbonPart *part = ((KarbonView *)tqparent())->part(); + KarbonPart *part = ((KarbonView *)parent())->part(); if( part && m_roundCornersDlg->exec() ) part->addCommand( new VRoundCornersCmd( &part->document(), m_roundCornersDlg->radius() ), true ); } -VRoundCornersDlg::VRoundCornersDlg( TQWidget* tqparent, const char* name ) - : KDialogBase( tqparent, name, true, i18n( "Polygonize" ), Ok | Cancel ) +VRoundCornersDlg::VRoundCornersDlg( TQWidget* parent, const char* name ) + : KDialogBase( parent, name, true, i18n( "Polygonize" ), Ok | Cancel ) { // add input: TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); diff --git a/karbon/plugins/roundcorners/roundcornersplugin.h b/karbon/plugins/roundcorners/roundcornersplugin.h index 74e49f88..7806375d 100644 --- a/karbon/plugins/roundcorners/roundcornersplugin.h +++ b/karbon/plugins/roundcorners/roundcornersplugin.h @@ -33,7 +33,7 @@ class KARBONBASE_EXPORT VRoundCornersPlugin : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - VRoundCornersPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); + VRoundCornersPlugin( KarbonView *parent, const char* name, const TQStringList & ); virtual ~VRoundCornersPlugin(); private slots: @@ -51,7 +51,7 @@ class VRoundCornersDlg : public KDialogBase TQ_OBJECT public: - VRoundCornersDlg( TQWidget* tqparent = 0L, const char* name = 0L ); + VRoundCornersDlg( TQWidget* parent = 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 7040b042..dea09571 100644 --- a/karbon/plugins/shadoweffect/shadoweffectplugin.cc +++ b/karbon/plugins/shadoweffect/shadoweffectplugin.cc @@ -37,8 +37,8 @@ typedef KGenericFactory<ShadowEffectPlugin, KarbonView> ShadowEffectPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_shadoweffectplugin, ShadowEffectPluginFactory( "karbonshadoweffectplugin" ) ) -ShadowEffectPlugin::ShadowEffectPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) -: Plugin( TQT_TQOBJECT(tqparent), name ) +ShadowEffectPlugin::ShadowEffectPlugin( KarbonView *parent, const char* name, const TQStringList & ) +: Plugin( TQT_TQOBJECT(parent), name ) { new KAction( i18n( "&Shadow Effect..." ), "shadowRB", 0, this, @@ -52,13 +52,13 @@ ShadowEffectPlugin::ShadowEffectPlugin( KarbonView *tqparent, const char* name, void ShadowEffectPlugin::slotShadowEffect() { - KarbonPart *part = ((KarbonView *)tqparent())->part(); + KarbonPart *part = ((KarbonView *)parent())->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( TQWidget* tqparent, const char* name ) - : KDialogBase( tqparent, name, true, i18n( "Create Shadow Effect" ), Ok | Cancel ) +VShadowEffectDlg::VShadowEffectDlg( TQWidget* parent, const char* name ) + : KDialogBase( parent, name, true, i18n( "Create Shadow Effect" ), Ok | Cancel ) { // add input fields on the left: TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); @@ -170,7 +170,7 @@ VCreateShadowCmd::execute() if(newObject) { // Insert new tqshape right before old tqshape. - itr.current()->tqparent()->insertInfrontOf( + itr.current()->parent()->insertInfrontOf( newObject, itr.current() ); // Add new tqshape to list of new objects. diff --git a/karbon/plugins/shadoweffect/shadoweffectplugin.h b/karbon/plugins/shadoweffect/shadoweffectplugin.h index fc500bb7..890cb209 100644 --- a/karbon/plugins/shadoweffect/shadoweffectplugin.h +++ b/karbon/plugins/shadoweffect/shadoweffectplugin.h @@ -33,7 +33,7 @@ class ShadowEffectPlugin : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - ShadowEffectPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); + ShadowEffectPlugin( KarbonView *parent, const char* name, const TQStringList & ); virtual ~ShadowEffectPlugin() {} private slots: @@ -51,7 +51,7 @@ class VShadowEffectDlg : public KDialogBase TQ_OBJECT public: - VShadowEffectDlg( TQWidget* tqparent = 0L, const char* name = 0L ); + VShadowEffectDlg( TQWidget* parent = 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 e6b2f378..b3c00bdd 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* tqparent, int distance, int angle, float opacity ) - : VObject( tqparent ), m_object( object ), m_distance( distance ), m_angle( angle ), m_opacity( opacity ) +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 ) { } diff --git a/karbon/plugins/shadoweffect/vshadowdecorator.h b/karbon/plugins/shadoweffect/vshadowdecorator.h index 0518baf7..fcaa400c 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* tqparent, int distance = 2, int angle = 0, float opacity = 1.0 ); + VShadowDecorator( VObject* object, VObject* parent, int distance = 2, int angle = 0, float opacity = 1.0 ); VShadowDecorator( const VShadowDecorator& obj ); virtual ~VShadowDecorator(); diff --git a/karbon/plugins/whirlpinch/whirlpinchplugin.cc b/karbon/plugins/whirlpinch/whirlpinchplugin.cc index 9ad72ed5..ec8e7075 100644 --- a/karbon/plugins/whirlpinch/whirlpinchplugin.cc +++ b/karbon/plugins/whirlpinch/whirlpinchplugin.cc @@ -38,7 +38,7 @@ typedef KGenericFactory<WhirlPinchPlugin, KarbonView> WhirlPinchPluginFactory; K_EXPORT_COMPONENT_FACTORY( karbon_whirlpinchplugin, WhirlPinchPluginFactory( "karbonwhirlpinchplugin" ) ) -WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *tqparent, const char* name, const TQStringList & ) : Plugin( TQT_TQOBJECT(tqparent), name ) +WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *parent, const char* name, const TQStringList & ) : Plugin( TQT_TQOBJECT(parent), name ) { new KAction( i18n( "&Whirl/Pinch..." ), "14_whirl", 0, this, @@ -53,13 +53,13 @@ WhirlPinchPlugin::WhirlPinchPlugin( KarbonView *tqparent, const char* name, cons void WhirlPinchPlugin::slotWhirlPinch() { - KarbonPart *part = ((KarbonView *)tqparent())->part(); + KarbonPart *part = ((KarbonView *)parent())->part(); if( part && m_whirlPinchDlg->exec() ) part->addCommand( new VWhirlPinchCmd( &part->document(), m_whirlPinchDlg->angle(), m_whirlPinchDlg->pinch(), m_whirlPinchDlg->radius() ), true ); } -VWhirlPinchDlg::VWhirlPinchDlg( TQWidget* tqparent, const char* name ) - : KDialogBase( tqparent, name, true, i18n( "Whirl Pinch" ), Ok | Cancel ) +VWhirlPinchDlg::VWhirlPinchDlg( TQWidget* parent, const char* name ) + : KDialogBase( parent, name, true, i18n( "Whirl Pinch" ), Ok | Cancel ) { // add input fields: TQGroupBox* group = new TQGroupBox( 2, Qt::Horizontal, i18n( "Properties" ), this ); diff --git a/karbon/plugins/whirlpinch/whirlpinchplugin.h b/karbon/plugins/whirlpinch/whirlpinchplugin.h index 215f9bcd..bf9d16b4 100644 --- a/karbon/plugins/whirlpinch/whirlpinchplugin.h +++ b/karbon/plugins/whirlpinch/whirlpinchplugin.h @@ -32,7 +32,7 @@ class WhirlPinchPlugin : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - WhirlPinchPlugin( KarbonView *tqparent, const char* name, const TQStringList & ); + WhirlPinchPlugin( KarbonView *parent, const char* name, const TQStringList & ); virtual ~WhirlPinchPlugin() {} private slots: @@ -50,7 +50,7 @@ class VWhirlPinchDlg : public KDialogBase TQ_OBJECT public: - VWhirlPinchDlg( TQWidget* tqparent = 0L, const char* name = 0L ); + VWhirlPinchDlg( TQWidget* parent = 0L, const char* name = 0L ); double angle() const; double pinch() const; diff --git a/karbon/plugins/zoomtool/zoomtoolplugin.cc b/karbon/plugins/zoomtool/zoomtoolplugin.cc index 5a9a0115..3ad73ee9 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(TQObject *tqparent, const char *name, const TQStringList &) - : KParts::Plugin(tqparent, name) +ZoomToolPlugin::ZoomToolPlugin(TQObject *parent, const char *name, const TQStringList &) + : KParts::Plugin(parent, name) { setInstance(ZoomToolPluginFactory::instance()); kdDebug() << "Zoom tool plugin. Class: " << className() << ", Parent: " - << tqparent -> className() + << parent -> className() << "\n"; - if ( tqparent->inherits("KarbonFactory") ) + if ( parent->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 9501832f..62c7594b 100644 --- a/karbon/plugins/zoomtool/zoomtoolplugin.h +++ b/karbon/plugins/zoomtool/zoomtoolplugin.h @@ -33,7 +33,7 @@ class ZoomToolPlugin : public KParts::Plugin Q_OBJECT TQ_OBJECT public: - ZoomToolPlugin(TQObject *tqparent, const char *name, const TQStringList &); + ZoomToolPlugin(TQObject *parent, const char *name, const TQStringList &); virtual ~ZoomToolPlugin(); }; |