summaryrefslogtreecommitdiffstats
path: root/karbon/dockers/vtransformdocker.cc
diff options
context:
space:
mode:
Diffstat (limited to 'karbon/dockers/vtransformdocker.cc')
-rw-r--r--karbon/dockers/vtransformdocker.cc94
1 files changed, 47 insertions, 47 deletions
diff --git a/karbon/dockers/vtransformdocker.cc b/karbon/dockers/vtransformdocker.cc
index 56b07161..1616b47e 100644
--- a/karbon/dockers/vtransformdocker.cc
+++ b/karbon/dockers/vtransformdocker.cc
@@ -18,11 +18,11 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qwidget.h>
-#include <qwmatrix.h>
-#include <qtooltip.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqwidget.h>
+#include <tqwmatrix.h>
+#include <tqtooltip.h>
#include <klocale.h>
#include <KoMainWindow.h>
@@ -37,62 +37,62 @@
#include "vtransformdocker.h"
-VTransformDocker::VTransformDocker( KarbonPart* part, KarbonView* parent, const char* /*name*/ )
- : QWidget(), m_part ( part ), m_view( parent )
+VTransformDocker::VTransformDocker( KarbonPart* part, KarbonView* tqparent, const char* /*name*/ )
+ : TQWidget(), m_part ( part ), m_view( tqparent )
{
setCaption( i18n( "Transform" ) );
- QGridLayout *mainLayout = new QGridLayout( this, 5, 5 );
+ TQGridLayout *mainLayout = new TQGridLayout( this, 5, 5 );
//X: (TODO: Set 5000 limit to real Karbon14 limit)
- QLabel* xLabel = new QLabel( i18n ( "X:" ), this );
+ TQLabel* xLabel = new TQLabel( i18n ( "X:" ), this );
mainLayout->addWidget( xLabel, 0, 0 );
m_x = new KoUnitDoubleSpinBox( this, -5000.0, 5000.0, 1.0, 10.0, m_part->unit(), 1 );
mainLayout->addWidget( m_x, 0, 1 );
- QToolTip::add( m_x, i18n("Set x-position of actual selection") );
+ TQToolTip::add( m_x, i18n("Set x-position of actual selection") );
//Y: (TODO: Set 5000 limit to real Karbon14 limit)
- QLabel* yLabel = new QLabel( i18n ( "Y:" ), this );
+ TQLabel* yLabel = new TQLabel( i18n ( "Y:" ), this );
mainLayout->addWidget( yLabel, 0, 2 );
m_y = new KoUnitDoubleSpinBox( this, -5000.0, 5000.0, 1.0, 10.0, m_part->unit(), 1 );
mainLayout->addWidget( m_y, 0, 3 );
- QToolTip::add( m_y, i18n("Set y-position of actual selection") );
+ TQToolTip::add( m_y, i18n("Set y-position of actual selection") );
//Width: (TODO: Set 5000 limit to real Karbon14 limit)
- QLabel* wLabel = new QLabel( i18n ( "W:" ), this );
+ TQLabel* wLabel = new TQLabel( i18n ( "W:" ), this );
mainLayout->addWidget( wLabel, 1, 0 );
m_width = new KoUnitDoubleSpinBox( this, 0.0, 5000.0, 1.0, 10.0, m_part->unit(), 1 );
mainLayout->addWidget( m_width, 1, 1 );
- QToolTip::add( m_width, i18n("Set width of actual selection") );
+ TQToolTip::add( m_width, i18n("Set width of actual selection") );
//Height: (TODO: Set 5000 limit to real Karbon14 limit)
- QLabel* hLabel = new QLabel( i18n ( "H:" ), this );
+ TQLabel* hLabel = new TQLabel( i18n ( "H:" ), this );
mainLayout->addWidget( hLabel, 1, 2 );
m_height = new KoUnitDoubleSpinBox( this, 0.0, 5000.0, 1.0, 10.0, m_part->unit(), 1 );
mainLayout->addWidget( m_height, 1, 3 );
- QToolTip::add( m_height, i18n("Set height of actual selection") );
+ TQToolTip::add( m_height, i18n("Set height of actual selection") );
//TODO: Add Rotation, Shear
//ROTATE: (TODO: Set 5000 limit to real Karbon14 limit)
- QLabel* rLabel = new QLabel( i18n ( "R:" ), this );
+ TQLabel* rLabel = new TQLabel( i18n ( "R:" ), this );
mainLayout->addWidget( rLabel, 3, 0 );
m_rotate = new KDoubleSpinBox( -360.0, 360.0, 1.0, 10.0, 1, this );
mainLayout->addWidget( m_rotate, 3, 1 );
- QToolTip::add( m_rotate, i18n("Rotate actual selection") );
+ TQToolTip::add( m_rotate, i18n("Rotate actual selection") );
//X-Shear: (TODO: Set 5000 limit to real Karbon14 limit)
- QLabel* sxLabel = new QLabel( i18n ( "SX:" ), this );
+ TQLabel* sxLabel = new TQLabel( i18n ( "SX:" ), this );
mainLayout->addWidget( sxLabel, 2, 0 );
m_shearX = new KoUnitDoubleSpinBox( this, -5000.0, 5000.0, 1.0, 10.0, m_part->unit(), 1 );
mainLayout->addWidget( m_shearX, 2, 1 );
- QToolTip::add( m_shearX, i18n("Shear actual selection in x-direction") );
+ TQToolTip::add( m_shearX, i18n("Shear actual selection in x-direction") );
//Y-Shear: (TODO: Set 5000 limit to real Karbon14 limit)
- QLabel* syLabel = new QLabel( i18n ( "SY:" ), this );
+ TQLabel* syLabel = new TQLabel( i18n ( "SY:" ), this );
mainLayout->addWidget( syLabel, 2, 2 );
m_shearY = new KoUnitDoubleSpinBox( this, -5000.0, 5000.0, 1.0, 10.0, m_part->unit(), 1 );
mainLayout->addWidget( m_shearY, 2, 3 );
- QToolTip::add( m_shearY, i18n("Shear actual selection in y-direction") );
+ TQToolTip::add( m_shearY, i18n("Shear actual selection in y-direction") );
mainLayout->setRowStretch( 4, 1 );
mainLayout->setColStretch( 1, 1 );
@@ -106,23 +106,23 @@ VTransformDocker::enableSignals( bool enable )
{
if( enable )
{
- connect( m_x, SIGNAL( valueChanged( double ) ), this, SLOT( translate() ) );
- connect( m_y, SIGNAL( valueChanged( double ) ), this, SLOT( translate() ) );
- connect( m_width, SIGNAL( valueChanged( double ) ), this, SLOT( scale() ) );
- connect( m_height, SIGNAL( valueChanged( double ) ), this, SLOT( scale() ) );
- connect( m_shearX, SIGNAL( valueChanged( double ) ), this, SLOT( shearX() ) );
- connect( m_shearY, SIGNAL( valueChanged( double ) ), this, SLOT( shearY() ) );
- connect( m_rotate, SIGNAL( valueChanged( double ) ), this, SLOT( rotate() ) );
+ connect( m_x, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( translate() ) );
+ connect( m_y, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( translate() ) );
+ connect( m_width, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( scale() ) );
+ connect( m_height, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( scale() ) );
+ connect( m_shearX, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( shearX() ) );
+ connect( m_shearY, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( shearY() ) );
+ connect( m_rotate, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( rotate() ) );
}
else
{
- disconnect( m_x, SIGNAL( valueChanged( double ) ), this, SLOT( translate() ) );
- disconnect( m_y, SIGNAL( valueChanged( double ) ), this, SLOT( translate() ) );
- disconnect( m_width, SIGNAL( valueChanged( double ) ), this, SLOT( scale() ) );
- disconnect( m_height, SIGNAL( valueChanged( double ) ), this, SLOT( scale() ) );
- disconnect( m_shearX, SIGNAL( valueChanged( double ) ), this, SLOT( shearX() ) );
- disconnect( m_shearY, SIGNAL( valueChanged( double ) ), this, SLOT( shearY() ) );
- disconnect( m_rotate, SIGNAL( valueChanged( double ) ), this, SLOT( rotate() ) );
+ disconnect( m_x, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( translate() ) );
+ disconnect( m_y, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( translate() ) );
+ disconnect( m_width, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( scale() ) );
+ disconnect( m_height, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( scale() ) );
+ disconnect( m_shearX, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( shearX() ) );
+ disconnect( m_shearY, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( shearY() ) );
+ disconnect( m_rotate, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( rotate() ) );
}
}
@@ -172,7 +172,7 @@ VTransformDocker::translate()
VTranslateCmd *cmd = new VTranslateCmd( &m_view->part()->document(), newX-rect.x(), newY-rect.y(), false );
m_view->part()->addCommand( cmd );
}
- m_part->repaintAllViews( true );
+ m_part->tqrepaintAllViews( true );
}
void
@@ -190,7 +190,7 @@ VTransformDocker::scale()
VScaleCmd *cmd = new VScaleCmd( &m_view->part()->document(), rect.topLeft(), newW/rect.width(), newH/rect.height(), false );
m_view->part()->addCommand( cmd );
}
- m_part->repaintAllViews( true );
+ m_part->tqrepaintAllViews( true );
}
void
@@ -219,10 +219,10 @@ VTransformDocker::shearX()
shear /= double(rect.width()*0.5);
VShearCmd *cmd = new VShearCmd( &m_view->part()->document(), rect.center(), shear, 0 );
m_view->part()->addCommand( cmd );
- m_part->repaintAllViews( true );
- disconnect( m_shearX, SIGNAL( valueChanged( double ) ), this, SLOT( shearX() ) );
+ m_part->tqrepaintAllViews( true );
+ disconnect( m_shearX, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( shearX() ) );
m_shearX->changeValue(0.0);
- connect( m_shearX, SIGNAL( valueChanged( double ) ), this, SLOT( shearX() ) );
+ connect( m_shearX, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( shearX() ) );
}
}
@@ -237,10 +237,10 @@ VTransformDocker::shearY()
shear /= double(rect.height()*0.5);
VShearCmd *cmd = new VShearCmd( &m_view->part()->document(), rect.center(), 0, shear );
m_view->part()->addCommand( cmd );
- m_part->repaintAllViews( true );
- disconnect( m_shearY, SIGNAL( valueChanged( double ) ), this, SLOT( shearY() ) );
+ m_part->tqrepaintAllViews( true );
+ disconnect( m_shearY, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( shearY() ) );
m_shearY->changeValue(0.0);
- connect( m_shearY, SIGNAL( valueChanged( double ) ), this, SLOT( shearY() ) );
+ connect( m_shearY, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( shearY() ) );
}
}
@@ -254,10 +254,10 @@ VTransformDocker::rotate()
KoPoint center = m_view->part()->document().selection()->boundingBox().center();
VRotateCmd *cmd = new VRotateCmd( &m_view->part()->document(), center, angle );
m_view->part()->addCommand( cmd );
- m_part->repaintAllViews( true );
- disconnect( m_rotate, SIGNAL( valueChanged( double ) ), this, SLOT( rotate() ) );
+ m_part->tqrepaintAllViews( true );
+ disconnect( m_rotate, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( rotate() ) );
m_rotate->setValue(0.0);
- connect( m_rotate, SIGNAL( valueChanged( double ) ), this, SLOT( rotate() ) );
+ connect( m_rotate, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( rotate() ) );
}
}