diff options
Diffstat (limited to 'src/tools/gui/tool_config_widget.cpp')
-rw-r--r-- | src/tools/gui/tool_config_widget.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/src/tools/gui/tool_config_widget.cpp b/src/tools/gui/tool_config_widget.cpp index 308e61b..ea2fd80 100644 --- a/src/tools/gui/tool_config_widget.cpp +++ b/src/tools/gui/tool_config_widget.cpp @@ -9,9 +9,9 @@ ***************************************************************************/ #include "tool_config_widget.h" -#include <qtooltip.h> -#include <qwidgetstack.h> -#include <qvgroupbox.h> +#include <tqtooltip.h> +#include <tqwidgetstack.h> +#include <tqvgroupbox.h> #include <klocale.h> #include "devices/base/hex_buffer.h" @@ -33,32 +33,32 @@ ToolConfigWidget::ToolConfigWidget(Project *project) Container *container = new Container(this); container->setColStretch(2, 1); addWidget(container, 0,0, 0,0); - QLabel *label = new QLabel(i18n("Configuration:"), container); + TQLabel *label = new TQLabel(i18n("Configuration:"), container); container->addWidget(label, 0,0, 0,0); _argumentsType = new KComboBox(container); for (uint i=0; i<Nb_ArgumentsTypes; i++) _argumentsType->insertItem(i18n(ARGUMENTS_TYPE_LABELS[i]), i); - connect(_argumentsType, SIGNAL(activated(int)), SLOT(updateArguments())); + connect(_argumentsType, TQT_SIGNAL(activated(int)), TQT_SLOT(updateArguments())); container->addWidget(_argumentsType, 0,0, 1,1); - label = new QLabel(i18n("Arguments:"), container); + label = new TQLabel(i18n("Arguments:"), container); container->addWidget(label, 1,1, 0,0); _arguments = new KLineEdit(container); _arguments->setReadOnly(true); container->addWidget(_arguments, 1,1, 1,2); - KPushButton *button = new KPushButton(KGuiItem(QString::null, "help"), container); - connect(button, SIGNAL(clicked()), SIGNAL(displayHelp())); + KPushButton *button = new KPushButton(KGuiItem(TQString(), "help"), container); + connect(button, TQT_SIGNAL(clicked()), TQT_SIGNAL(displayHelp())); container->addWidget(button, 1,1, 3,3); _argumentsEditor = new EditListBox(1, container, "arguments_editor", EditListBox::DuplicatesAllowed, EditListBox::Add | EditListBox::Remove | EditListBox::UpDown | EditListBox::RemoveAll | EditListBox::Reset); - connect(_argumentsEditor, SIGNAL(changed()), SLOT(updateArguments())); - connect(_argumentsEditor, SIGNAL(reset()), SLOT(resetCustomArguments())); + connect(_argumentsEditor, TQT_SIGNAL(changed()), TQT_SLOT(updateArguments())); + connect(_argumentsEditor, TQT_SIGNAL(reset()), TQT_SLOT(resetCustomArguments())); container->addWidget(_argumentsEditor, 2,2, 0,3); _container = new Container(container); _container->setColStretch(2, 1); container->addWidget(_container, 3,3, 0,3); - connect(this, SIGNAL(changed()), SLOT(updateArguments())); + connect(this, TQT_SIGNAL(changed()), TQT_SLOT(updateArguments())); } void ToolConfigWidget::init(Tool::Category category, const Tool::Group &group) @@ -68,7 +68,7 @@ void ToolConfigWidget::init(Tool::Category category, const Tool::Group &group) _config = _group->createConfig(_project); _tmpProject = new Project(PURL::Url()); _tmpConfig = _group->createConfig(_tmpProject); - Compile::Data data(_category, QValueList<Compile::TodoItem>(), QString::null, _project, Compile::NormalLinking); + Compile::Data data(_category, TQValueList<Compile::TodoItem>(), TQString(), _project, Compile::NormalLinking); _process = _group->createCompileProcess(data, 0); initEntries(); @@ -83,11 +83,11 @@ ToolConfigWidget::~ToolConfigWidget() delete _config; } -PURL::DirectoriesWidget *ToolConfigWidget::createDirectoriesEntry(const QString &text) +PURL::DirectoriesWidget *ToolConfigWidget::createDirectoriesEntry(const TQString &text) { uint row = container()->numRows(); - PURL::DirectoriesWidget *sdw = new PURL::DirectoriesWidget(text, _project ? _project->directory().path() : QString::null, container()); - connect(sdw, SIGNAL(changed()), SIGNAL(changed())); + PURL::DirectoriesWidget *sdw = new PURL::DirectoriesWidget(text, _project ? _project->directory().path() : TQString(), container()); + connect(sdw, TQT_SIGNAL(changed()), TQT_SIGNAL(changed())); container()->addWidget(sdw, row,row, 0,2); return sdw; } @@ -95,31 +95,31 @@ PURL::DirectoriesWidget *ToolConfigWidget::createDirectoriesEntry(const QString void ToolConfigWidget::createCustomOptionsEntry() { uint row = container()->numRows(); - QLabel *label = new QLabel(i18n("Custom options:"), container()); + TQLabel *label = new TQLabel(i18n("Custom options:"), container()); container()->addWidget(label, row,row, 0,0); - _customOptions = new QLineEdit(container()); - connect(_customOptions, SIGNAL(textChanged(const QString &)), SIGNAL(changed())); + _customOptions = new TQLineEdit(container()); + connect(_customOptions, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(changed())); container()->addWidget(_customOptions, row,row, 1,2); } void ToolConfigWidget::createCustomLibrariesEntry() { uint row = container()->numRows(); - QLabel *label = new QLabel(i18n("Custom libraries:"), container()); + TQLabel *label = new TQLabel(i18n("Custom libraries:"), container()); container()->addWidget(label, row,row, 0,0); - _customLibraries = new QLineEdit(container()); - connect(_customLibraries, SIGNAL(textChanged(const QString &)), SIGNAL(changed())); - QToolTip::add(_customLibraries, i18n("<qt>This values will be placed after the linked objects.</qt>")) ; + _customLibraries = new TQLineEdit(container()); + connect(_customLibraries, TQT_SIGNAL(textChanged(const TQString &)), TQT_SIGNAL(changed())); + TQToolTip::add(_customLibraries, i18n("<qt>This values will be placed after the linked objects.</qt>")) ; container()->addWidget(_customLibraries, row,row, 1,2); } void ToolConfigWidget::createHexFormatEntry() { uint row = container()->numRows(); - QLabel *label = new QLabel(i18n("Hex file format:"), container()); + TQLabel *label = new TQLabel(i18n("Hex file format:"), container()); container()->addWidget(label, row,row, 0,0); - _hexFormat = new QComboBox(container()); - connect(_hexFormat, SIGNAL(activated(int)), SIGNAL(changed())); + _hexFormat = new TQComboBox(container()); + connect(_hexFormat, TQT_SIGNAL(activated(int)), TQT_SIGNAL(changed())); for (uint i=0; i<HexBuffer::Nb_Formats; i++) _hexFormat->insertItem(HexBuffer::FORMATS[i]); _hexFormat->insertItem(i18n("as in LIST directive")); @@ -159,9 +159,9 @@ void ToolConfigWidget::saveConfig(Compile::Config &config) const if (_hexFormat) config.setHexFormat(HexBuffer::Format(_hexFormat->currentItem())); } -QStringList ToolConfigWidget::arguments(ArgumentsType type) const +TQStringList ToolConfigWidget::arguments(ArgumentsType type) const { - if ( _tmpConfig==0 ) return QStringList(); + if ( _tmpConfig==0 ) return TQStringList(); saveConfig(*_tmpConfig); if ( type==AutomaticArguments ) return _process->genericArguments(*_tmpConfig); return _argumentsEditor->texts(); |