summaryrefslogtreecommitdiffstats
path: root/quanta/dialogs/tagdialogs/tagattr.h
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/dialogs/tagdialogs/tagattr.h')
-rw-r--r--quanta/dialogs/tagdialogs/tagattr.h64
1 files changed, 32 insertions, 32 deletions
diff --git a/quanta/dialogs/tagdialogs/tagattr.h b/quanta/dialogs/tagdialogs/tagattr.h
index 30b5220d..2741a10c 100644
--- a/quanta/dialogs/tagdialogs/tagattr.h
+++ b/quanta/dialogs/tagdialogs/tagattr.h
@@ -19,10 +19,10 @@
#define TAGATTR_H
//qt includes
-#include <qstring.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qdom.h>
+#include <tqstring.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqdom.h>
//kde includes
#include <klineedit.h>
@@ -37,26 +37,26 @@ class QWidget;
class QTag;
-QDomNode findChild( QDomNode &parent, const QString &name );
+TQDomNode findChild( TQDomNode &parent, const TQString &name );
class Attr
{
public:
- Attr( QDomElement const& el, QWidget *, QTag *dtdTag )
+ Attr( TQDomElement const& el, TQWidget *, QTag *dtdTag )
: domEl(el), name(domEl.attribute("name","")), m_dtdTag(dtdTag) {}
//{ domEl = el; name = domEl->attribute("name",""); m_dtdTag = dtdTag;}
virtual ~Attr(){}
- virtual QString value()=0;
- virtual void setValue(const QString &value)=0;
+ virtual TQString value()=0;
+ virtual void setValue(const TQString &value)=0;
- QString attrName() const;
- QDomElement const& domElement() const { return domEl; }
+ TQString attrName() const;
+ TQDomElement const& domElement() const { return domEl; }
protected:
- QDomElement domEl;
- QString name;
+ TQDomElement domEl;
+ TQString name;
QTag *m_dtdTag;
};
@@ -64,15 +64,15 @@ class Attr
class Attr_line : public Attr
{
protected:
- QLineEdit *line;
+ TQLineEdit *line;
public:
- Attr_line( QDomElement const& el, QWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
- { line = (QLineEdit *)w; }
+ Attr_line( TQDomElement const& el, TQWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
+ { line = (TQLineEdit *)w; }
virtual ~Attr_line(){};
- virtual QString value() { return line->text(); }
- virtual void setValue(const QString &value) { line->setText(value); }
+ virtual TQString value() { return line->text(); }
+ virtual void setValue(const TQString &value) { line->setText(value); }
};
@@ -82,12 +82,12 @@ class Attr_color : public Attr
ColorCombo *color;
public:
- Attr_color( QDomElement const& el, QWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
+ Attr_color( TQDomElement const& el, TQWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
{ color = (ColorCombo *)w; }
virtual ~Attr_color(){};
- virtual QString value() { return color->colorName(); }
- virtual void setValue(const QString &value) { color->setColorName(value); }
+ virtual TQString value() { return color->colorName(); }
+ virtual void setValue(const TQString &value) { color->setColorName(value); }
};
class Attr_file : public Attr
@@ -96,40 +96,40 @@ class Attr_file : public Attr
FileCombo *file;
public:
- Attr_file( QDomElement const& el, QWidget *w , QTag * dtdTag ) : Attr(el, w, dtdTag)
+ Attr_file( TQDomElement const& el, TQWidget *w , QTag * dtdTag ) : Attr(el, w, dtdTag)
{ file = (FileCombo *)w; }
virtual ~Attr_file(){};
- virtual QString value() { return file->text(); }
- virtual void setValue(const QString &value) { file->setText(value); }
+ virtual TQString value() { return file->text(); }
+ virtual void setValue(const TQString &value) { file->setText(value); }
};
class Attr_list : public Attr
{
protected:
- QComboBox *combo;
+ TQComboBox *combo;
public:
- Attr_list( QDomElement const& el, QWidget *w, QTag *dtdTag );
+ Attr_list( TQDomElement const& el, TQWidget *w, QTag *dtdTag );
virtual ~Attr_list(){};
- virtual QString value() { return combo->currentText(); }
- virtual void setValue(const QString &value);
+ virtual TQString value() { return combo->currentText(); }
+ virtual void setValue(const TQString &value);
};
class Attr_check : public Attr
{
protected:
- QCheckBox *check;
+ TQCheckBox *check;
public:
- Attr_check( QDomElement const& el, QWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
- { check = (QCheckBox *)w; }
+ Attr_check( TQDomElement const& el, TQWidget *w, QTag *dtdTag ) : Attr(el, w, dtdTag)
+ { check = (TQCheckBox *)w; }
virtual ~Attr_check(){};
- virtual QString value() { return check->isChecked() ? "checked" : "unchecked" ; }
- virtual void setValue(const QString &value) { check->setChecked( !value.isEmpty() ); }
+ virtual TQString value() { return check->isChecked() ? "checked" : "unchecked" ; }
+ virtual void setValue(const TQString &value) { check->setChecked( !value.isEmpty() ); }
};