summaryrefslogtreecommitdiffstats
path: root/atlantikdesigner/designer/group.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'atlantikdesigner/designer/group.cpp')
-rw-r--r--atlantikdesigner/designer/group.cpp100
1 files changed, 50 insertions, 50 deletions
diff --git a/atlantikdesigner/designer/group.cpp b/atlantikdesigner/designer/group.cpp
index 41f7c6f..8f4d513 100644
--- a/atlantikdesigner/designer/group.cpp
+++ b/atlantikdesigner/designer/group.cpp
@@ -1,11 +1,11 @@
-#include <qcombobox.h>
-#include <qframe.h>
-#include <qvgroupbox.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qspinbox.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqcombobox.h>
+#include <tqframe.h>
+#include <tqvgroupbox.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqspinbox.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <kcolorbutton.h>
#include <kdebug.h>
@@ -19,65 +19,65 @@
#include "group.h"
-GroupEditor::GroupEditor(ConfigEstateGroupList *newList, QWidget *parent)
+GroupEditor::GroupEditor(ConfigEstateGroupList *newList, TQWidget *parent)
: KDialogBase(KDialogBase::Plain, i18n("Group Editor"), Ok|Apply|Cancel, Ok, parent, "Group Editor", false, true), mylist(*newList)
{
setWFlags(WDestructiveClose);
list = newList;
- QFrame *page = plainPage();
- QHBoxLayout *hlayout = new QHBoxLayout(page, marginHint(), spacingHint());
+ TQFrame *page = plainPage();
+ TQHBoxLayout *hlayout = new TQHBoxLayout(page, marginHint(), spacingHint());
groups = new KListBox(page);
hlayout->addWidget(groups);
- connect(groups, SIGNAL(highlighted(QListBoxItem *)), this, SLOT(updateSettings(QListBoxItem *)));
- QStringList newgroups;
+ connect(groups, TQT_SIGNAL(highlighted(TQListBoxItem *)), this, TQT_SLOT(updateSettings(TQListBoxItem *)));
+ TQStringList newgroups;
for (ConfigEstateGroupList::Iterator it = list->begin(); it != list->end(); ++it)
newgroups.append((*it).name());
groups->insertStringList(newgroups);
- connect(groups, SIGNAL(selectionChanged()), this, SLOT(selectionChanged()));
+ connect(groups, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(selectionChanged()));
- QVBoxLayout *vlayout = new QVBoxLayout(hlayout, spacingHint());
- colorGroupBox = new QVGroupBox(i18n("&Colors"), page);
+ TQVBoxLayout *vlayout = new TQVBoxLayout(hlayout, spacingHint());
+ colorGroupBox = new TQVGroupBox(i18n("&Colors"), page);
vlayout->addWidget(colorGroupBox);
- (void) new QLabel(i18n("Foreground:"), colorGroupBox);
+ (void) new TQLabel(i18n("Foreground:"), colorGroupBox);
fgButton = new KColorButton(colorGroupBox, "Foreground Button");
- connect(fgButton, SIGNAL(changed(const QColor &)), this, SLOT(fgChanged(const QColor &)));
- connect(fgButton, SIGNAL(changed(const QColor &)), this, SIGNAL(changed()));
+ connect(fgButton, TQT_SIGNAL(changed(const TQColor &)), this, TQT_SLOT(fgChanged(const TQColor &)));
+ connect(fgButton, TQT_SIGNAL(changed(const TQColor &)), this, TQT_SIGNAL(changed()));
- (void) new QLabel(i18n("Background:"), colorGroupBox);
+ (void) new TQLabel(i18n("Background:"), colorGroupBox);
bgButton = new KColorButton(colorGroupBox, "Background Button");
- connect(bgButton, SIGNAL(changed(const QColor &)), this, SLOT(bgChanged(const QColor &)));
- connect(bgButton, SIGNAL(changed(const QColor &)), this, SIGNAL(changed()));
+ connect(bgButton, TQT_SIGNAL(changed(const TQColor &)), this, TQT_SLOT(bgChanged(const TQColor &)));
+ connect(bgButton, TQT_SIGNAL(changed(const TQColor &)), this, TQT_SIGNAL(changed()));
- pricesGroupBox = new QVGroupBox(i18n("&Prices"), page);
+ pricesGroupBox = new TQVGroupBox(i18n("&Prices"), page);
vlayout->addWidget(pricesGroupBox);
- pricesWidget = new QWidget(pricesGroupBox);
- QGridLayout *pricesLayout = new QGridLayout(pricesWidget, 2, 2, 0, spacingHint());
- pricesLayout->addWidget(new QLabel(i18n("House price:"), pricesWidget), 0, 0);
- pricesLayout->addWidget(housePrice = new QSpinBox(0, 3000, 25, pricesWidget), 0, 1);
+ pricesWidget = new TQWidget(pricesGroupBox);
+ TQGridLayout *pricesLayout = new TQGridLayout(pricesWidget, 2, 2, 0, spacingHint());
+ pricesLayout->addWidget(new TQLabel(i18n("House price:"), pricesWidget), 0, 0);
+ pricesLayout->addWidget(housePrice = new TQSpinBox(0, 3000, 25, pricesWidget), 0, 1);
housePrice->setSpecialValueText(i18n("None"));
housePrice->setSuffix(i18n("$"));
- connect(housePrice, SIGNAL(valueChanged(int)), this, SLOT(housePriceChanged(int)));
+ connect(housePrice, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(housePriceChanged(int)));
- pricesLayout->addWidget(new QLabel(i18n("Global price:"), pricesWidget), 1, 0);
- pricesLayout->addWidget(globalPrice = new QSpinBox(0, 3000, 25, pricesWidget), 1, 1);
+ pricesLayout->addWidget(new TQLabel(i18n("Global price:"), pricesWidget), 1, 0);
+ pricesLayout->addWidget(globalPrice = new TQSpinBox(0, 3000, 25, pricesWidget), 1, 1);
globalPrice->setSpecialValueText(i18n("None"));
globalPrice->setSuffix(i18n("$"));
- connect(globalPrice, SIGNAL(valueChanged(int)), this, SLOT(globalPriceChanged(int)));
+ connect(globalPrice, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(globalPriceChanged(int)));
- dynamicGroupBox = new QVGroupBox(i18n("&Dynamic Rent"), page);
+ dynamicGroupBox = new TQVGroupBox(i18n("&Dynamic Rent"), page);
vlayout->addWidget(dynamicGroupBox);
- mathWidget = new QWidget(dynamicGroupBox);
- QGridLayout *mathLayout = new QGridLayout(mathWidget, 2, 2, 0, spacingHint());
- mathLayout->addWidget(new QLabel(i18n("Add rent variable:"), mathWidget), 0, 0);
- mathLayout->addWidget(new QLabel(i18n("Expression:"), mathWidget), 1, 0);
+ mathWidget = new TQWidget(dynamicGroupBox);
+ TQGridLayout *mathLayout = new TQGridLayout(mathWidget, 2, 2, 0, spacingHint());
+ mathLayout->addWidget(new TQLabel(i18n("Add rent variable:"), mathWidget), 0, 0);
+ mathLayout->addWidget(new TQLabel(i18n("Expression:"), mathWidget), 1, 0);
- QComboBox *rentVarCombo = new QComboBox(mathWidget);
- QStringList vars;
+ TQComboBox *rentVarCombo = new TQComboBox(mathWidget);
+ TQStringList vars;
vars << "DICE";
vars << "HOUSES";
vars << "GROUPOWNED";
@@ -85,18 +85,18 @@ GroupEditor::GroupEditor(ConfigEstateGroupList *newList, QWidget *parent)
mathLayout->addWidget(rentVarCombo, 0, 1);
rentMathEdit = new KLineEdit(mathWidget);
- connect(rentMathEdit, SIGNAL(textChanged(const QString &)), this, SLOT(rentMathChanged(const QString &)));
- connect(rentVarCombo, SIGNAL(activated(const QString &)), rentMathEdit, SLOT(insert(const QString &)));
+ connect(rentMathEdit, TQT_SIGNAL(textChanged(const TQString &)), this, TQT_SLOT(rentMathChanged(const TQString &)));
+ connect(rentVarCombo, TQT_SIGNAL(activated(const TQString &)), rentMathEdit, TQT_SLOT(insert(const TQString &)));
mathLayout->addWidget(rentMathEdit, 1, 1);
- QHBoxLayout *buttonlayout = new QHBoxLayout(vlayout, spacingHint());
+ TQHBoxLayout *buttonlayout = new TQHBoxLayout(vlayout, spacingHint());
KPushButton *addB = new KPushButton(i18n("&Add..."), page);
buttonlayout->addWidget(addB);
- connect(addB, SIGNAL(clicked()), this, SLOT(add()));
+ connect(addB, TQT_SIGNAL(clicked()), this, TQT_SLOT(add()));
removeB = new KPushButton(i18n("&Remove"), page);
buttonlayout->addWidget(removeB);
- connect(removeB, SIGNAL(clicked()), this, SLOT(remove()));
+ connect(removeB, TQT_SIGNAL(clicked()), this, TQT_SLOT(remove()));
selectionChanged();
}
@@ -104,7 +104,7 @@ GroupEditor::GroupEditor(ConfigEstateGroupList *newList, QWidget *parent)
void GroupEditor::add()
{
bool ok;
- QString name = KLineEditDlg::getText(i18n("Add Group"), i18n("Enter the name of the new group:"), QString::null, &ok, this);
+ TQString name = KLineEditDlg::getText(i18n("Add Group"), i18n("Enter the name of the new group:"), TQString::null, &ok, this);
if (ok)
{
for (ConfigEstateGroupList::Iterator it = mylist.begin(); it != mylist.end(); ++it)
@@ -125,7 +125,7 @@ void GroupEditor::add()
void GroupEditor::remove()
{
- QString curText = groups->currentText();
+ TQString curText = groups->currentText();
if (!curText.isNull())
{
groups->removeItem(groups->currentItem());
@@ -142,7 +142,7 @@ void GroupEditor::remove()
}
}
-void GroupEditor::updateSettings(QListBoxItem *item)
+void GroupEditor::updateSettings(TQListBoxItem *item)
{
if (!mylist.size())
return;
@@ -166,7 +166,7 @@ void GroupEditor::updateSettings(QListBoxItem *item)
ConfigEstateGroup *GroupEditor::currentGroup()
{
- QListBoxItem *item = groups->item(groups->currentItem());
+ TQListBoxItem *item = groups->item(groups->currentItem());
if (!item)
return 0;
@@ -177,14 +177,14 @@ ConfigEstateGroup *GroupEditor::currentGroup()
return 0;
}
-void GroupEditor::fgChanged(const QColor &color)
+void GroupEditor::fgChanged(const TQColor &color)
{
ConfigEstateGroup *group = currentGroup();
if (group)
group->setFgColor(color);
}
-void GroupEditor::bgChanged(const QColor &color)
+void GroupEditor::bgChanged(const TQColor &color)
{
ConfigEstateGroup *group = currentGroup();
if (group)
@@ -205,7 +205,7 @@ void GroupEditor::globalPriceChanged(int newValue)
group->setGlobalPrice(newValue);
}
-void GroupEditor::rentMathChanged(const QString &newValue)
+void GroupEditor::rentMathChanged(const TQString &newValue)
{
ConfigEstateGroup *group = currentGroup();
if (group)