diff options
Diffstat (limited to 'kpresenter/KPrMoveHelpLineDia.cpp')
-rw-r--r-- | kpresenter/KPrMoveHelpLineDia.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/kpresenter/KPrMoveHelpLineDia.cpp b/kpresenter/KPrMoveHelpLineDia.cpp index f01dd1e7..74fb88c4 100644 --- a/kpresenter/KPrMoveHelpLineDia.cpp +++ b/kpresenter/KPrMoveHelpLineDia.cpp @@ -19,12 +19,12 @@ */ #include <klocale.h> -#include <qvbox.h> -#include <qlayout.h> -#include <qlabel.h> +#include <tqvbox.h> +#include <tqlayout.h> +#include <tqlabel.h> #include <knuminput.h> -#include <qbuttongroup.h> -#include <qradiobutton.h> +#include <tqbuttongroup.h> +#include <tqradiobutton.h> #include <KoUnit.h> #include <klineedit.h> #include <knumvalidator.h> @@ -34,21 +34,21 @@ #include "KPrDocument.h" -KPrMoveHelpLineDia::KPrMoveHelpLineDia( QWidget *parent, double value, double limitTop, double limitBottom, +KPrMoveHelpLineDia::KPrMoveHelpLineDia( TQWidget *tqparent, double value, double limitTop, double limitBottom, KPrDocument *_doc, const char *name) - : KDialogBase( parent, name , true, "", Ok | Cancel | User1, Ok, true ) + : KDialogBase( tqparent, name , true, "", Ok | Cancel | User1, Ok, true ) { m_doc=_doc; m_bRemoveLine = false; setButtonText( KDialogBase::User1, i18n("Remove") ); setCaption( i18n("Change Help Line Position") ); - QVBox *page = makeVBoxMainWidget(); - new QLabel(i18n("Position:"), page); - position= new KoUnitDoubleSpinBox( page, QMAX(0.00, limitTop), QMAX(0.00, limitBottom), 1, QMAX(0.00, value)); + TQVBox *page = makeVBoxMainWidget(); + new TQLabel(i18n("Position:"), page); + position= new KoUnitDoubleSpinBox( page, TQMAX(0.00, limitTop), TQMAX(0.00, limitBottom), 1, TQMAX(0.00, value)); position->setUnit(m_doc->unit() ); - connect( this, SIGNAL( user1Clicked() ), this ,SLOT( slotRemoveHelpLine() )); + connect( this, TQT_SIGNAL( user1Clicked() ), this ,TQT_SLOT( slotRemoveHelpLine() )); resize( 300,100 ); } @@ -64,25 +64,25 @@ double KPrMoveHelpLineDia::newPosition() const } -KPrInsertHelpLineDia::KPrInsertHelpLineDia( QWidget *parent, const KoRect & _pageRect, +KPrInsertHelpLineDia::KPrInsertHelpLineDia( TQWidget *tqparent, const KoRect & _pageRect, KPrDocument *_doc, const char *name) - : KDialogBase( parent, name , true, "", Ok|Cancel, Ok, true ) + : KDialogBase( tqparent, name , true, "", Ok|Cancel, Ok, true ) { limitOfPage=_pageRect; m_doc=_doc; setCaption( i18n("Add New Help Line") ); - QVBox *page = makeVBoxMainWidget(); - QButtonGroup *group = new QButtonGroup( 1, QGroupBox::Horizontal,i18n("Orientation"), page ); + TQVBox *page = makeVBoxMainWidget(); + TQButtonGroup *group = new TQButtonGroup( 1, Qt::Horizontal,i18n("Qt::Orientation"), page ); group->setRadioButtonExclusive( TRUE ); - group->layout(); - m_rbHoriz = new QRadioButton( i18n("Horizontal"), group ); - m_rbVert = new QRadioButton( i18n("Vertical"), group ); + group->tqlayout(); + m_rbHoriz = new TQRadioButton( i18n("Horizontal"), group ); + m_rbVert = new TQRadioButton( i18n("Vertical"), group ); - connect( group , SIGNAL( clicked( int) ), this, SLOT( slotRadioButtonClicked() )); + connect( group , TQT_SIGNAL( clicked( int) ), this, TQT_SLOT( slotRadioButtonClicked() )); - new QLabel(i18n("Position:"), page); + new TQLabel(i18n("Position:"), page); - position= new KoUnitDoubleSpinBox( page,QMAX(0.00, limitOfPage.top() ), QMAX(0.00, limitOfPage.bottom()),1,0.00 ); + position= new KoUnitDoubleSpinBox( page,TQMAX(0.00, limitOfPage.top() ), TQMAX(0.00, limitOfPage.bottom()),1,0.00 ); position->setUnit( m_doc->unit() ); m_rbHoriz->setChecked( true ); @@ -103,38 +103,38 @@ void KPrInsertHelpLineDia::slotRadioButtonClicked() { if ( m_rbHoriz->isChecked() ) { - position->setMinValue( QMAX(0.00, limitOfPage.top() ) ); - position->setMaxValue( QMAX(0.00, limitOfPage.bottom() ) ); + position->setMinValue( TQMAX(0.00, limitOfPage.top() ) ); + position->setMaxValue( TQMAX(0.00, limitOfPage.bottom() ) ); } else if ( m_rbVert->isChecked() ) { - position->setMinValue( QMAX(0.00, limitOfPage.left()) ); - position->setMaxValue( QMAX(0.00, limitOfPage.right()) ); + position->setMinValue( TQMAX(0.00, limitOfPage.left()) ); + position->setMaxValue( TQMAX(0.00, limitOfPage.right()) ); } } -KPrInsertHelpPointDia::KPrInsertHelpPointDia( QWidget *parent, const KoRect & _pageRect, +KPrInsertHelpPointDia::KPrInsertHelpPointDia( TQWidget *tqparent, const KoRect & _pageRect, KPrDocument *_doc, double posX, double posY, const char *name) - : KDialogBase( parent, name , true, "", Ok|Cancel| User1, Ok, true ), + : KDialogBase( tqparent, name , true, "", Ok|Cancel| User1, Ok, true ), m_bRemovePoint( false ) { limitOfPage=_pageRect; m_doc=_doc; setButtonText( KDialogBase::User1, i18n("Remove") ); setCaption( i18n("Add New Help Point") ); - QVBox *page = makeVBoxMainWidget(); - QLabel *lab=new QLabel(i18n("X position:"), page); - positionX= new KoUnitDoubleSpinBox( page, QMAX(0.00, limitOfPage.left()),QMAX(0.00, limitOfPage.right()),1,QMAX(0.00, posX) ) ; + TQVBox *page = makeVBoxMainWidget(); + TQLabel *lab=new TQLabel(i18n("X position:"), page); + positionX= new KoUnitDoubleSpinBox( page, TQMAX(0.00, limitOfPage.left()),TQMAX(0.00, limitOfPage.right()),1,TQMAX(0.00, posX) ) ; positionX->setUnit( m_doc->unit() ); - lab=new QLabel(i18n("Y position:"), page); - positionY= new KoUnitDoubleSpinBox( page, QMAX(0.00, limitOfPage.top()),QMAX(0.00, limitOfPage.bottom()),1, QMAX(0.00, posY) ); + lab=new TQLabel(i18n("Y position:"), page); + positionY= new KoUnitDoubleSpinBox( page, TQMAX(0.00, limitOfPage.top()),TQMAX(0.00, limitOfPage.bottom()),1, TQMAX(0.00, posY) ); positionY->setUnit( m_doc->unit() ); showButton( KDialogBase::User1, (posX!=0.0 || posY!=0.0) ); - connect( this, SIGNAL( user1Clicked() ), this ,SLOT( slotRemoveHelpPoint() )); + connect( this, TQT_SIGNAL( user1Clicked() ), this ,TQT_SLOT( slotRemoveHelpPoint() )); resize( 300,100 ); } |