summaryrefslogtreecommitdiffstats
path: root/atlantikdesigner/designer/editor.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /atlantikdesigner/designer/editor.h
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'atlantikdesigner/designer/editor.h')
-rw-r--r--atlantikdesigner/designer/editor.h110
1 files changed, 55 insertions, 55 deletions
diff --git a/atlantikdesigner/designer/editor.h b/atlantikdesigner/designer/editor.h
index be6d63a..da6fa6d 100644
--- a/atlantikdesigner/designer/editor.h
+++ b/atlantikdesigner/designer/editor.h
@@ -2,9 +2,9 @@
#define ATLANTIK_EDITOR_H
#include <kmainwindow.h>
-#include <qstring.h>
-#include <qcolor.h>
-#include <qstringlist.h>
+#include <tqstring.h>
+#include <tqcolor.h>
+#include <tqstringlist.h>
#include <atlantic/estate.h>
@@ -29,8 +29,8 @@ class ConfigEstate : public Estate
void setEstateId(const int estateId);
int type()const { return m_type; }
void setType(const int type);
- const QString &group() { return m_group; }
- void setGroup(const QString &group);
+ const TQString &group() { return m_group; }
+ void setGroup(const TQString &group);
int price()const { return m_price; }
void setPrice(int);
int rent(int _h)const { return m_rent[_h]; }
@@ -39,10 +39,10 @@ class ConfigEstate : public Estate
void setTax(const int);
int taxPercentage() { return m_taxPercentage; }
void setTaxPercentage(const int);
- const QString &takeCard() { return m_takeCard; }
- void setTakeCard(const QString &);
- const QColor &forceBg() { return m_forceBg; }
- void setForceBg(const QColor &);
+ const TQString &takeCard() { return m_takeCard; }
+ void setTakeCard(const TQString &);
+ const TQColor &forceBg() { return m_forceBg; }
+ void setForceBg(const TQColor &);
bool go()const { return m_go; }
void setGo(const bool);
int passMoney()const { return m_passMoney; }
@@ -52,36 +52,36 @@ class ConfigEstate : public Estate
private:
int m_type;
- QString m_group;
+ TQString m_group;
int m_rent[6];
int m_price;
int m_tax;
int m_taxPercentage;
- QString m_takeCard;
- QColor m_forceBg;
+ TQString m_takeCard;
+ TQColor m_forceBg;
bool m_go;
int m_passMoney;
};
-typedef QPtrList<ConfigEstate> EstateList;
+typedef TQPtrList<ConfigEstate> EstateList;
struct Card
{
Card() {}
- Card(const QString &newName) { name = newName; }
- QString name;
- QStringList keys;
- QValueList<int> values;
+ Card(const TQString &newName) { name = newName; }
+ TQString name;
+ TQStringList keys;
+ TQValueList<int> values;
};
-class CardStack : public QValueList<Card>
+class CardStack : public TQValueList<Card>
{
public:
CardStack() {}
- CardStack(const QString &newName) { setName(newName); }
- const QString &name() { return m_name; }
- void setName(const QString &newName) { m_name = newName; }
+ CardStack(const TQString &newName) { setName(newName); }
+ const TQString &name() { return m_name; }
+ void setName(const TQString &newName) { m_name = newName; }
private:
- QString m_name;
+ TQString m_name;
};
class EstateDlg : public QWidget
@@ -89,7 +89,7 @@ class EstateDlg : public QWidget
Q_OBJECT
public:
- EstateDlg(QWidget *parent = 0, char *name = 0) : QWidget(parent, name) { estate = 0; }
+ EstateDlg(TQWidget *parent = 0, char *name = 0) : TQWidget(parent, name) { estate = 0; }
signals:
void updateBackground();
@@ -111,7 +111,7 @@ class EstateEdit : public QWidget
Q_OBJECT
public:
- EstateEdit(ConfigEstateGroupList *, EstateList *, QValueList<CardStack> *, QWidget *parent = 0, const char *name = 0);
+ EstateEdit(ConfigEstateGroupList *, EstateList *, TQValueList<CardStack> *, TQWidget *parent = 0, const char *name = 0);
ConfigEstate *theEstate() { return estate; }
bool upArrow()const;
bool downArrow()const;
@@ -133,7 +133,7 @@ class EstateEdit : public QWidget
void resized();
protected:
- void resizeEvent(QResizeEvent *);
+ void resizeEvent(TQResizeEvent *);
private slots:
void configure();
@@ -141,14 +141,14 @@ class EstateEdit : public QWidget
private:
KComboBox *typeCombo;
- QLineEdit *nameEdit;
- QCheckBox *goCheck;
- QSpinBox *passMoney;
- QWidget *centerWidget;
- QGridLayout *layout;
+ TQLineEdit *nameEdit;
+ TQCheckBox *goCheck;
+ TQSpinBox *passMoney;
+ TQWidget *centerWidget;
+ TQGridLayout *layout;
EstateList *estates;
- QValueList<CardStack> *cards;
+ TQValueList<CardStack> *cards;
ConfigEstateGroupList *groups;
ConfigEstate *estate;
@@ -166,7 +166,7 @@ class ChooseWidget : public QWidget
Q_OBJECT
public:
- ChooseWidget(EstateList *, int id, Card *, QWidget *parent = 0, char *name = 0);
+ ChooseWidget(EstateList *, int id, Card *, TQWidget *parent = 0, char *name = 0);
public slots:
void typeChanged(int);
@@ -176,12 +176,12 @@ class ChooseWidget : public QWidget
private:
Card *card;
KComboBox *typeCombo;
- QSpinBox *value;
+ TQSpinBox *value;
KComboBox *estate;
bool number;
bool prevNumber;
bool init;
- QHBoxLayout *hlayout;
+ TQHBoxLayout *hlayout;
EstateList *estates;
@@ -193,7 +193,7 @@ class CardView : public QWidget
Q_OBJECT
public:
- CardView(EstateList *, CardStack *, QWidget *parent = 0, char *name = 0);
+ CardView(EstateList *, CardStack *, TQWidget *parent = 0, char *name = 0);
private slots:
void selected(int);
@@ -214,12 +214,12 @@ class CardView : public QWidget
EstateList *estates;
- QVBoxLayout *layout;
+ TQVBoxLayout *layout;
Card *card;
CardStack *stack;
- QPtrList<ChooseWidget> choosies;
+ TQPtrList<ChooseWidget> choosies;
};
class TaxDlg : public EstateDlg
@@ -227,15 +227,15 @@ class TaxDlg : public EstateDlg
Q_OBJECT
public:
- TaxDlg(QWidget *parent = 0, char *name = 0);
+ TaxDlg(TQWidget *parent = 0, char *name = 0);
protected:
virtual void save();
virtual void update();
private:
- QSpinBox *tax;
- QSpinBox *taxPercentage;
+ TQSpinBox *tax;
+ TQSpinBox *taxPercentage;
};
class GenericDlg : public EstateDlg
@@ -243,7 +243,7 @@ class GenericDlg : public EstateDlg
Q_OBJECT
public:
- GenericDlg(QWidget *parent = 0, char *name = 0);
+ GenericDlg(TQWidget *parent = 0, char *name = 0);
protected:
virtual void save();
@@ -258,7 +258,7 @@ class CardsDlg : public EstateDlg
Q_OBJECT
public:
- CardsDlg(EstateList *, QValueList<CardStack> *, QWidget *parent = 0, char *name = 0);
+ CardsDlg(EstateList *, TQValueList<CardStack> *, TQWidget *parent = 0, char *name = 0);
protected:
virtual void save();
@@ -266,15 +266,15 @@ class CardsDlg : public EstateDlg
private slots:
void addStack();
- void updateView(const QString &);
+ void updateView(const TQString &);
private:
- QValueList<CardStack> *stacks;
+ TQValueList<CardStack> *stacks;
EstateList *estates;
- QComboBox *cards;
+ TQComboBox *cards;
CardView *view;
- QVBoxLayout *vlayout;
+ TQVBoxLayout *vlayout;
};
class StreetDlg : public EstateDlg
@@ -282,7 +282,7 @@ class StreetDlg : public EstateDlg
Q_OBJECT
public:
- StreetDlg(ConfigEstateGroupList *, QWidget *parent = 0, char *name = 0);
+ StreetDlg(ConfigEstateGroupList *, TQWidget *parent = 0, char *name = 0);
protected:
virtual void save();
@@ -290,16 +290,16 @@ class StreetDlg : public EstateDlg
virtual void groupUpdate();
private slots:
- void groupChanged(const QString &);
+ void groupChanged(const TQString &);
private:
- QSpinBox *houses0;
- QSpinBox *houses1;
- QSpinBox *houses2;
- QSpinBox *houses3;
- QSpinBox *houses4;
- QSpinBox *houses5;
- QSpinBox *price;
+ TQSpinBox *houses0;
+ TQSpinBox *houses1;
+ TQSpinBox *houses2;
+ TQSpinBox *houses3;
+ TQSpinBox *houses4;
+ TQSpinBox *houses5;
+ TQSpinBox *price;
KComboBox *groupCombo;
ConfigEstateGroupList *groups;