diff options
Diffstat (limited to 'atlantikdesigner/designer/boardinfo.cpp')
-rw-r--r-- | atlantikdesigner/designer/boardinfo.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/atlantikdesigner/designer/boardinfo.cpp b/atlantikdesigner/designer/boardinfo.cpp index 9bc6dbb..56b561a 100644 --- a/atlantikdesigner/designer/boardinfo.cpp +++ b/atlantikdesigner/designer/boardinfo.cpp @@ -1,9 +1,9 @@ -#include <qstring.h> -#include <qlayout.h> -#include <qstringlist.h> -#include <qframe.h> -#include <qptrlist.h> -#include <qlabel.h> +#include <tqstring.h> +#include <tqlayout.h> +#include <tqstringlist.h> +#include <tqframe.h> +#include <tqptrlist.h> +#include <tqlabel.h> #include <kcolorbutton.h> #include <kdialogbase.h> @@ -15,7 +15,7 @@ #include "boardinfo.h" -BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, const char *_name, bool modal) +BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, TQWidget *parent, const char *_name, bool modal) : KDialogBase(KDialogBase::Tabbed, i18n("Gameboard Information"), (editable? Ok|Apply|Cancel : Close), (editable? Ok : Close), parent, _name, modal) { if (!info) @@ -24,8 +24,8 @@ BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, cons setWFlags(WDestructiveClose); - QFrame *about = addPage(i18n("Information")); - QVBoxLayout *aboutLayout = new QVBoxLayout(about, spacingHint()); + TQFrame *about = addPage(i18n("Information")); + TQVBoxLayout *aboutLayout = new TQVBoxLayout(about, spacingHint()); if (editable) { @@ -34,22 +34,22 @@ BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, cons } else { - aboutLayout->addWidget(new QLabel(info->name, about)); + aboutLayout->addWidget(new TQLabel(info->name, about)); name = 0; } - QHBoxLayout *versionLayout = new QHBoxLayout(aboutLayout, spacingHint()); - versionLayout->addWidget(new QLabel(i18n("Version:"), about)); + TQHBoxLayout *versionLayout = new TQHBoxLayout(aboutLayout, spacingHint()); + versionLayout->addWidget(new TQLabel(i18n("Version:"), about)); if (editable) { versionLayout->addWidget(version = new KLineEdit(about)); version->setText(info->version); } else - versionLayout->addWidget(new QLabel(info->version, about)); + versionLayout->addWidget(new TQLabel(info->version, about)); - QHBoxLayout *urlLayout = new QHBoxLayout(aboutLayout, spacingHint()); - urlLayout->addWidget(new QLabel(i18n("URL:"), about)); + TQHBoxLayout *urlLayout = new TQHBoxLayout(aboutLayout, spacingHint()); + urlLayout->addWidget(new TQLabel(i18n("URL:"), about)); if (editable) urlLayout->addWidget(url = new KLineEdit(info->url, about)); else @@ -57,7 +57,7 @@ BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, cons aboutLayout->addStretch(3); - aboutLayout->addWidget(new QLabel(i18n("Description:"), about)); + aboutLayout->addWidget(new TQLabel(i18n("Description:"), about)); aboutLayout->addStretch(); aboutLayout->addWidget(description = new KLineEdit(about)); description->setText(info->description); @@ -68,20 +68,20 @@ BoardInfoDlg::BoardInfoDlg(bool editable, BoardInfo *info, QWidget *parent, cons if (editable) { - QHBoxLayout *bgLayout = new QHBoxLayout(aboutLayout, spacingHint()); - bgLayout->addWidget(new QLabel(i18n("Background color:"), about)); + TQHBoxLayout *bgLayout = new TQHBoxLayout(aboutLayout, spacingHint()); + bgLayout->addWidget(new TQLabel(i18n("Background color:"), about)); bgColor = new KColorButton(info->bgColor, about); bgLayout->addWidget(bgColor); } else bgColor = 0; - QFrame *authorsFrame = addPage(i18n("&Authors")); - QVBoxLayout *authorsLayout = new QVBoxLayout(authorsFrame, spacingHint()); + TQFrame *authorsFrame = addPage(i18n("&Authors")); + TQVBoxLayout *authorsLayout = new TQVBoxLayout(authorsFrame, spacingHint()); authorsLayout->addWidget(authors = new LotsaEdits(editable, info->authors, authorsFrame)); - QFrame *creditsFrame = addPage(i18n("&Thanks To")); - QVBoxLayout *creditsLayout = new QVBoxLayout(creditsFrame, spacingHint()); + TQFrame *creditsFrame = addPage(i18n("&Thanks To")); + TQVBoxLayout *creditsLayout = new TQVBoxLayout(creditsFrame, spacingHint()); creditsLayout->addWidget(credits = new LotsaEdits(editable, info->credits, creditsFrame)); } @@ -110,44 +110,44 @@ void BoardInfoDlg::slotOk() /////////////////////////////////// -LotsaEdits::LotsaEdits(bool editable, QStringList defaults, QWidget *parent, const char *name) : QWidget(parent, name) +LotsaEdits::LotsaEdits(bool editable, TQStringList defaults, TQWidget *parent, const char *name) : TQWidget(parent, name) { list.setAutoDelete(true); this->editable = editable; - layout = new QVBoxLayout(this, KDialogBase::spacingHint()); - QHBoxLayout *hlayout = new QHBoxLayout(layout, KDialogBase::spacingHint()); + layout = new TQVBoxLayout(this, KDialogBase::spacingHint()); + TQHBoxLayout *hlayout = new TQHBoxLayout(layout, KDialogBase::spacingHint()); if (editable) { KPushButton *more = new KPushButton(i18n("&Add Name"), this); hlayout->addWidget(more); - connect(more, SIGNAL(clicked()), this, SLOT(more())); + connect(more, TQT_SIGNAL(clicked()), this, TQT_SLOT(more())); hlayout->addStretch(); KPushButton *less= new KPushButton(i18n("&Delete Name"), this); hlayout->addWidget(less); - connect(less, SIGNAL(clicked()), this, SLOT(less())); + connect(less, TQT_SIGNAL(clicked()), this, TQT_SLOT(less())); } layout->addStretch(); - for (QStringList::Iterator it = defaults.begin(); it != defaults.end(); ++it) + for (TQStringList::Iterator it = defaults.begin(); it != defaults.end(); ++it) { more(); if (editable) static_cast<KLineEdit *>(list.last())->setText(*it); else - static_cast<QLabel *>(list.last())->setText(*it); + static_cast<TQLabel *>(list.last())->setText(*it); } } void LotsaEdits::more() { - QWidget *edit; + TQWidget *edit; if (editable) edit = new KLineEdit(this); else - edit = new QLabel(this); + edit = new TQLabel(this); layout->addWidget(edit); list.append(edit); edit->show(); @@ -157,7 +157,7 @@ void LotsaEdits::less() { list.removeLast(); /* - QWidget *edit = 0; + TQWidget *edit = 0; for (edit = list.first(); edit; edit = list.next()) { if (edit->hasFocus()) @@ -169,16 +169,16 @@ void LotsaEdits::less() */ } -QStringList LotsaEdits::save() +TQStringList LotsaEdits::save() { - QStringList ret; + TQStringList ret; - QWidget *edit = 0; + TQWidget *edit = 0; for (edit = list.first(); edit; edit = list.next()) if (editable) ret.append(static_cast<KLineEdit *>(edit)->text()); else - ret.append(static_cast<QLabel *>(edit)->text()); + ret.append(static_cast<TQLabel *>(edit)->text()); return ret; } |