diff options
Diffstat (limited to 'kpovmodeler/pmsoredit.cpp')
-rw-r--r-- | kpovmodeler/pmsoredit.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/kpovmodeler/pmsoredit.cpp b/kpovmodeler/pmsoredit.cpp index b56949e6..127015df 100644 --- a/kpovmodeler/pmsoredit.cpp +++ b/kpovmodeler/pmsoredit.cpp @@ -21,18 +21,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> -PMSurfaceOfRevolutionEdit::PMSurfaceOfRevolutionEdit( QWidget* parent, const char* name ) +PMSurfaceOfRevolutionEdit::PMSurfaceOfRevolutionEdit( TQWidget* parent, const char* name ) : Base( parent, name ) { m_pDisplayedObject = 0; @@ -40,37 +40,37 @@ PMSurfaceOfRevolutionEdit::PMSurfaceOfRevolutionEdit( QWidget* parent, const cha void PMSurfaceOfRevolutionEdit::createBottomWidgets( ) { - topLayout( )->addWidget( new QLabel( i18n( "Spline points:" ), this ) ); + topLayout( )->addWidget( new TQLabel( i18n( "Spline points:" ), this ) ); m_pPoints = new PMVectorListEdit( "u", "v", 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 ); - m_pOpen = new QCheckBox( i18n( "type of the object", "Open" ), this ); + m_pOpen = new TQCheckBox( i18n( "type of the object", "Open" ), this ); topLayout( )->addWidget( m_pOpen ); - connect( m_pOpen, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) ); - m_pSturm = new QCheckBox( i18n( "Sturm" ), this ); + connect( m_pOpen, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) ); + m_pSturm = new TQCheckBox( i18n( "Sturm" ), this ); topLayout( )->addWidget( m_pSturm ); - connect( m_pSturm, SIGNAL( clicked( ) ), SIGNAL( dataChanged( ) ) ); + connect( m_pSturm, TQT_SIGNAL( clicked( ) ), TQT_SIGNAL( dataChanged( ) ) ); Base::createBottomWidgets( ); } @@ -146,10 +146,10 @@ bool PMSurfaceOfRevolutionEdit::isDataValid( ) return false; } - QValueList<PMVector> points = m_pPoints->vectors( ); - QValueListIterator<PMVector> it1 = points.begin( ); - QValueListIterator<PMVector> it2 = it1; ++it2; - QValueListIterator<PMVector> it3 = it2; ++it3; + TQValueList<PMVector> points = m_pPoints->vectors( ); + TQValueListIterator<PMVector> it1 = points.begin( ); + TQValueListIterator<PMVector> it2 = it1; ++it2; + TQValueListIterator<PMVector> it3 = it2; ++it3; int pnr; for( pnr = 0; it3 != points.end( ); ++it1, ++it2, ++it3, pnr++ ) @@ -186,12 +186,12 @@ void PMSurfaceOfRevolutionEdit::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( ) ) @@ -212,12 +212,12 @@ void PMSurfaceOfRevolutionEdit::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( ) ) @@ -240,8 +240,8 @@ void PMSurfaceOfRevolutionEdit::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 ) { |