summaryrefslogtreecommitdiffstats
path: root/src/kexportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kexportdialog.cpp')
-rwxr-xr-xsrc/kexportdialog.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/kexportdialog.cpp b/src/kexportdialog.cpp
index ae5a444..7b2e8fa 100755
--- a/src/kexportdialog.cpp
+++ b/src/kexportdialog.cpp
@@ -20,20 +20,20 @@
#include "kexportdialog.h"
#include <kfiledialog.h>
-KExportDialog::KExportDialog( QWidget *parent, const char *name ) : QDialog(parent, name)
+KExportDialog::KExportDialog( TQWidget *tqparent, const char *name ) : TQDialog(tqparent, name)
{
m_templateFile = "" ;
m_outputDir = "" ;
- QLabel *label = new QLabel( this ) ;
+ TQLabel *label = new TQLabel( this ) ;
label->setText( "Template file" ) ;
label->move( 10, 10 ) ;
- label = new QLabel( this ) ;
+ label = new TQLabel( this ) ;
label->setText( "Output directory" ) ;
label->move( 10, 35 ) ;
- label = new QLabel( this ) ;
+ label = new TQLabel( this ) ;
label->setText( "Entity name" ) ;
label->move( 10, 60 ) ;
@@ -52,29 +52,29 @@ KExportDialog::KExportDialog( QWidget *parent, const char *name ) : QDialog(pare
m_lineEntityName->setFixedSize( 150, 20 ) ;
m_lineEntityName->move( 110, 60 ) ;
- QPushButton *button = new QPushButton( this ) ;
+ TQPushButton *button = new TQPushButton( this ) ;
button->setText( "OK" ) ;
button->setFixedSize( 60, 25 ) ;
button->move( 100, 90 ) ;
- connect( button, SIGNAL( clicked() ), this, SLOT( btnOKClicked() ) ) ;
+ connect( button, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnOKClicked() ) ) ;
- button = new QPushButton( this ) ;
+ button = new TQPushButton( this ) ;
button->setText( "Cancel" ) ;
button->setFixedSize( 60, 25 ) ;
button->move( 200, 90 ) ;
- connect( button, SIGNAL( clicked() ), this, SLOT( btnCancelClicked() ) ) ;
+ connect( button, TQT_SIGNAL( clicked() ), this, TQT_SLOT( btnCancelClicked() ) ) ;
- button = new QPushButton( this ) ;
+ button = new TQPushButton( this ) ;
button->setText( "..." ) ;
button->setFixedSize( 25, 20 ) ;
button->move( 270, 10 ) ;
- connect( button, SIGNAL( clicked() ), this, SLOT( showFileDialog() ) ) ;
+ connect( button, TQT_SIGNAL( clicked() ), this, TQT_SLOT( showFileDialog() ) ) ;
- button = new QPushButton( this ) ;
+ button = new TQPushButton( this ) ;
button->setText( "..." ) ;
button->setFixedSize( 25, 20 ) ;
button->move( 270, 35 ) ;
- connect( button, SIGNAL( clicked() ), this, SLOT( showDirDialog() ) ) ;
+ connect( button, TQT_SIGNAL( clicked() ), this, TQT_SLOT( showDirDialog() ) ) ;
setFixedSize( 340, 130 ) ;
setCaption( "Export to VHDL" ) ;
@@ -92,7 +92,7 @@ void KExportDialog::modal()
void KExportDialog::showFileDialog()
{
- KFileDialog dlg( QString::null, "*.vhd|vhdl template file", this, "template dlg", true ) ;
+ KFileDialog dlg( TQString(), "*.vhd|vhdl template file", this, "template dlg", true ) ;
dlg.exec() ;
if ( dlg.selectedFile() != "" )
@@ -101,7 +101,7 @@ void KExportDialog::showFileDialog()
void KExportDialog::showDirDialog()
{
- QString dir = KFileDialog::getExistingDirectory ( QString::null, this, "Export directory" ) ;
+ TQString dir = KFileDialog::getExistingDirectory ( TQString(), this, "Export directory" ) ;
if ( dir != "" )
m_lineOutputDir->setText( dir ) ;
}
@@ -124,32 +124,32 @@ void KExportDialog::btnCancelClicked()
close() ;
}
-void KExportDialog::setTemplateFile( QString file )
+void KExportDialog::setTemplateFile( TQString file )
{
m_lineTemplateFile->setText( file ) ;
}
-void KExportDialog::setOutputDir( QString dir )
+void KExportDialog::setOutputDir( TQString dir )
{
m_lineOutputDir->setText( dir ) ;
}
-void KExportDialog::setEntityName( QString name )
+void KExportDialog::setEntityName( TQString name )
{
m_lineEntityName->setText( name ) ;
}
-QString KExportDialog::getTemplateFile()
+TQString KExportDialog::getTemplateFile()
{
return m_templateFile ;
}
-QString KExportDialog::getOutputDir()
+TQString KExportDialog::getOutputDir()
{
return m_outputDir ;
}
-QString KExportDialog::getEntityName()
+TQString KExportDialog::getEntityName()
{
return m_entityName ;
}