diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-02 19:23:46 +0000 |
commit | eba47f8f0637f451e21348187591e1f1fd58ac74 (patch) | |
tree | 448f10b95c656604acc331a3236c1e59bde5c1ad /kview/modules/scale | |
parent | c7e8736c69373f48b0401319757c742e8607431a (diff) | |
download | tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip |
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kview/modules/scale')
-rw-r--r-- | kview/modules/scale/kfloatspinbox.cpp | 20 | ||||
-rw-r--r-- | kview/modules/scale/kfloatspinbox.h | 6 | ||||
-rw-r--r-- | kview/modules/scale/kview_scale.cpp | 94 | ||||
-rw-r--r-- | kview/modules/scale/kview_scale.h | 2 | ||||
-rw-r--r-- | kview/modules/scale/scaledlg.cpp | 98 | ||||
-rw-r--r-- | kview/modules/scale/scaledlg.h | 22 |
6 files changed, 121 insertions, 121 deletions
diff --git a/kview/modules/scale/kfloatspinbox.cpp b/kview/modules/scale/kfloatspinbox.cpp index e5ce8465..936713f6 100644 --- a/kview/modules/scale/kfloatspinbox.cpp +++ b/kview/modules/scale/kfloatspinbox.cpp @@ -21,7 +21,7 @@ #include "kfloatspinbox.h" #if defined(QT_ACCESSIBILITY_SUPPORT) -#include <qaccessible.h> +#include <tqaccessible.h> #endif #include <knumvalidator.h> @@ -37,12 +37,12 @@ int pow( int a, int b ) return ret; } -KFloatSpinBox::KFloatSpinBox( float minValue, float maxValue, float step, unsigned int precision, QWidget * parent, const char * name ) - : QSpinBox( parent, name ) +KFloatSpinBox::KFloatSpinBox( float minValue, float maxValue, float step, unsigned int precision, TQWidget * parent, const char * name ) + : TQSpinBox( parent, name ) , m_doselection( true ) { setRange( minValue, maxValue, step, precision ); - connect( this, SIGNAL( valueChanged( int ) ), this, SLOT( slotValueChanged( int ) ) ); + connect( this, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( slotValueChanged( int ) ) ); } KFloatSpinBox::~KFloatSpinBox() @@ -55,7 +55,7 @@ void KFloatSpinBox::setRange( float minValue, float maxValue, float step, unsign m_min = (int)( minValue * m_factor ); m_max = (int)( maxValue * m_factor ); m_step = (int)( step * m_factor ); - QSpinBox::setRange( m_min, m_max ); + TQSpinBox::setRange( m_min, m_max ); setSteps( m_step, m_step * 10 ); if( precision == 0 ) setValidator( new KIntValidator( m_min, m_max, this, 10, "KFloatValidator::KIntValidator" ) ); @@ -65,14 +65,14 @@ void KFloatSpinBox::setRange( float minValue, float maxValue, float step, unsign float KFloatSpinBox::value() const { - float ret = (float)QSpinBox::value() / m_factor; + float ret = (float)TQSpinBox::value() / m_factor; kdDebug( 4630 ) << ret << endl; return ret; } void KFloatSpinBox::setValue( float value ) { - QSpinBox::setValue( (int)( value * m_factor ) ); + TQSpinBox::setValue( (int)( value * m_factor ) ); } void KFloatSpinBox::setValueBlocking( float value ) @@ -84,7 +84,7 @@ void KFloatSpinBox::setValueBlocking( float value ) m_doselection = true; } -QString KFloatSpinBox::mapValueToText( int value ) +TQString KFloatSpinBox::mapValueToText( int value ) { return KGlobal::locale()->formatNumber( (float)value / (float)m_factor, 4 ); } @@ -97,13 +97,13 @@ int KFloatSpinBox::mapTextToValue( bool * ok ) void KFloatSpinBox::valueChange() { if( m_doselection ) - QSpinBox::valueChange(); + TQSpinBox::valueChange(); else { updateDisplay(); emit valueChanged( value() ); #if defined(QT_ACCESSIBILITY_SUPPORT) - QAccessible::updateAccessibility( this, 0, QAccessible::ValueChanged ); + TQAccessible::updateAccessibility( this, 0, TQAccessible::ValueChanged ); #endif } } diff --git a/kview/modules/scale/kfloatspinbox.h b/kview/modules/scale/kfloatspinbox.h index 9407a0f1..6424df38 100644 --- a/kview/modules/scale/kfloatspinbox.h +++ b/kview/modules/scale/kfloatspinbox.h @@ -21,13 +21,13 @@ #ifndef __kfloatspinbox_h_ #define __kfloatspinbox_h_ -#include <qspinbox.h> +#include <tqspinbox.h> class KFloatSpinBox : public QSpinBox { Q_OBJECT public: - KFloatSpinBox( float minValue, float maxValue, float step, unsigned int precision, QWidget * parent = 0, const char * name = 0 ); + KFloatSpinBox( float minValue, float maxValue, float step, unsigned int precision, TQWidget * parent = 0, const char * name = 0 ); virtual ~KFloatSpinBox(); void setRange( float minValue, float maxValue, float step, unsigned int precision ); @@ -43,7 +43,7 @@ class KFloatSpinBox : public QSpinBox virtual void setValueBlocking( float value ); protected: - virtual QString mapValueToText( int value ); + virtual TQString mapValueToText( int value ); virtual int mapTextToValue( bool * ok ); virtual void valueChange(); diff --git a/kview/modules/scale/kview_scale.cpp b/kview/modules/scale/kview_scale.cpp index aa8dec82..29e71b13 100644 --- a/kview/modules/scale/kview_scale.cpp +++ b/kview/modules/scale/kview_scale.cpp @@ -21,8 +21,8 @@ #include "kview_scale.h" #include "scaledlg.h" -#include <qimage.h> -#include <qvbox.h> +#include <tqimage.h> +#include <tqvbox.h> #include <kaction.h> #include <klocale.h> @@ -35,7 +35,7 @@ typedef KGenericFactory<KViewScale> KViewScaleFactory; K_EXPORT_COMPONENT_FACTORY( kview_scale, KViewScaleFactory( "kview_scale" ) ) -KViewScale::KViewScale( QObject* parent, const char* name, const QStringList & ) +KViewScale::KViewScale( TQObject* parent, const char* name, const TQStringList & ) : Plugin( parent, name ) , m_pViewer( 0 ) , m_pCanvas( 0 ) @@ -47,7 +47,7 @@ KViewScale::KViewScale( QObject* parent, const char* name, const QStringList & ) m_pCanvas = m_pViewer->canvas(); (void) new KAction( i18n( "&Scale Image..." ), 0, 0, - this, SLOT( slotScaleDlg() ), + this, TQT_SLOT( slotScaleDlg() ), actionCollection(), "plugin_scale" ); } else @@ -64,36 +64,36 @@ void KViewScale::slotScaleDlg() KDialogBase dlg( m_pViewer->widget(), "KView scale dialog", true, i18n( "Scale Image" ), KDialogBase::Ok|KDialogBase::Cancel ); ScaleDlg widget( m_pCanvas->imageSize(), dlg.makeVBoxMainWidget() ); #if 0 - QVBox * layout = dlg.makeVBoxMainWidget(); + TQVBox * layout = dlg.makeVBoxMainWidget(); - QGroupBox * pixelgroup = new QGroupBox( i18n( "Pixel Dimensions" ), layout ); - QGridLayout * pixelgroupgrid = new QGridLayout( pixelgroup, 1, 1, 0, KDialog::spacingHint() ); + TQGroupBox * pixelgroup = new TQGroupBox( i18n( "Pixel Dimensions" ), layout ); + TQGridLayout * pixelgroupgrid = new TQGridLayout( pixelgroup, 1, 1, 0, KDialog::spacingHint() ); pixelgroupgrid->setSpacing( KDialog::spacingHint() ); pixelgroupgrid->setMargin( KDialog::marginHint() ); - QLabel * label; - QSize imagesize = m_pCanvas->imageSize(); + TQLabel * label; + TQSize imagesize = m_pCanvas->imageSize(); // show original width - label = new QLabel( i18n( "Original width:" ), pixelgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "Original width:" ), pixelgroup ); + label->setAlignment( TQLabel::AlignRight ); pixelgroupgrid->addWidget( label, 0, 0 ); - pixelgroupgrid->addWidget( new QLabel( QString::number( imagesize.width() ), pixelgroup ), 0, 1 ); - label = new QLabel( i18n( "Height:" ), pixelgroup ); - label->setAlignment( QLabel::AlignRight ); + pixelgroupgrid->addWidget( new TQLabel( TQString::number( imagesize.width() ), pixelgroup ), 0, 1 ); + label = new TQLabel( i18n( "Height:" ), pixelgroup ); + label->setAlignment( TQLabel::AlignRight ); pixelgroupgrid->addWidget( label, 1, 0 ); - pixelgroupgrid->addWidget( new QLabel( QString::number( imagesize.height() ), pixelgroup ), 1, 1 ); + pixelgroupgrid->addWidget( new TQLabel( TQString::number( imagesize.height() ), pixelgroup ), 1, 1 ); pixelgroupgrid->addRowSpacing( 2, KDialog::spacingHint() ); - label = new QLabel( i18n( "New width:" ), pixelgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "New width:" ), pixelgroup ); + label->setAlignment( TQLabel::AlignRight ); pixelgroupgrid->addWidget( label, 3, 0 ); - label = new QLabel( i18n( "Height:" ), pixelgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "Height:" ), pixelgroup ); + label->setAlignment( TQLabel::AlignRight ); pixelgroupgrid->addWidget( label, 4, 0 ); - QSpinBox * newwidth = new QSpinBox( 1, 100000, 1, pixelgroup ); + TQSpinBox * newwidth = new TQSpinBox( 1, 100000, 1, pixelgroup ); pixelgroupgrid->addWidget( newwidth, 3, 1 ); - QSpinBox * newheight = new QSpinBox( 1, 100000, 1, pixelgroup ); + TQSpinBox * newheight = new TQSpinBox( 1, 100000, 1, pixelgroup ); pixelgroupgrid->addWidget( newheight, 4, 1 ); KComboBox * newsizeunit = new KComboBox( pixelgroup ); newsizeunit->insertItem( i18n( "px" ) ); @@ -102,34 +102,34 @@ void KViewScale::slotScaleDlg() pixelgroupgrid->addRowSpacing( 5, KDialog::spacingHint() ); - label = new QLabel( i18n( "Ratio X:" ), pixelgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "Ratio X:" ), pixelgroup ); + label->setAlignment( TQLabel::AlignRight ); pixelgroupgrid->addWidget( label, 6, 0 ); - label = new QLabel( i18n( "Y:" ), pixelgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "Y:" ), pixelgroup ); + label->setAlignment( TQLabel::AlignRight ); pixelgroupgrid->addWidget( label, 7, 0 ); - QSpinBox * ratiox = new QSpinBox( pixelgroup ); - ratiox->setValidator( new QDoubleValidator( 0.0001, 10000, 4, ratiox ) ); + TQSpinBox * ratiox = new TQSpinBox( pixelgroup ); + ratiox->setValidator( new TQDoubleValidator( 0.0001, 10000, 4, ratiox ) ); pixelgroupgrid->addWidget( ratiox, 6, 1 ); - QSpinBox * ratioy = new QSpinBox( pixelgroup ); - ratioy->setValidator( new QDoubleValidator( 0.0001, 10000, 4, ratioy ) ); + TQSpinBox * ratioy = new TQSpinBox( pixelgroup ); + ratioy->setValidator( new TQDoubleValidator( 0.0001, 10000, 4, ratioy ) ); pixelgroupgrid->addWidget( ratioy, 7, 1 ); - pixelgroupgrid->addMultiCellWidget( new QCheckBox( i18n( "Link" ), pixelgroup ), 6, 7, 2, 2, Qt::AlignVCenter ); + pixelgroupgrid->addMultiCellWidget( new TQCheckBox( i18n( "Link" ), pixelgroup ), 6, 7, 2, 2, Qt::AlignVCenter ); - QGroupBox * printgroup = new QGroupBox( i18n( "Print Size && Display Units" ), layout ); - QGridLayout * printgroupgrid = new QGridLayout( printgroup, 1, 1, 0, KDialog::spacingHint() ); + TQGroupBox * printgroup = new TQGroupBox( i18n( "Print Size && Display Units" ), layout ); + TQGridLayout * printgroupgrid = new TQGridLayout( printgroup, 1, 1, 0, KDialog::spacingHint() ); printgroupgrid->setSpacing( KDialog::spacingHint() ); printgroupgrid->setMargin( KDialog::marginHint() ); - label = new QLabel( i18n( "New width:" ), printgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "New width:" ), printgroup ); + label->setAlignment( TQLabel::AlignRight ); printgroupgrid->addWidget( label, 0, 0 ); - label = new QLabel( i18n( "Height:" ), printgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "Height:" ), printgroup ); + label->setAlignment( TQLabel::AlignRight ); printgroupgrid->addWidget( label, 1, 0 ); - QSpinBox * newwidth2 = new QSpinBox( printgroup ); + TQSpinBox * newwidth2 = new TQSpinBox( printgroup ); printgroupgrid->addWidget( newwidth2, 0, 1 ); - QSpinBox * newheight2 = new QSpinBox( printgroup ); + TQSpinBox * newheight2 = new TQSpinBox( printgroup ); printgroupgrid->addWidget( newheight2, 1, 1 ); KComboBox * newsizeunit2 = new KComboBox( printgroup ); newsizeunit2->insertItem( i18n( "in" ) ); @@ -138,17 +138,17 @@ void KViewScale::slotScaleDlg() printgroupgrid->addRowSpacing( 2, KDialog::spacingHint() ); - label = new QLabel( i18n( "Resolution X:" ), printgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "Resolution X:" ), printgroup ); + label->setAlignment( TQLabel::AlignRight ); printgroupgrid->addWidget( label, 3, 0 ); - label = new QLabel( i18n( "Y:" ), printgroup ); - label->setAlignment( QLabel::AlignRight ); + label = new TQLabel( i18n( "Y:" ), printgroup ); + label->setAlignment( TQLabel::AlignRight ); printgroupgrid->addWidget( label, 4, 0 ); - QSpinBox * resx = new QSpinBox( printgroup ); + TQSpinBox * resx = new TQSpinBox( printgroup ); printgroupgrid->addWidget( resx, 3, 1 ); - QSpinBox * resy = new QSpinBox( printgroup ); + TQSpinBox * resy = new TQSpinBox( printgroup ); printgroupgrid->addWidget( resy, 4, 1 ); - printgroupgrid->addMultiCellWidget( new QCheckBox( i18n( "Link" ), printgroup ), 3, 4, 2, 2, Qt::AlignVCenter ); + printgroupgrid->addMultiCellWidget( new TQCheckBox( i18n( "Link" ), printgroup ), 3, 4, 2, 2, Qt::AlignVCenter ); //KComboBox * newsizeunit2 = new KComboBox( printgroup ); //newsizeunit2->insertItem( i18n( "in" ) ); //newsizeunit2->insertItem( i18n( "mm" ) ); @@ -162,12 +162,12 @@ void KViewScale::slotScale() { // retrieve current image kdDebug( 4630 ) << "m_pCanvas = " << m_pCanvas << endl; - const QImage * image = m_pCanvas->image(); + const TQImage * image = m_pCanvas->image(); kdDebug( 4630 ) << "image pointer retrieved" << endl; if( image ) { // scale - QImage newimage = image->smoothScale( 50, 50 ); + TQImage newimage = image->smoothScale( 50, 50 ); // put back (modified) m_pCanvas->setImage( newimage ); m_pViewer->setModified( true ); diff --git a/kview/modules/scale/kview_scale.h b/kview/modules/scale/kview_scale.h index 2022f0ac..3ac45257 100644 --- a/kview/modules/scale/kview_scale.h +++ b/kview/modules/scale/kview_scale.h @@ -32,7 +32,7 @@ class KViewScale : public KParts::Plugin { Q_OBJECT public: - KViewScale( QObject* parent, const char* name, const QStringList & ); + KViewScale( TQObject* parent, const char* name, const TQStringList & ); virtual ~KViewScale(); private slots: diff --git a/kview/modules/scale/scaledlg.cpp b/kview/modules/scale/scaledlg.cpp index 997be86d..929aafcd 100644 --- a/kview/modules/scale/scaledlg.cpp +++ b/kview/modules/scale/scaledlg.cpp @@ -20,13 +20,13 @@ #include "scaledlg.h" -#include <qvbox.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qspinbox.h> -#include <qcheckbox.h> -#include <qgroupbox.h> -#include <qsize.h> +#include <tqvbox.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqspinbox.h> +#include <tqcheckbox.h> +#include <tqgroupbox.h> +#include <tqsize.h> #include <kdebug.h> #include <kcombobox.h> @@ -37,8 +37,8 @@ #define ONEINCHINMM 2.54 -ScaleDlg::ScaleDlg( const QSize & origsize, QVBox * parent, const char * name ) - : QObject( parent, name ) +ScaleDlg::ScaleDlg( const TQSize & origsize, TQVBox * parent, const char * name ) + : TQObject( parent, name ) , m_origsize( origsize ) , m_newsizeunit( 0 ) , m_newsizeunit2( 0 ) @@ -48,66 +48,66 @@ ScaleDlg::ScaleDlg( const QSize & origsize, QVBox * parent, const char * name ) , m_resx( 72 ) , m_resy( 72 ) { - QGroupBox * pixelgroup = new QGroupBox( i18n( "Pixel Dimensions" ), parent ); - QGroupBox * printgroup = new QGroupBox( i18n( "Print Size && Display Units" ), parent ); + TQGroupBox * pixelgroup = new TQGroupBox( i18n( "Pixel Dimensions" ), parent ); + TQGroupBox * printgroup = new TQGroupBox( i18n( "Print Size && Display Units" ), parent ); - QGridLayout * pixelgroupgrid = new QGridLayout( pixelgroup, 1, 1, + TQGridLayout * pixelgroupgrid = new TQGridLayout( pixelgroup, 1, 1, KDialog::marginHint(), KDialog::spacingHint() ); - QGridLayout * printgroupgrid = new QGridLayout( printgroup, 1, 1, + TQGridLayout * printgroupgrid = new TQGridLayout( printgroup, 1, 1, KDialog::marginHint(), KDialog::spacingHint() ); - QLabel * label; + TQLabel * label; pixelgroupgrid->addRowSpacing( 0, KDialog::spacingHint() ); - label = new QLabel( i18n( "Original width:" ), pixelgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "Original width:" ), pixelgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); pixelgroupgrid->addWidget( label, 1, 0 ); - label = new QLabel( i18n( "Height:" ), pixelgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "Height:" ), pixelgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); pixelgroupgrid->addWidget( label, 2, 0 ); pixelgroupgrid->addRowSpacing( 3, KDialog::spacingHint() ); - label = new QLabel( i18n( "New width:" ), pixelgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "New width:" ), pixelgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); pixelgroupgrid->addWidget( label, 4, 0 ); - label = new QLabel( i18n( "Height:" ), pixelgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "Height:" ), pixelgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); pixelgroupgrid->addWidget( label, 5, 0 ); pixelgroupgrid->addRowSpacing( 6, KDialog::spacingHint() ); - label = new QLabel( i18n( "Ratio X:" ), pixelgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "Ratio X:" ), pixelgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); pixelgroupgrid->addWidget( label, 7, 0 ); - label = new QLabel( i18n( "Y:" ), pixelgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "Y:" ), pixelgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); pixelgroupgrid->addWidget( label, 8, 0 ); printgroupgrid->addRowSpacing( 0, KDialog::spacingHint() ); - label = new QLabel( i18n( "New width:" ), printgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "New width:" ), printgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); printgroupgrid->addWidget( label, 1, 0 ); - label = new QLabel( i18n( "Height:" ), printgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "Height:" ), printgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); printgroupgrid->addWidget( label, 2, 0 ); printgroupgrid->addRowSpacing( 3, KDialog::spacingHint() ); - label = new QLabel( i18n( "Resolution X:" ), printgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "Resolution X:" ), printgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); printgroupgrid->addWidget( label, 4, 0 ); - label = new QLabel( i18n( "Y:" ), printgroup ); - label->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + label = new TQLabel( i18n( "Y:" ), printgroup ); + label->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); printgroupgrid->addWidget( label, 5, 0 ); - m_pOldWidth = new QLabel( QString::number( origsize.width() ), pixelgroup ); - m_pOldWidth->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + m_pOldWidth = new TQLabel( TQString::number( origsize.width() ), pixelgroup ); + m_pOldWidth->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); pixelgroupgrid->addWidget( m_pOldWidth, 1, 1 ); - m_pOldHeight = new QLabel( QString::number( origsize.height() ), pixelgroup ); - m_pOldHeight->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); + m_pOldHeight = new TQLabel( TQString::number( origsize.height() ), pixelgroup ); + m_pOldHeight->setAlignment( int( TQLabel::AlignVCenter | TQLabel::AlignRight ) ); pixelgroupgrid->addWidget( m_pOldHeight, 2, 1 ); m_pNewWidth = new KFloatSpinBox( 1.0, 100000.0, 10.0, 0, pixelgroup ); @@ -125,7 +125,7 @@ ScaleDlg::ScaleDlg( const QSize & origsize, QVBox * parent, const char * name ) m_pRatioY = new KFloatSpinBox( 0.0001, 10000.0, 0.1, 4, pixelgroup ); pixelgroupgrid->addWidget( m_pRatioY, 8, 1 ); - m_pLinkRatio = new QCheckBox( i18n( "Link" ), pixelgroup ); + m_pLinkRatio = new TQCheckBox( i18n( "Link" ), pixelgroup ); pixelgroupgrid->addMultiCellWidget( m_pLinkRatio, 7, 8, 2, 2, Qt::AlignVCenter ); m_pNewWidth2 = new KFloatSpinBox( 0.0001, 10000.0, 0.1, 4, printgroup ); @@ -143,7 +143,7 @@ ScaleDlg::ScaleDlg( const QSize & origsize, QVBox * parent, const char * name ) m_pResolutionY = new KFloatSpinBox( 0.0001, 6000.0, 1.0, 4, printgroup ); printgroupgrid->addWidget( m_pResolutionY, 5, 1 ); - m_pLinkResolution = new QCheckBox( i18n( "Link" ), printgroup ); + m_pLinkResolution = new TQCheckBox( i18n( "Link" ), printgroup ); printgroupgrid->addMultiCellWidget( m_pLinkResolution, 4, 5, 2, 2, Qt::AlignVCenter ); m_pResolutionUnit = new KComboBox( printgroup ); m_pResolutionUnit->insertItem( i18n( "pixels/in" ) ); @@ -157,16 +157,16 @@ ScaleDlg::ScaleDlg( const QSize & origsize, QVBox * parent, const char * name ) m_newsizeunit2 = 0; m_resolutionunit = 0; - connect( m_pNewWidth, SIGNAL( valueChanged( float ) ), SLOT( slotNewWidth( float ) ) ); - connect( m_pNewHeight, SIGNAL( valueChanged( float ) ), SLOT( slotNewHeight( float ) ) ); - connect( m_pNewWidth2, SIGNAL( valueChanged( float ) ), SLOT( slotNewWidth2( float ) ) ); - connect( m_pNewHeight2, SIGNAL( valueChanged( float ) ), SLOT( slotNewHeight2( float ) ) ); - connect( m_pResolutionX, SIGNAL( valueChanged( float ) ), SLOT( slotResolutionX( float ) ) ); - connect( m_pResolutionY, SIGNAL( valueChanged( float ) ), SLOT( slotResolutionY( float ) ) ); + connect( m_pNewWidth, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotNewWidth( float ) ) ); + connect( m_pNewHeight, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotNewHeight( float ) ) ); + connect( m_pNewWidth2, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotNewWidth2( float ) ) ); + connect( m_pNewHeight2, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotNewHeight2( float ) ) ); + connect( m_pResolutionX, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotResolutionX( float ) ) ); + connect( m_pResolutionY, TQT_SIGNAL( valueChanged( float ) ), TQT_SLOT( slotResolutionY( float ) ) ); - connect( m_pNewSizeUnit, SIGNAL( activated( int ) ), SLOT( slotChangeNewSizeUnit( int ) ) ); - connect( m_pNewSizeUnit2, SIGNAL( activated( int ) ), SLOT( slotChangeNewSizeUnit2( int ) ) ); - connect( m_pResolutionUnit, SIGNAL( activated( int ) ), SLOT( slotChangeResolutionUnit( int ) ) ); + connect( m_pNewSizeUnit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotChangeNewSizeUnit( int ) ) ); + connect( m_pNewSizeUnit2, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotChangeNewSizeUnit2( int ) ) ); + connect( m_pResolutionUnit, TQT_SIGNAL( activated( int ) ), TQT_SLOT( slotChangeResolutionUnit( int ) ) ); } ScaleDlg::~ScaleDlg() diff --git a/kview/modules/scale/scaledlg.h b/kview/modules/scale/scaledlg.h index ac5a6c44..71fa23d5 100644 --- a/kview/modules/scale/scaledlg.h +++ b/kview/modules/scale/scaledlg.h @@ -21,20 +21,20 @@ #ifndef __scaledlg_h_ #define __scaledlg_h_ -#include <qobject.h> +#include <tqobject.h> -class QLabel; +class TQLabel; class KFloatSpinBox; class KComboBox; -class QCheckBox; -class QVBox; -class QSize; +class TQCheckBox; +class TQVBox; +class TQSize; class ScaleDlg : public QObject { Q_OBJECT public: - ScaleDlg( const QSize & originalsize, QVBox * parent, const char * name = 0 ); + ScaleDlg( const TQSize & originalsize, TQVBox * parent, const char * name = 0 ); ~ScaleDlg(); private slots: @@ -49,7 +49,7 @@ class ScaleDlg : public QObject void slotChangeResolutionUnit( int ); private: - QSize m_origsize; + TQSize m_origsize; int m_newsizeunit; int m_newsizeunit2; int m_resolutionunit; @@ -57,21 +57,21 @@ class ScaleDlg : public QObject float m_newwidth, m_newheight; // in Pixel float m_resx, m_resy; // in dpi - QLabel * m_pOldWidth; - QLabel * m_pOldHeight; + TQLabel * m_pOldWidth; + TQLabel * m_pOldHeight; KFloatSpinBox * m_pNewWidth; KFloatSpinBox * m_pNewHeight; KComboBox * m_pNewSizeUnit; KFloatSpinBox * m_pRatioX; KFloatSpinBox * m_pRatioY; - QCheckBox * m_pLinkRatio; + TQCheckBox * m_pLinkRatio; KFloatSpinBox * m_pNewWidth2; KFloatSpinBox * m_pNewHeight2; KComboBox * m_pNewSizeUnit2; KFloatSpinBox * m_pResolutionX; KFloatSpinBox * m_pResolutionY; - QCheckBox * m_pLinkResolution; + TQCheckBox * m_pLinkResolution; KComboBox * m_pResolutionUnit; }; |