summaryrefslogtreecommitdiffstats
path: root/karbon/plugins/shadoweffect/shadoweffectplugin.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/plugins/shadoweffect/shadoweffectplugin.cc')
-rw-r--r--karbon/plugins/shadoweffect/shadoweffectplugin.cc36
1 files changed, 18 insertions, 18 deletions
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 );
}
}