summaryrefslogtreecommitdiffstats
path: root/kexi/formeditor/factories/stdwidgetfactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/formeditor/factories/stdwidgetfactory.h')
-rw-r--r--kexi/formeditor/factories/stdwidgetfactory.h61
1 files changed, 32 insertions, 29 deletions
diff --git a/kexi/formeditor/factories/stdwidgetfactory.h b/kexi/formeditor/factories/stdwidgetfactory.h
index c0e56c5b..f5bd5528 100644
--- a/kexi/formeditor/factories/stdwidgetfactory.h
+++ b/kexi/formeditor/factories/stdwidgetfactory.h
@@ -20,80 +20,83 @@
#ifndef STDWIDGETFACTORY_H
#define STDWIDGETFACTORY_H
-#include <qframe.h>
+#include <tqframe.h>
#include "widgetfactory.h"
#include "container.h"
-class KFORMEDITOR_EXPORT KexiPictureLabel : public QLabel
+class KFORMEDITOR_EXPORT KexiPictureLabel : public TQLabel
{
Q_OBJECT
+ TQ_OBJECT
public:
- KexiPictureLabel(const QPixmap &pix, QWidget *parent, const char *name);
+ KexiPictureLabel(const TQPixmap &pix, TQWidget *tqparent, const char *name);
~KexiPictureLabel(){;}
- virtual bool setProperty(const char *name, const QVariant &value);
+ virtual bool setProperty(const char *name, const TQVariant &value);
};
-class KFORMEDITOR_EXPORT Line : public QFrame
+class KFORMEDITOR_EXPORT Line : public TQFrame
{
Q_OBJECT
- Q_PROPERTY(Orientation orientation READ orientation WRITE setOrientation)
+ TQ_OBJECT
+ TQ_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
public:
- Line(Orientation orient, QWidget *parent, const char *name);
+ Line(Qt::Orientation orient, TQWidget *tqparent, const char *name);
~Line(){;}
- void setOrientation(Orientation orient);
- Orientation orientation() const;
+ void setOrientation(Qt::Orientation orient);
+ Qt::Orientation orientation() const;
};
//! Factory for all basic widgets, including Spring (not containers)
class StdWidgetFactory : public KFormDesigner::WidgetFactory
{
Q_OBJECT
+ TQ_OBJECT
public:
- StdWidgetFactory(QObject *parent, const char *name, const QStringList &args);
+ StdWidgetFactory(TQObject *tqparent, const char *name, const TQStringList &args);
~StdWidgetFactory();
- virtual QWidget *createWidget(const QCString &c, QWidget *p, const char *n,
+ virtual TQWidget *createWidget(const TQCString &c, TQWidget *p, const char *n,
KFormDesigner::Container *container, int options = DefaultOptions);
- virtual bool createMenuActions(const QCString &classname, QWidget *w, QPopupMenu *menu,
+ virtual bool createMenuActions(const TQCString &classname, TQWidget *w, TQPopupMenu *menu,
KFormDesigner::Container *container);
- virtual bool startEditing(const QCString &classname, QWidget *w,
+ virtual bool startEditing(const TQCString &classname, TQWidget *w,
KFormDesigner::Container *container);
- virtual bool previewWidget(const QCString &classname, QWidget *widget,
+ virtual bool previewWidget(const TQCString &classname, TQWidget *widget,
KFormDesigner::Container *container);
- virtual bool clearWidgetContent(const QCString &classname, QWidget *w);
+ virtual bool clearWidgetContent(const TQCString &classname, TQWidget *w);
- virtual bool saveSpecialProperty(const QCString &classname,
- const QString &name, const QVariant &value, QWidget *w,
- QDomElement &parentNode, QDomDocument &parent);
- virtual bool readSpecialProperty(const QCString &classname, QDomElement &node,
- QWidget *w, KFormDesigner::ObjectTreeItem *item);
- virtual QValueList<QCString> autoSaveProperties(const QCString &classname);
+ virtual bool saveSpecialProperty(const TQCString &classname,
+ const TQString &name, const TQVariant &value, TQWidget *w,
+ TQDomElement &tqparentNode, TQDomDocument &tqparent);
+ virtual bool readSpecialProperty(const TQCString &classname, TQDomElement &node,
+ TQWidget *w, KFormDesigner::ObjectTreeItem *item);
+ virtual TQValueList<TQCString> autoSaveProperties(const TQCString &classname);
virtual void setPropertyOptions( KFormDesigner::WidgetPropertySet& buf,
- const KFormDesigner::WidgetInfo& info, QWidget *w );
+ const KFormDesigner::WidgetInfo& info, TQWidget *w );
public slots:
void editText();
void editListContents();
protected:
- virtual bool isPropertyVisibleInternal(const QCString &classname, QWidget *w,
- const QCString &property, bool isTopLevel);
- virtual bool changeText(const QString &newText);
- virtual void resizeEditor(QWidget *editor, QWidget *widget, const QCString &classname);
- void saveListItem(QListViewItem *item, QDomNode &parentNode, QDomDocument &domDoc);
- void readListItem(QDomElement &node, QListViewItem *parent, KListView *listview);
+ virtual bool isPropertyVisibleInternal(const TQCString &classname, TQWidget *w,
+ const TQCString &property, bool isTopLevel);
+ virtual bool changeText(const TQString &newText);
+ virtual void resizeEditor(TQWidget *editor, TQWidget *widget, const TQCString &classname);
+ void saveListItem(TQListViewItem *item, TQDomNode &tqparentNode, TQDomDocument &domDoc);
+ void readListItem(TQDomElement &node, TQListViewItem *tqparent, KListView *listview);
private:
// KFormDesigner::Container *m_container;
-// QWidget *m_widget;
+// TQWidget *m_widget;
};
#endif