diff options
Diffstat (limited to 'kdbg/pgmargsbase.cpp')
-rw-r--r-- | kdbg/pgmargsbase.cpp | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/kdbg/pgmargsbase.cpp b/kdbg/pgmargsbase.cpp index efebbd9..dfcc0ad 100644 --- a/kdbg/pgmargsbase.cpp +++ b/kdbg/pgmargsbase.cpp @@ -10,18 +10,18 @@ #include "pgmargsbase.h" -#include <qvariant.h> -#include <qpushbutton.h> -#include <qtabwidget.h> -#include <qwidget.h> -#include <qlabel.h> -#include <qlineedit.h> -#include <qheader.h> -#include <qlistview.h> -#include <qlistbox.h> -#include <qlayout.h> -#include <qtooltip.h> -#include <qwhatsthis.h> +#include <ntqvariant.h> +#include <ntqpushbutton.h> +#include <ntqtabwidget.h> +#include <ntqwidget.h> +#include <ntqlabel.h> +#include <ntqlineedit.h> +#include <ntqheader.h> +#include <ntqlistview.h> +#include <ntqlistbox.h> +#include <ntqlayout.h> +#include <ntqtooltip.h> +#include <ntqwhatsthis.h> /* * Constructs a PgmArgsBase as a child of 'parent', with the @@ -30,128 +30,128 @@ * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ -PgmArgsBase::PgmArgsBase( QWidget* parent, const char* name, bool modal, WFlags fl ) - : QDialog( parent, name, modal, fl ) +PgmArgsBase::PgmArgsBase( TQWidget* parent, const char* name, bool modal, WFlags fl ) + : TQDialog( parent, name, modal, fl ) { if ( !name ) setName( "PgmArgsBase" ); setSizeGripEnabled( TRUE ); - PgmArgsBaseLayout = new QHBoxLayout( this, 11, 6, "PgmArgsBaseLayout"); + PgmArgsBaseLayout = new TQHBoxLayout( this, 11, 6, "PgmArgsBaseLayout"); - layout1 = new QVBoxLayout( 0, 0, 6, "layout1"); + layout1 = new TQVBoxLayout( 0, 0, 6, "layout1"); - tabWidget = new QTabWidget( this, "tabWidget" ); + tabWidget = new TQTabWidget( this, "tabWidget" ); - argsPage = new QWidget( tabWidget, "argsPage" ); - argsPageLayout = new QHBoxLayout( argsPage, 11, 6, "argsPageLayout"); + argsPage = new TQWidget( tabWidget, "argsPage" ); + argsPageLayout = new TQHBoxLayout( argsPage, 11, 6, "argsPageLayout"); - layout2 = new QVBoxLayout( 0, 0, 6, "layout2"); + layout2 = new TQVBoxLayout( 0, 0, 6, "layout2"); - labelArgs = new QLabel( argsPage, "labelArgs" ); + labelArgs = new TQLabel( argsPage, "labelArgs" ); layout2->addWidget( labelArgs ); - programArgs = new QLineEdit( argsPage, "programArgs" ); + programArgs = new TQLineEdit( argsPage, "programArgs" ); layout2->addWidget( programArgs ); - layout3 = new QHBoxLayout( 0, 0, 6, "layout3"); + layout3 = new TQHBoxLayout( 0, 0, 6, "layout3"); - insertFile = new QPushButton( argsPage, "insertFile" ); + insertFile = new TQPushButton( argsPage, "insertFile" ); layout3->addWidget( insertFile ); - insertDir = new QPushButton( argsPage, "insertDir" ); + insertDir = new TQPushButton( argsPage, "insertDir" ); layout3->addWidget( insertDir ); - spacer1 = new QSpacerItem( 61, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer1 = new TQSpacerItem( 61, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); layout3->addItem( spacer1 ); layout2->addLayout( layout3 ); - spacer2 = new QSpacerItem( 81, 180, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer2 = new TQSpacerItem( 81, 180, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); layout2->addItem( spacer2 ); argsPageLayout->addLayout( layout2 ); - tabWidget->insertTab( argsPage, QString::fromLatin1("") ); + tabWidget->insertTab( argsPage, TQString::fromLatin1("") ); - wdPage = new QWidget( tabWidget, "wdPage" ); - wdPageLayout = new QHBoxLayout( wdPage, 11, 6, "wdPageLayout"); + wdPage = new TQWidget( tabWidget, "wdPage" ); + wdPageLayout = new TQHBoxLayout( wdPage, 11, 6, "wdPageLayout"); - layout6 = new QVBoxLayout( 0, 0, 6, "layout6"); + layout6 = new TQVBoxLayout( 0, 0, 6, "layout6"); - wdEdit = new QLineEdit( wdPage, "wdEdit" ); + wdEdit = new TQLineEdit( wdPage, "wdEdit" ); layout6->addWidget( wdEdit ); - layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); + layout5 = new TQHBoxLayout( 0, 0, 6, "layout5"); - wdBrowse = new QPushButton( wdPage, "wdBrowse" ); + wdBrowse = new TQPushButton( wdPage, "wdBrowse" ); layout5->addWidget( wdBrowse ); - spacer4 = new QSpacerItem( 321, 31, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer4 = new TQSpacerItem( 321, 31, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); layout5->addItem( spacer4 ); layout6->addLayout( layout5 ); - spacer5 = new QSpacerItem( 111, 161, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer5 = new TQSpacerItem( 111, 161, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); layout6->addItem( spacer5 ); wdPageLayout->addLayout( layout6 ); - tabWidget->insertTab( wdPage, QString::fromLatin1("") ); + tabWidget->insertTab( wdPage, TQString::fromLatin1("") ); - envPage = new QWidget( tabWidget, "envPage" ); - envPageLayout = new QHBoxLayout( envPage, 11, 6, "envPageLayout"); + envPage = new TQWidget( tabWidget, "envPage" ); + envPageLayout = new TQHBoxLayout( envPage, 11, 6, "envPageLayout"); - layout9 = new QHBoxLayout( 0, 0, 6, "layout9"); + layout9 = new TQHBoxLayout( 0, 0, 6, "layout9"); - layout7 = new QVBoxLayout( 0, 0, 6, "layout7"); + layout7 = new TQVBoxLayout( 0, 0, 6, "layout7"); - envLabel = new QLabel( envPage, "envLabel" ); + envLabel = new TQLabel( envPage, "envLabel" ); layout7->addWidget( envLabel ); - envVar = new QLineEdit( envPage, "envVar" ); + envVar = new TQLineEdit( envPage, "envVar" ); layout7->addWidget( envVar ); - envList = new QListView( envPage, "envList" ); + envList = new TQListView( envPage, "envList" ); envList->addColumn( tr2i18n( "Name" ) ); envList->header()->setClickEnabled( FALSE, envList->header()->count() - 1 ); envList->addColumn( tr2i18n( "Value" ) ); envList->header()->setClickEnabled( FALSE, envList->header()->count() - 1 ); - envList->setSelectionMode( QListView::Single ); + envList->setSelectionMode( TQListView::Single ); layout7->addWidget( envList ); layout9->addLayout( layout7 ); - layout8 = new QVBoxLayout( 0, 0, 6, "layout8"); + layout8 = new TQVBoxLayout( 0, 0, 6, "layout8"); - buttonModify = new QPushButton( envPage, "buttonModify" ); + buttonModify = new TQPushButton( envPage, "buttonModify" ); layout8->addWidget( buttonModify ); - buttonDelete = new QPushButton( envPage, "buttonDelete" ); + buttonDelete = new TQPushButton( envPage, "buttonDelete" ); layout8->addWidget( buttonDelete ); - spacer6 = new QSpacerItem( 51, 141, QSizePolicy::Minimum, QSizePolicy::Expanding ); + spacer6 = new TQSpacerItem( 51, 141, TQSizePolicy::Minimum, TQSizePolicy::Expanding ); layout8->addItem( spacer6 ); layout9->addLayout( layout8 ); envPageLayout->addLayout( layout9 ); - tabWidget->insertTab( envPage, QString::fromLatin1("") ); + tabWidget->insertTab( envPage, TQString::fromLatin1("") ); - xsldbgOptionsPage = new QWidget( tabWidget, "xsldbgOptionsPage" ); - xsldbgOptionsPageLayout = new QHBoxLayout( xsldbgOptionsPage, 11, 6, "xsldbgOptionsPageLayout"); + xsldbgOptionsPage = new TQWidget( tabWidget, "xsldbgOptionsPage" ); + xsldbgOptionsPageLayout = new TQHBoxLayout( xsldbgOptionsPage, 11, 6, "xsldbgOptionsPageLayout"); - xsldbgOptions = new QListBox( xsldbgOptionsPage, "xsldbgOptions" ); - xsldbgOptions->setSelectionMode( QListBox::Multi ); + xsldbgOptions = new TQListBox( xsldbgOptionsPage, "xsldbgOptions" ); + xsldbgOptions->setSelectionMode( TQListBox::Multi ); xsldbgOptionsPageLayout->addWidget( xsldbgOptions ); - tabWidget->insertTab( xsldbgOptionsPage, QString::fromLatin1("") ); + tabWidget->insertTab( xsldbgOptionsPage, TQString::fromLatin1("") ); layout1->addWidget( tabWidget ); - layout4 = new QHBoxLayout( 0, 0, 6, "layout4"); + layout4 = new TQHBoxLayout( 0, 0, 6, "layout4"); - buttonHelp = new QPushButton( this, "buttonHelp" ); + buttonHelp = new TQPushButton( this, "buttonHelp" ); buttonHelp->setAutoDefault( TRUE ); layout4->addWidget( buttonHelp ); - spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); layout4->addItem( spacer3 ); - buttonOk = new QPushButton( this, "buttonOk" ); + buttonOk = new TQPushButton( this, "buttonOk" ); buttonOk->setAutoDefault( TRUE ); buttonOk->setDefault( TRUE ); layout4->addWidget( buttonOk ); - buttonCancel = new QPushButton( this, "buttonCancel" ); + buttonCancel = new TQPushButton( this, "buttonCancel" ); buttonCancel->setAutoDefault( TRUE ); layout4->addWidget( buttonCancel ); layout1->addLayout( layout4 ); PgmArgsBaseLayout->addLayout( layout1 ); languageChange(); - resize( QSize(528, 410).expandedTo(minimumSizeHint()) ); + resize( TQSize(528, 410).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections @@ -189,7 +189,7 @@ PgmArgsBase::PgmArgsBase( QWidget* parent, const char* name, bool modal, WFlags */ PgmArgsBase::~PgmArgsBase() { - // no need to delete child widgets, Qt does it all for us + // no need to delete child widgets, TQt does it all for us } /* @@ -200,38 +200,38 @@ void PgmArgsBase::languageChange() { setCaption( tr2i18n( "Program Arguments" ) ); labelArgs->setText( tr2i18n( "Run <i>%1</i> with these arguments:" ) ); - QWhatsThis::add( programArgs, tr2i18n( "Specify the arguments with which the program shall be invoked for this debugging session. You specify the arguments just as you would on the command line, that is, you can even use quotes and environment variables, for example:<p><tt>--message 'start in: ' $HOME</tt>" ) ); + TQWhatsThis::add( programArgs, tr2i18n( "Specify the arguments with which the program shall be invoked for this debugging session. You specify the arguments just as you would on the command line, that is, you can even use quotes and environment variables, for example:<p><tt>--message 'start in: ' $HOME</tt>" ) ); insertFile->setText( tr2i18n( "Insert &file name..." ) ); - insertFile->setAccel( QKeySequence( tr2i18n( "Alt+F" ) ) ); - QWhatsThis::add( insertFile, tr2i18n( "Browse for a file; the full path name will be inserted at the current cursor location in the edit box above." ) ); + insertFile->setAccel( TQKeySequence( tr2i18n( "Alt+F" ) ) ); + TQWhatsThis::add( insertFile, tr2i18n( "Browse for a file; the full path name will be inserted at the current cursor location in the edit box above." ) ); insertDir->setText( tr2i18n( "Insert &directory name..." ) ); - insertDir->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) ); - QWhatsThis::add( insertDir, tr2i18n( "Browse for a directory; the full path name will be inserted at the current cursor location in the edit box above." ) ); + insertDir->setAccel( TQKeySequence( tr2i18n( "Alt+D" ) ) ); + TQWhatsThis::add( insertDir, tr2i18n( "Browse for a directory; the full path name will be inserted at the current cursor location in the edit box above." ) ); tabWidget->changeTab( argsPage, tr2i18n( "&Arguments" ) ); - QWhatsThis::add( wdEdit, tr2i18n( "Specify here the initial working directory where the program is run." ) ); + TQWhatsThis::add( wdEdit, tr2i18n( "Specify here the initial working directory where the program is run." ) ); wdBrowse->setText( tr2i18n( "&Browse..." ) ); - wdBrowse->setAccel( QKeySequence( tr2i18n( "Alt+B" ) ) ); - QWhatsThis::add( wdBrowse, tr2i18n( "Browse for the initial working directory where the program is run." ) ); + wdBrowse->setAccel( TQKeySequence( tr2i18n( "Alt+B" ) ) ); + TQWhatsThis::add( wdBrowse, tr2i18n( "Browse for the initial working directory where the program is run." ) ); tabWidget->changeTab( wdPage, tr2i18n( "&Working Directory" ) ); envLabel->setText( tr2i18n( "Environment variables (<tt>NAME=value</tt>):" ) ); - QWhatsThis::add( envVar, tr2i18n( "To add a new environment variable or to modify one, specify it here in the form <tt>NAME=value</tt> and click <b>Modify</b>." ) ); + TQWhatsThis::add( envVar, tr2i18n( "To add a new environment variable or to modify one, specify it here in the form <tt>NAME=value</tt> and click <b>Modify</b>." ) ); envList->header()->setLabel( 0, tr2i18n( "Name" ) ); envList->header()->setLabel( 1, tr2i18n( "Value" ) ); - QWhatsThis::add( envList, tr2i18n( "Environment variables that are set <i>in addition</i> to those that are inherited are listed in this table. To add new environment variables, specify them as <tt>NAME=value</tt> in the edit box above and click <b>Modify</b>. To modify a value, select it in this list and click <b>Modify</b>. To delete an environment variable, select it in this list and click <b>Delete</b>." ) ); + TQWhatsThis::add( envList, tr2i18n( "Environment variables that are set <i>in addition</i> to those that are inherited are listed in this table. To add new environment variables, specify them as <tt>NAME=value</tt> in the edit box above and click <b>Modify</b>. To modify a value, select it in this list and click <b>Modify</b>. To delete an environment variable, select it in this list and click <b>Delete</b>." ) ); buttonModify->setText( tr2i18n( "&Modify" ) ); - buttonModify->setAccel( QKeySequence( tr2i18n( "Alt+M" ) ) ); - QWhatsThis::add( buttonModify, tr2i18n( "Enters the environment variable that is currently specified in the edit box into the list. If the named variable is already in the list, it receives a new value; otherwise, a new entry is created." ) ); + buttonModify->setAccel( TQKeySequence( tr2i18n( "Alt+M" ) ) ); + TQWhatsThis::add( buttonModify, tr2i18n( "Enters the environment variable that is currently specified in the edit box into the list. If the named variable is already in the list, it receives a new value; otherwise, a new entry is created." ) ); buttonDelete->setText( tr2i18n( "&Delete" ) ); - buttonDelete->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) ); - QWhatsThis::add( buttonDelete, tr2i18n( "Deletes the selected environment variable from the list. This cannot be used to delete environment variables that are inherited." ) ); + buttonDelete->setAccel( TQKeySequence( tr2i18n( "Alt+D" ) ) ); + TQWhatsThis::add( buttonDelete, tr2i18n( "Deletes the selected environment variable from the list. This cannot be used to delete environment variables that are inherited." ) ); tabWidget->changeTab( envPage, tr2i18n( "&Environment" ) ); tabWidget->changeTab( xsldbgOptionsPage, tr2i18n( "&xsldbg Options" ) ); buttonHelp->setText( tr2i18n( "&Help" ) ); - buttonHelp->setAccel( QKeySequence( tr2i18n( "F1" ) ) ); + buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) ); buttonOk->setText( tr2i18n( "&OK" ) ); - buttonOk->setAccel( QKeySequence( QString::null ) ); + buttonOk->setAccel( TQKeySequence( TQString::null ) ); buttonCancel->setText( tr2i18n( "&Cancel" ) ); - buttonCancel->setAccel( QKeySequence( QString::null ) ); + buttonCancel->setAccel( TQKeySequence( TQString::null ) ); } #include "pgmargsbase.moc" |