diff options
Diffstat (limited to 'src/gui/pieditor.h')
-rw-r--r-- | src/gui/pieditor.h | 56 |
1 files changed, 32 insertions, 24 deletions
diff --git a/src/gui/pieditor.h b/src/gui/pieditor.h index 8423c7d..bc3c7fb 100644 --- a/src/gui/pieditor.h +++ b/src/gui/pieditor.h @@ -11,9 +11,9 @@ #ifndef PIEDITOR_H #define PIEDITOR_H -#include <qwidget.h> -#include <qstring.h> -#include <qvariant.h> +#include <tqwidget.h> +#include <tqstring.h> +#include <tqvariant.h> class DoubleSpinBox; class ColorCombo; @@ -27,21 +27,22 @@ class Variant; /** @author Daniel Clarke */ -class PIEditor : public QWidget +class PIEditor : public TQWidget { Q_OBJECT + TQ_OBJECT public: - PIEditor(QString id, Variant *data, QWidget *parent = 0, const char *name = 0); + PIEditor(TQString id, Variant *data, TQWidget *tqparent = 0, const char *name = 0); ~PIEditor(); public slots: - virtual void valueChanged( QVariant variant ); + virtual void valueChanged( TQVariant variant ); signals: - void editorDataChanged(const QString &id, QVariant data); + void editorDataChanged(const TQString &id, TQVariant data); protected: - QString m_id; + TQString m_id; Variant *m_data; }; @@ -52,15 +53,16 @@ class PIEditor : public QWidget class PIBool : public PIEditor { Q_OBJECT + TQ_OBJECT public: - PIBool( QString id, Variant *data, QWidget *parent = 0, const char *name = 0 ); + PIBool( TQString id, Variant *data, TQWidget *tqparent = 0, const char *name = 0 ); ~PIBool(); void popup(); protected slots: void selectChanged( int index ); - virtual void valueChanged( QVariant variant ); + virtual void valueChanged( TQVariant variant ); protected: KComboBox *m_comboBox; @@ -72,14 +74,15 @@ class PIBool : public PIEditor class PIColor : public PIEditor { Q_OBJECT + TQ_OBJECT public: - PIColor(QString id, Variant *data, QWidget *parent = 0, const char *name = 0); + PIColor(TQString id, Variant *data, TQWidget *tqparent = 0, const char *name = 0); ~PIColor(); void popup(); protected slots: - void colorChanged(const QColor &col); - virtual void valueChanged( QVariant variant ); + void colorChanged(const TQColor &col); + virtual void valueChanged( TQVariant variant ); protected: ColorCombo *m_combo; @@ -93,13 +96,14 @@ Allows the editing of double precision numerical values, using the DoubleNum wid class PIDouble : public PIEditor { Q_OBJECT + TQ_OBJECT public: - PIDouble(QString id, Variant *data, QWidget *parent = 0, const char *name = 0); + PIDouble(TQString id, Variant *data, TQWidget *tqparent = 0, const char *name = 0); ~PIDouble(); protected slots: void spinValueChanged(double value); - virtual void valueChanged( QVariant variant ); + virtual void valueChanged( TQVariant variant ); protected: DoubleSpinBox *spin; @@ -112,13 +116,14 @@ class PIDouble : public PIEditor class PIFilename : public PIEditor { Q_OBJECT + TQ_OBJECT public: - PIFilename(QString id, Variant *data, QWidget *parent = 0, const char *name = 0); + PIFilename(TQString id, Variant *data, TQWidget *tqparent = 0, const char *name = 0); ~PIFilename(); protected slots: - void slotURLChanged(const QString &url); - virtual void valueChanged( QVariant variant ); + void slotURLChanged(const TQString &url); + virtual void valueChanged( TQVariant variant ); // see comments in implementation. //void slotOpenFileDialog(KURLRequester *kurlreq); @@ -133,13 +138,14 @@ class PIFilename : public PIEditor class PIInt : public PIEditor { Q_OBJECT + TQ_OBJECT public: - PIInt( const QString &id, Variant *data, QWidget *parent = 0, const char *name = 0); + PIInt( const TQString &id, Variant *data, TQWidget *tqparent = 0, const char *name = 0); ~PIInt(); protected slots: void spinValueChanged( int value ); - virtual void valueChanged( QVariant variant ); + virtual void valueChanged( TQVariant variant ); protected: KIntSpinBox *spin; @@ -152,13 +158,14 @@ class PIInt : public PIEditor class PILineEdit : public PIEditor { Q_OBJECT + TQ_OBJECT public: - PILineEdit(QString id, Variant *data, QWidget *parent = 0, const char *name = 0); + PILineEdit(TQString id, Variant *data, TQWidget *tqparent = 0, const char *name = 0); ~PILineEdit(); protected slots: void slotEditTextChanged(); - virtual void valueChanged( QVariant variant ); + virtual void valueChanged( TQVariant variant ); protected: KLineEdit *m_edit; @@ -171,13 +178,14 @@ class PILineEdit : public PIEditor class PIStringCombo : public PIEditor { Q_OBJECT + TQ_OBJECT public: - PIStringCombo(QString id, Variant *data, QWidget *parent, const char *name = 0); + PIStringCombo(TQString id, Variant *data, TQWidget *tqparent, const char *name = 0); ~PIStringCombo(); void popup(); public slots: - virtual void valueChanged( QVariant variant ); + virtual void valueChanged( TQVariant variant ); void slotComboChanged(); protected: |