summaryrefslogtreecommitdiffstats
path: root/kommander/examples
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/examples')
-rw-r--r--kommander/examples/current/b1.kmdr2
-rw-r--r--kommander/examples/current/editor-poc.kmdr4
-rw-r--r--kommander/examples/old/form4.kmdr4
-rw-r--r--kommander/examples/old/form5.kmdr8
-rw-r--r--kommander/examples/old/settings.kmdr4
-rw-r--r--kommander/examples/old/tidy.kmdr4
-rw-r--r--kommander/examples/old/widgetgenerator.kmdr42
-rw-r--r--kommander/examples/old/wizard.kmdr12
-rw-r--r--kommander/examples/tutorial/picview.kmdr2
-rw-r--r--kommander/examples/tutorial/slots.kmdr2
10 files changed, 42 insertions, 42 deletions
diff --git a/kommander/examples/current/b1.kmdr b/kommander/examples/current/b1.kmdr
index 09725243..4dd7ee30 100644
--- a/kommander/examples/current/b1.kmdr
+++ b/kommander/examples/current/b1.kmdr
@@ -121,7 +121,7 @@ endif
<property name="associations" stdset="0">
<stringlist>
<string>//message_info("parentPid = "+parentPid+"\npid = "+pid)
-dcop("kmdr-executor-"+parentPid, "KommanderIf", "setText(QString,QString)", "StatusBar8", "Hello")
+dcop("kmdr-executor-"+parentPid, "KommanderIf", "setText(TQString,TQString)", "StatusBar8", "Hello")
</string>
</stringlist>
</property>
diff --git a/kommander/examples/current/editor-poc.kmdr b/kommander/examples/current/editor-poc.kmdr
index ae8ce00a..676fde24 100644
--- a/kommander/examples/current/editor-poc.kmdr
+++ b/kommander/examples/current/editor-poc.kmdr
@@ -303,9 +303,9 @@ debug("Clicked at: "+Self.Item(0)+" "+Self.Item(1))
&lt;stringlist&gt;
&lt;string&gt;&lt;/string&gt;
&lt;string&gt;@Array.setValue(help, "Proof of concept", "&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;Kommander MainWindow frames!&amp;lt;/h2&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;As Kommander took on functionality an attempt was made to make a MainWindow Kommander widget. Sadly it was a huge time loss for two developers who both gave up after days of trying. The problem was with the editor. However you can use a Qt Designer generated UI file renamed to a *.kmdr file. Into this frame you can place your widgets and make a working application where nearly everything works.&amp;lt;/p&amp;gt;")
-@Array.setValue(help, "Known limitations", "&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;Known limitations&amp;lt;/h2&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;As of this writing what is known not to work on the Kommander side is the settings read and write. There is no Initialize or Destroy section as there is no Kommander Text, however there are Q_SIGNALS for this on the window, so the functionality is intact. On the MainWindow side it is not possible to talk to any Actions as these are QActions from Designer and TDEActions are not derived from QActions in KDE 3x. This means a DCOP call to list actions or set states will not work. It is also not possible to talk to the Statusbar. Also submenus on the menubar and dropdown actions on the Toolbar will not work. Given that this is an unsupported use of Kommander it everything that does work makes it suitable for probably most small application uses.. &amp;lt;/p&amp;gt;")
+@Array.setValue(help, "Known limitations", "&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;Known limitations&amp;lt;/h2&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;As of this writing what is known not to work on the Kommander side is the settings read and write. There is no Initialize or Destroy section as there is no Kommander Text, however there are signals for this on the window, so the functionality is intact. On the MainWindow side it is not possible to talk to any Actions as these are QActions from Designer and TDEActions are not derived from QActions in KDE 3x. This means a DCOP call to list actions or set states will not work. It is also not possible to talk to the Statusbar. Also submenus on the menubar and dropdown actions on the Toolbar will not work. Given that this is an unsupported use of Kommander it everything that does work makes it suitable for probably most small application uses.. &amp;lt;/p&amp;gt;")
@Array.setValue(help, "Rolling your own", "&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;Rolling your own&amp;lt;/h2&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;It is our intention to have a template in the 1.3 release of a MainWindow, but if you have Qt Designer for Qt 3x you can easily start a window design, save it, rename to *.kmdr and open in Kommander. Remember not to add widgets in Designer as Kommander will not recognize them.&amp;lt;/p&amp;gt;")
-@Array.setValue(help, "Using Actions", "&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;Using Actions&amp;lt;/h2&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;If you want to get the goodies, menus, toolbars and accelerator keys, you need to use actions. Kommander has an Action editor on the window menu under Views. There you can add actions and there is a shortcut to connecting them with Q_SIGNALS and Q_SLOTS. To get everything working select an Action and look in the properties menu for settings like name, text and icon. For menus and toolbars try right clicking on them for context menus. Now from the Action View drag an Action to the menu or toolbar. See the visual feedback? Just connect your Action to a script and you have three different ways to call it.&amp;lt;/p&amp;gt;
+@Array.setValue(help, "Using Actions", "&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;Using Actions&amp;lt;/h2&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;If you want to get the goodies, menus, toolbars and accelerator keys, you need to use actions. Kommander has an Action editor on the window menu under Views. There you can add actions and there is a shortcut to connecting them with signals and slots. To get everything working select an Action and look in the properties menu for settings like name, text and icon. For menus and toolbars try right clicking on them for context menus. Now from the Action View drag an Action to the menu or toolbar. See the visual feedback? Just connect your Action to a script and you have three different ways to call it.&amp;lt;/p&amp;gt;
")
@Array.setValue(help, "Link examples", "&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;Link examples&amp;lt;/h2&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;This demo shows examples of linking. Links will show in the TextEdit widget, but they don't do anything. In the TextBrowser they open web pages and email links, but of course you can't edit in the TextBrowser. If you don't mind writing some script you can set up your own link handling, which I've done here. Note that it will follow links anywhere in the editor. If the link is a widget name it assumes it to be a script and calls it. If not it looks to see if it is a web link and calls that&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;It would be easy to extend this script to accept link parameters and process emails. You could also make a reference to other text objects, tab widget tabs, pretty much anything you can think of.&amp;lt;/p&amp;gt;")
@Array.setValue(help, "How this help works", "&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;How this help works&amp;lt;/h2&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;p&amp;gt;Do you wonder where this help came from? It is possible to use KDE help if you write DocBook, make it and install it. This quick help is fast and can contain &amp;lt;i&amp;gt;rich text&amp;lt;/i&amp;gt;. To look at the dialog copy the text in the hidden TextEdit (set to text mode so as not to muck things up with rich text interperting XML) and paste it to a text editor like KWrite. Save it as a Kommander file and open it in the Kommander Editor.&amp;lt;/p&amp;gt;")
diff --git a/kommander/examples/old/form4.kmdr b/kommander/examples/old/form4.kmdr
index db66649e..3bb039e2 100644
--- a/kommander/examples/old/form4.kmdr
+++ b/kommander/examples/old/form4.kmdr
@@ -79,9 +79,9 @@
<connections>
<connection>
<sender>TextEdit1</sender>
- <signal>widgetTextChanged(const QString&amp;)</signal>
+ <signal>widgetTextChanged(const TQString&amp;)</signal>
<receiver>LineEdit1</receiver>
- <slot>setWidgetText(const QString&amp;)</slot>
+ <slot>setWidgetText(const TQString&amp;)</slot>
</connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
diff --git a/kommander/examples/old/form5.kmdr b/kommander/examples/old/form5.kmdr
index ef7127c2..1f244567 100644
--- a/kommander/examples/old/form5.kmdr
+++ b/kommander/examples/old/form5.kmdr
@@ -331,15 +331,15 @@ Ha ha. We got it all with Kommander!</string>
<connections>
<connection>
<sender>ExecButton9</sender>
- <signal>widgetTextChanged(const QString&amp;)</signal>
+ <signal>widgetTextChanged(const TQString&amp;)</signal>
<receiver>usetext</receiver>
- <slot>setWidgetText(const QString&amp;)</slot>
+ <slot>setWidgetText(const TQString&amp;)</slot>
</connection>
<connection>
<sender>ExecButton9_2</sender>
- <signal>widgetTextChanged(const QString&amp;)</signal>
+ <signal>widgetTextChanged(const TQString&amp;)</signal>
<receiver>usetext</receiver>
- <slot>setText(const QString&amp;)</slot>
+ <slot>setText(const TQString&amp;)</slot>
</connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
diff --git a/kommander/examples/old/settings.kmdr b/kommander/examples/old/settings.kmdr
index 988dc3f9..df796460 100644
--- a/kommander/examples/old/settings.kmdr
+++ b/kommander/examples/old/settings.kmdr
@@ -249,9 +249,9 @@ Items")
</connection>
<connection>
<sender>ExecButton1</sender>
- <signal>widgetTextChanged(const QString&amp;)</signal>
+ <signal>widgetTextChanged(const TQString&amp;)</signal>
<receiver>listBox</receiver>
- <slot>setWidgetText(const QString&amp;)</slot>
+ <slot>setWidgetText(const TQString&amp;)</slot>
</connection>
<connection>
<sender>settingsDialog</sender>
diff --git a/kommander/examples/old/tidy.kmdr b/kommander/examples/old/tidy.kmdr
index e8641450..acc47721 100644
--- a/kommander/examples/old/tidy.kmdr
+++ b/kommander/examples/old/tidy.kmdr
@@ -1150,9 +1150,9 @@ fi
</connection>
<connection>
<sender>ExecButton2</sender>
- <signal>widgetTextChanged(const QString&amp;)</signal>
+ <signal>widgetTextChanged(const TQString&amp;)</signal>
<receiver>GtidyPath</receiver>
- <slot>setWidgetText(const QString&amp;)</slot>
+ <slot>setWidgetText(const TQString&amp;)</slot>
</connection>
</connections>
<layoutdefaults spacing="6" margin="11"/>
diff --git a/kommander/examples/old/widgetgenerator.kmdr b/kommander/examples/old/widgetgenerator.kmdr
index d4ebfc78..46f166e3 100644
--- a/kommander/examples/old/widgetgenerator.kmdr
+++ b/kommander/examples/old/widgetgenerator.kmdr
@@ -100,37 +100,37 @@ headerContent="/****************************************************************
/* OTHER INCLUDES */
#include &lt;kommanderwidget.h&gt;
-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 &amp;);
+public slots:
+ virtual void setWidgetText(const TQString &amp;);
virtual void populate();
-Q_SIGNALS:
+signals:
void widgetOpened();
- void widgetTextChanged(const QString &amp;);
+ void widgetTextChanged(const TQString &amp;);
protected:
void showEvent( QShowEvent *e );
private:
@@ -169,7 +169,7 @@ cppContent="/*******************************************************************
#include &lt;kommanderwidget.h&gt;
#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 &amp;a_text)
+void @className::setWidgetText(const TQString &amp;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 )
diff --git a/kommander/examples/old/wizard.kmdr b/kommander/examples/old/wizard.kmdr
index 352aaef3..d7f57170 100644
--- a/kommander/examples/old/wizard.kmdr
+++ b/kommander/examples/old/wizard.kmdr
@@ -39,7 +39,7 @@
</property>
<property name="associations" stdset="0">
<stringlist>
- <string>@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, @CheckBox1.checked)
+ <string>@dcop(@dcopid, KommanderIf, enableWidget(TQString,bool), next, @CheckBox1.checked)
</string>
</stringlist>
@@ -156,7 +156,7 @@
</property>
<property name="associations" stdset="0">
<stringlist>
- <string>@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), next, @CheckBox1_2.checked)
+ <string>@dcop(@dcopid, KommanderIf, enableWidget(TQString,bool), next, @CheckBox1_2.checked)
</string>
</stringlist>
@@ -213,7 +213,7 @@
</property>
<property name="associations" stdset="0">
<stringlist>
- <string>@dcop(@dcopid, KommanderIf, enableWidget(QString,bool), finish, @CheckBox2.checked)
+ <string>@dcop(@dcopid, KommanderIf, enableWidget(TQString,bool), finish, @CheckBox2.checked)
</string>
</stringlist>
@@ -262,15 +262,15 @@
</connection>
<connection>
<sender>Wizard1</sender>
- <signal>selected(const QString&amp;)</signal>
+ <signal>selected(const TQString&amp;)</signal>
<receiver>ScriptObject1_2</receiver>
<slot>execute()</slot>
</connection>
<connection>
<sender>Wizard1</sender>
- <signal>selected(const QString&amp;)</signal>
+ <signal>selected(const TQString&amp;)</signal>
<receiver>LineEdit6</receiver>
- <slot>setText(const QString&amp;)</slot>
+ <slot>setText(const TQString&amp;)</slot>
</connection>
<connection>
<sender>CheckBox2</sender>
diff --git a/kommander/examples/tutorial/picview.kmdr b/kommander/examples/tutorial/picview.kmdr
index 1617b53d..4fdca299 100644
--- a/kommander/examples/tutorial/picview.kmdr
+++ b/kommander/examples/tutorial/picview.kmdr
@@ -133,7 +133,7 @@
<connections>
<connection>
<sender>FileSelector1</sender>
- <signal>widgetTextChanged(const QString&amp;)</signal>
+ <signal>widgetTextChanged(const TQString&amp;)</signal>
<receiver>ListBox1</receiver>
<slot>populate()</slot>
</connection>
diff --git a/kommander/examples/tutorial/slots.kmdr b/kommander/examples/tutorial/slots.kmdr
index d4f2b524..ae0fec91 100644
--- a/kommander/examples/tutorial/slots.kmdr
+++ b/kommander/examples/tutorial/slots.kmdr
@@ -185,7 +185,7 @@ fi
<connections>
<connection>
<sender>FileSelector</sender>
- <signal>widgetTextChanged(const QString&amp;)</signal>
+ <signal>widgetTextChanged(const TQString&amp;)</signal>
<receiver>FileListBox</receiver>
<slot>populate()</slot>
</connection>