diff options
Diffstat (limited to 'kommander/examples/old/widgetgenerator.kmdr')
-rw-r--r-- | kommander/examples/old/widgetgenerator.kmdr | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kommander/examples/old/widgetgenerator.kmdr b/kommander/examples/old/widgetgenerator.kmdr index 45f441fa..46f166e3 100644 --- a/kommander/examples/old/widgetgenerator.kmdr +++ b/kommander/examples/old/widgetgenerator.kmdr @@ -25,7 +25,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="1" column="0" rowspan="1" colspan="2"> + <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>Layout12</cstring> </property> @@ -100,37 +100,37 @@ headerContent="/**************************************************************** /* OTHER INCLUDES */ #include <kommanderwidget.h> -class QWidget; +class TQWidget; class QShowEvent; class @className : public @inheritClassName, public KommanderWidget { - Q_OBJECT + TQ_OBJECT - TQ_PROPERTY(QString populationText READ populationText WRITE setPopulationText DESIGNABLE false) + TQ_PROPERTY(TQString populationText READ populationText WRITE setPopulationText DESIGNABLE false) TQ_PROPERTY(QStringList associations READ associatedText WRITE setAssociatedText DESIGNABLE false) TQ_PROPERTY(bool KommanderWidget READ isKommanderWidget) public: - @className(QWidget *a_parent, const char *a_name); + @className(TQWidget *a_parent, const char *a_name); ~@className(); - virtual QString widgetText() const; + virtual TQString widgetText() const; virtual bool isKommanderWidget() const; virtual void setAssociatedText(QStringList); virtual QStringList associatedText() const; - virtual QString currentState() const; + virtual TQString currentState() const; - virtual QString populationText() const; - virtual void setPopulationText(QString); + virtual TQString populationText() const; + virtual void setPopulationText(TQString); -public Q_SLOTS: - virtual void setWidgetText(const QString &); +public slots: + virtual void setWidgetText(const TQString &); virtual void populate(); -Q_SIGNALS: +signals: void widgetOpened(); - void widgetTextChanged(const QString &); + void widgetTextChanged(const TQString &); protected: void showEvent( QShowEvent *e ); private: @@ -169,7 +169,7 @@ cppContent="/******************************************************************* #include <kommanderwidget.h> #include \"$classNameLower.h\" -@className::@className(QWidget *a_parent, const char *a_name) +@className::@className(TQWidget *a_parent, const char *a_name) : @inheritClassName(a_parent, a_name), KommanderWidget(this) { QStringList states; @@ -182,9 +182,9 @@ cppContent="/******************************************************************* { } -QString @className::currentState() const +TQString @className::currentState() const { - return QString(\"default\"); + return TQString(\"default\"); } bool @className::isKommanderWidget() const @@ -204,30 +204,30 @@ void @className::setAssociatedText(QStringList a_at) void @className::populate() { - QString txt = KommanderWidget::evalAssociatedText( populationText() ); + TQString txt = KommanderWidget::evalAssociatedText( populationText() ); setWidgetText( txt ); } -QString @className::populationText() const +TQString @className::populationText() const { return KommanderWidget::populationText(); } -void @className::setPopulationText(QString a_text) +void @className::setPopulationText(TQString a_text) { KommanderWidget::setPopulationText(a_text); } -void @className::setWidgetText(const QString &a_text) +void @className::setWidgetText(const TQString &a_text) { //set the widget text of your widget here emit widgetTextChanged(a_text); } -QString @className::widgetText() const +TQString @className::widgetText() const { // implement your widget text here - return QString::null; + return TQString::null; } void @className::showEvent( QShowEvent *e ) @@ -274,7 +274,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> </spacer> </hbox> </widget> - <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="0"> + <widget class="TQLayoutWidget" row="0" column="0"> <property name="name"> <cstring>Layout37</cstring> </property> @@ -288,7 +288,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> <property name="spacing"> <number>6</number> </property> - <widget class=TQLABEL_OBJECT_NAME_STRING> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel1</cstring> </property> @@ -296,7 +296,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> <string>Author:</string> </property> </widget> - <widget class=TQLABEL_OBJECT_NAME_STRING> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel6</cstring> </property> @@ -304,7 +304,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> <string>Email:</string> </property> </widget> - <widget class=TQLABEL_OBJECT_NAME_STRING> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel2</cstring> </property> @@ -312,7 +312,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> <string>Description:</string> </property> </widget> - <widget class=TQLABEL_OBJECT_NAME_STRING> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel3</cstring> </property> @@ -320,7 +320,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> <string>Date started:</string> </property> </widget> - <widget class=TQLABEL_OBJECT_NAME_STRING> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel4</cstring> </property> @@ -328,7 +328,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> <string>Class name:</string> </property> </widget> - <widget class=TQLABEL_OBJECT_NAME_STRING> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel7</cstring> </property> @@ -336,7 +336,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> <string>Base class name:</string> </property> </widget> - <widget class=TQLABEL_OBJECT_NAME_STRING> + <widget class="TQLabel"> <property name="name"> <cstring>TextLabel5</cstring> </property> @@ -346,7 +346,7 @@ echo "$cppContent" > @directory/$classNameLower.cpp</string> </widget> </vbox> </widget> - <widget class=TQLAYOUTWIDGET_OBJECT_NAME_STRING row="0" column="1"> + <widget class="TQLayoutWidget" row="0" column="1"> <property name="name"> <cstring>Layout36</cstring> </property> |