summaryrefslogtreecommitdiffstats
path: root/kpovmodeler/pmspheresweepedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpovmodeler/pmspheresweepedit.cpp')
-rw-r--r--kpovmodeler/pmspheresweepedit.cpp84
1 files changed, 42 insertions, 42 deletions
diff --git a/kpovmodeler/pmspheresweepedit.cpp b/kpovmodeler/pmspheresweepedit.cpp
index 582a0e80..9798a304 100644
--- a/kpovmodeler/pmspheresweepedit.cpp
+++ b/kpovmodeler/pmspheresweepedit.cpp
@@ -23,18 +23,18 @@
#include "pmvectorlistedit.h"
#include "pmpart.h"
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtooltip.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqtooltip.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
+#include <tqpushbutton.h>
#include <klocale.h>
#include <kdialog.h>
#include <kiconloader.h>
#include <kmessagebox.h>
-PMSphereSweepEdit::PMSphereSweepEdit( QWidget* parent, const char* name )
+PMSphereSweepEdit::PMSphereSweepEdit( TQWidget* parent, const char* name )
: Base( parent, name )
{
m_pDisplayedObject = 0;
@@ -44,52 +44,52 @@ void PMSphereSweepEdit::createTopWidgets( )
{
Base::createTopWidgets( );
- QHBoxLayout* hl = new QHBoxLayout( topLayout( ) );
- hl->addWidget( new QLabel( i18n( "Spline type:" ), this ) );
- m_pSplineType = new QComboBox( false, this );
+ TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) );
+ hl->addWidget( new TQLabel( i18n( "Spline type:" ), this ) );
+ m_pSplineType = new TQComboBox( false, this );
m_pSplineType->insertItem( i18n( "Linear Spline" ) );
m_pSplineType->insertItem( i18n( "B-Spline" ) );
m_pSplineType->insertItem( i18n( "Cubic Spline" ) );
hl->addWidget( m_pSplineType );
hl->addStretch( 1 );
- connect( m_pSplineType, SIGNAL( activated( int ) ),
- SLOT( slotTypeChanged( int ) ) );
+ connect( m_pSplineType, TQT_SIGNAL( activated( int ) ),
+ TQT_SLOT( slotTypeChanged( int ) ) );
}
void PMSphereSweepEdit::createBottomWidgets( )
{
- topLayout( )->addWidget( new QLabel( i18n( "Spheres:" ), this ) );
+ topLayout( )->addWidget( new TQLabel( i18n( "Spheres:" ), this ) );
m_pPoints = new PMVectorListEdit( "x", "y", "z", "r", this );
- connect( m_pPoints, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
- connect( m_pPoints, SIGNAL( selectionChanged( ) ),
- SLOT( slotSelectionChanged( ) ) );
- QHBoxLayout* hl = new QHBoxLayout( topLayout( ) );
+ connect( m_pPoints, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
+ connect( m_pPoints, TQT_SIGNAL( selectionChanged( ) ),
+ TQT_SLOT( slotSelectionChanged( ) ) );
+ TQHBoxLayout* hl = new TQHBoxLayout( topLayout( ) );
hl->addWidget( m_pPoints, 2 );
- m_pAddAbove = new QPushButton( this );
+ m_pAddAbove = new TQPushButton( this );
m_pAddAbove->setPixmap( SmallIcon( "pmaddpointabove" ) );
- m_pAddBelow = new QPushButton( this );
+ m_pAddBelow = new TQPushButton( this );
m_pAddBelow->setPixmap( SmallIcon( "pmaddpoint" ) );
- m_pRemove = new QPushButton( this );
+ m_pRemove = new TQPushButton( this );
m_pRemove->setPixmap( SmallIcon( "pmremovepoint" ) );
- connect( m_pAddAbove, SIGNAL( clicked( ) ), SLOT( slotAddPointAbove( ) ) );
- connect( m_pAddBelow, SIGNAL( clicked( ) ), SLOT( slotAddPointBelow( ) ) );
- connect( m_pRemove, SIGNAL( clicked( ) ), SLOT( slotRemovePoint( ) ) );
+ connect( m_pAddAbove, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAddPointAbove( ) ) );
+ connect( m_pAddBelow, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotAddPointBelow( ) ) );
+ connect( m_pRemove, TQT_SIGNAL( clicked( ) ), TQT_SLOT( slotRemovePoint( ) ) );
- QVBoxLayout* bl = new QVBoxLayout( hl );
+ TQVBoxLayout* bl = new TQVBoxLayout( hl );
bl->addWidget( m_pAddAbove );
bl->addWidget( m_pAddBelow );
bl->addWidget( m_pRemove );
bl->addStretch( 1 );
- hl = new QHBoxLayout( topLayout( ) );
- hl->addWidget( new QLabel( i18n( "Tolerance" ), this ) );
+ hl = new TQHBoxLayout( topLayout( ) );
+ hl->addWidget( new TQLabel( i18n( "Tolerance" ), this ) );
m_pTolerance = new PMFloatEdit( this );
m_pTolerance->setValidation( true, 0, false, 0 );
hl->addWidget( m_pTolerance );
- connect( m_pTolerance, SIGNAL( dataChanged( ) ), SIGNAL( dataChanged( ) ) );
+ connect( m_pTolerance, TQT_SIGNAL( dataChanged( ) ), TQT_SIGNAL( dataChanged( ) ) );
Base::createBottomWidgets( );
}
@@ -118,10 +118,10 @@ void PMSphereSweepEdit::displayObject( PMObject* o )
m_pTolerance->setReadOnly( readOnly );
m_pPoints->setReadOnly( readOnly );
- QValueList<PMVector> points = m_pDisplayedObject->points( );
- QValueList<double> radii = m_pDisplayedObject->radii( );
- QValueListIterator<PMVector> pit = points.begin( );
- QValueListIterator<double> rit = radii.begin( );
+ TQValueList<PMVector> points = m_pDisplayedObject->points( );
+ TQValueList<double> radii = m_pDisplayedObject->radii( );
+ TQValueListIterator<PMVector> pit = points.begin( );
+ TQValueListIterator<double> rit = radii.begin( );
for( ; pit != points.end( ) && rit != radii.end( ); ++pit, ++rit )
{
( *pit ).resize( 4 );
@@ -170,9 +170,9 @@ void PMSphereSweepEdit::saveContents( )
{
if( m_pDisplayedObject )
{
- QValueList<PMVector> points = m_pPoints->vectors( );
- QValueList<double> radii;
- QValueListIterator<PMVector> pit = points.begin( );
+ TQValueList<PMVector> points = m_pPoints->vectors( );
+ TQValueList<double> radii;
+ TQValueListIterator<PMVector> pit = points.begin( );
for( ; pit != points.end( ); ++pit )
{
radii.append( ( *pit )[3] );
@@ -253,12 +253,12 @@ void PMSphereSweepEdit::slotAddPointAbove( )
int index = m_pPoints->currentRow( );
if( index >= 0 )
{
- QValueList<PMVector> points = m_pPoints->vectors( );
- QValueListIterator<PMVector> it = points.at( index );
+ TQValueList<PMVector> points = m_pPoints->vectors( );
+ TQValueListIterator<PMVector> it = points.at( index );
if( it != points.end( ) )
{
- QValueListIterator<PMVector> it2 = it;
+ TQValueListIterator<PMVector> it2 = it;
it2--;
PMVector v;
if( it2 == points.end( ) )
@@ -280,12 +280,12 @@ void PMSphereSweepEdit::slotAddPointBelow( )
int index = m_pPoints->currentRow( );
if( index >= 0 )
{
- QValueList<PMVector> points = m_pPoints->vectors( );
- QValueListIterator<PMVector> it = points.at( index );
+ TQValueList<PMVector> points = m_pPoints->vectors( );
+ TQValueListIterator<PMVector> it = points.at( index );
if( it != points.end( ) )
{
- QValueListIterator<PMVector> it2 = it;
+ TQValueListIterator<PMVector> it2 = it;
it2++;
PMVector v;
if( it2 == points.end( ) )
@@ -309,8 +309,8 @@ void PMSphereSweepEdit::slotRemovePoint( )
if( row >= 0 )
{
- QValueList<PMVector> points = m_pPoints->vectors( );
- QValueListIterator<PMVector> it = points.at( row );
+ TQValueList<PMVector> points = m_pPoints->vectors( );
+ TQValueListIterator<PMVector> it = points.at( row );
if( it != points.end( ) && points.size( ) > 1 )
{