summaryrefslogtreecommitdiffstats
path: root/src/tools/list/tools_config_widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/list/tools_config_widget.cpp')
-rw-r--r--src/tools/list/tools_config_widget.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/src/tools/list/tools_config_widget.cpp b/src/tools/list/tools_config_widget.cpp
index 449183d..43ca04c 100644
--- a/src/tools/list/tools_config_widget.cpp
+++ b/src/tools/list/tools_config_widget.cpp
@@ -9,8 +9,8 @@
***************************************************************************/
#include "tools_config_widget.h"
-#include <qwidgetstack.h>
-#include <qlabel.h>
+#include <tqwidgetstack.h>
+#include <tqlabel.h>
#include "tool_list.h"
#include "tools/gui/tool_config_widget.h"
@@ -20,15 +20,15 @@
#include "libgui/project.h"
//----------------------------------------------------------------------------
-HelpDialog::HelpDialog(QWidget *parent)
- : Dialog(parent, "help_dialog", false, i18n("Help Dialog"), Close, Close, false)
+HelpDialog::HelpDialog(TQWidget *tqparent)
+ : Dialog(tqparent, "help_dialog", false, i18n("Help Dialog"), Close, Close, false)
{
- QGridLayout *top = new QGridLayout(mainWidget(), 1, 1, 10, 10);
+ TQGridLayout *top = new TQGridLayout(mainWidget(), 1, 1, 10, 10);
uint k = 0;
for (; Compile::ARGUMENT_DATA[k].key; k++) {
- QLabel *label = new QLabel(Compile::ARGUMENT_DATA[k].key, mainWidget());
+ TQLabel *label = new TQLabel(Compile::ARGUMENT_DATA[k].key, mainWidget());
top->addWidget(label, k, 0);
- label = new QLabel(i18n(Compile::ARGUMENT_DATA[k].description), mainWidget());
+ label = new TQLabel(i18n(Compile::ARGUMENT_DATA[k].description), mainWidget());
top->addWidget(label, k, 1);
}
top->setColStretch(2, 1);
@@ -36,33 +36,33 @@ HelpDialog::HelpDialog(QWidget *parent)
}
//----------------------------------------------------------------------------
-ToolsConfigWidget::ToolsConfigWidget(Project *project, QWidget *parent)
- : ::ConfigWidget(parent), _project(project), _helpDialog(0)
+ToolsConfigWidget::ToolsConfigWidget(Project *project, TQWidget *tqparent)
+ : ::ConfigWidget(tqparent), _project(project), _helpDialog(0)
{
uint row = 0;
- QLabel *label = new QLabel(i18n("Toolchain:"), this);
+ TQLabel *label = new TQLabel(i18n("Toolchain:"), this);
addWidget(label, row,row, 0,0);
- _tool = new KeyComboBox<QString>(this);
+ _tool = new KeyComboBox<TQString>(this);
Tool::Lister::ConstIterator it;
for (it=Tool::lister().begin(); it!=Tool::lister().end(); ++it)
_tool->appendItem(it.key(), it.data()->label());
- connect(_tool->widget(), SIGNAL(activated(int)), SLOT(toolChanged()));
+ connect(_tool->widget(), TQT_SIGNAL(activated(int)), TQT_SLOT(toolChanged()));
addWidget(_tool->widget(), row,row, 1,1);
- label = new QLabel(i18n("Output type:"), this);
+ label = new TQLabel(i18n("Output type:"), this);
addWidget(label, row,row, 2,2);
_output = new KeyComboBox<Tool::OutputType>(this);
FOR_EACH(Tool::OutputType, type) _output->appendItem(type, type.label());
addWidget(_output->widget(), row,row, 3,3);
row++;
- _mainStack = new QWidgetStack(this);
+ _mainStack = new TQWidgetStack(this);
addWidget(_mainStack, row,row, 0,4);
row++;
- _tabWidget = new QTabWidget(_mainStack);
+ _tabWidget = new TQTabWidget(_mainStack);
_mainStack->addWidget(_tabWidget);
FOR_EACH(Tool::Category, category) {
- _stacks[category] = new KeyWidgetStack<QString>(_tabWidget);
+ _stacks[category] = new KeyWidgetStack<TQString>(_tabWidget);
_stacks[category]->widget()->setMargin(10);
Tool::Lister::ConstIterator it;
for (it=Tool::lister().begin(); it!=Tool::lister().end(); ++it) {
@@ -71,13 +71,13 @@ ToolsConfigWidget::ToolsConfigWidget(Project *project, QWidget *parent)
ToolConfigWidget *cw = static_cast<const Tool::GroupUI *>(it.data()->gui())->createConfigWidget(category, project);
Q_ASSERT(cw);
_stacks[category]->appendItem(it.key(), cw);
- connect(cw, SIGNAL(displayHelp()), SLOT(displayHelp()));
+ connect(cw, TQT_SIGNAL(displayHelp()), TQT_SLOT(displayHelp()));
}
}
- _customWidget = new QWidget(_mainStack);
+ _customWidget = new TQWidget(_mainStack);
_mainStack->addWidget(_customWidget);
- QVBoxLayout *vbox = new QVBoxLayout(_customWidget);
- label = new QLabel(i18n("Custom shell commands:"), _customWidget);
+ TQVBoxLayout *vbox = new TQVBoxLayout(_customWidget);
+ label = new TQLabel(i18n("Custom shell commands:"), _customWidget);
vbox->addWidget(label);
_commandsEditor = new EditListBox(1, _customWidget, "command_editor", EditListBox::DuplicatesAllowed);
vbox->addWidget(_commandsEditor);
@@ -87,7 +87,7 @@ ToolsConfigWidget::ToolsConfigWidget(Project *project, QWidget *parent)
void ToolsConfigWidget::toolChanged()
{
- QString name = _tool->currentItem();
+ TQString name = _tool->currentItem();
bool canMakeLibrary = Tool::lister().group(name)->needs(_project, Tool::Category::Librarian);
_output->widget()->setEnabled(canMakeLibrary);
if ( !canMakeLibrary ) _output->setCurrentItem(Tool::OutputType::Executable);
@@ -97,7 +97,7 @@ void ToolsConfigWidget::toolChanged()
FOR_EACH(Tool::Category, k) {
_tabWidget->removePage(_stacks[k]->widget());
_stacks[k]->widget()->hide();
- if ( _stacks[k]->contains(name) ) {
+ if ( _stacks[k]->tqcontains(name) ) {
_stacks[k]->setCurrentItem(name);
_stacks[k]->widget()->show();
_tabWidget->addTab(_stacks[k]->widget(), i18n(k.data().title));
@@ -112,11 +112,11 @@ void ToolsConfigWidget::loadConfig()
const Tool::Group &group = Compile::Config::toolGroup(_project);
_tool->setCurrentItem(group.name());
_output->setCurrentItem(_project->outputType());
- QStringList commands = Compile::Config::customCommands(_project);
+ TQStringList commands = Compile::Config::customCommands(_project);
_commandsEditor->setTexts(commands);
toolChanged();
FOR_EACH(Tool::Category, k) {
- KeyWidgetStack<QString>::ConstIterator it;
+ KeyWidgetStack<TQString>::ConstIterator it;
for (it=_stacks[k]->begin(); it!=_stacks[k]->end(); ++it) {
if ( it.key()==Tool::Group::CUSTOM_NAME ) continue;
static_cast<ToolConfigWidget *>(_stacks[k]->item(it.key()))->loadConfig();
@@ -126,13 +126,13 @@ void ToolsConfigWidget::loadConfig()
void ToolsConfigWidget::saveConfig()
{
- QString name = _tool->currentItem();
+ TQString name = _tool->currentItem();
Compile::Config::setToolGroup(_project, *Tool::lister().group(name));
_project->setOutputType(_output->currentItem());
Compile::Config::setCustomCommands(_project, _commandsEditor->texts());
FOR_EACH(Tool::Category, k) {
- if ( !_stacks[k]->contains(name) ) continue;
- QWidget *w = _stacks[k]->item(name);
+ if ( !_stacks[k]->tqcontains(name) ) continue;
+ TQWidget *w = _stacks[k]->item(name);
static_cast<ToolConfigWidget *>(w)->saveConfig();
}
}