summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs/examples')
-rw-r--r--kjsembed/docs/examples/README10
-rw-r--r--kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui64
-rwxr-xr-xkjsembed/docs/examples/buttonmaker/buttonmaker.js12
-rwxr-xr-xkjsembed/docs/examples/buttonmaker/pillbox.js34
-rw-r--r--kjsembed/docs/examples/calc/calc.ui36
-rw-r--r--kjsembed/docs/examples/combobox/combo.js8
-rw-r--r--kjsembed/docs/examples/connect-cpp/connect-cpp.js10
-rw-r--r--kjsembed/docs/examples/connect/connect.js2
-rw-r--r--kjsembed/docs/examples/connect/connect.ui18
-rwxr-xr-xkjsembed/docs/examples/customwidget/custom_widget.js24
-rwxr-xr-xkjsembed/docs/examples/dcop/interface.js4
-rwxr-xr-xkjsembed/docs/examples/dcop/rss.js8
-rwxr-xr-xkjsembed/docs/examples/dcop/signalslot.js14
-rwxr-xr-xkjsembed/docs/examples/dcop/weather.js4
-rw-r--r--kjsembed/docs/examples/docviewer/docviewer.js6
-rw-r--r--kjsembed/docs/examples/docviewer/docviewer.ui6
-rw-r--r--kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui46
-rwxr-xr-xkjsembed/docs/examples/envelopemaker/env.js2
-rw-r--r--kjsembed/docs/examples/eventhandling/jsboard.js10
-rw-r--r--kjsembed/docs/examples/eventhandling/mousetrack.js2
-rw-r--r--kjsembed/docs/examples/eventhandling/scribble.js2
-rw-r--r--kjsembed/docs/examples/frame/frame.js16
-rw-r--r--kjsembed/docs/examples/grepdialog/README2
-rw-r--r--kjsembed/docs/examples/grepdialog/grepdlg.ui22
-rw-r--r--kjsembed/docs/examples/grepdialog/grepresults.ui10
-rw-r--r--kjsembed/docs/examples/html2text/test.htm22
-rw-r--r--kjsembed/docs/examples/imagefun/bump.ui48
-rw-r--r--kjsembed/docs/examples/imagefun/bumptest.pngbin950 -> 951 bytes
-rwxr-xr-xkjsembed/docs/examples/imagefun/title.js2
-rw-r--r--kjsembed/docs/examples/imageinfo/example.html4
-rw-r--r--kjsembed/docs/examples/imageinfo/example1.htm2
-rw-r--r--kjsembed/docs/examples/imageinfo/example1.pngbin67208 -> 67212 bytes
-rw-r--r--kjsembed/docs/examples/imageinfo/example4.pngbin21560 -> 21561 bytes
-rwxr-xr-xkjsembed/docs/examples/imageinfo/imagegallery.js2
-rw-r--r--kjsembed/docs/examples/imageinfo/thumb-example1.pngbin17080 -> 17081 bytes
-rw-r--r--kjsembed/docs/examples/imageinfo/thumb-example2.pngbin18734 -> 18737 bytes
-rw-r--r--kjsembed/docs/examples/imageinfo/thumb-example3.pngbin24897 -> 24903 bytes
-rw-r--r--kjsembed/docs/examples/imageinfo/thumb-example4.pngbin17596 -> 17601 bytes
-rw-r--r--kjsembed/docs/examples/imageinfo/thumbs.html4
-rw-r--r--kjsembed/docs/examples/imagetweak/example1.pngbin67208 -> 67212 bytes
-rw-r--r--kjsembed/docs/examples/imagetweak/example4.pngbin21560 -> 21561 bytes
-rwxr-xr-xkjsembed/docs/examples/imagetweak/imagetweak.js4
-rw-r--r--kjsembed/docs/examples/imageviewer/imageviewer.js2
-rw-r--r--kjsembed/docs/examples/imunge/effectbrowser.ui8
-rwxr-xr-xkjsembed/docs/examples/imunge/imunge.js6
-rwxr-xr-xkjsembed/docs/examples/imunge/imunge_actions.js4
-rw-r--r--kjsembed/docs/examples/imunge/resizeparams.ui16
-rw-r--r--kjsembed/docs/examples/index.html12
-rwxr-xr-xkjsembed/docs/examples/invaders/invaders.js8
-rw-r--r--kjsembed/docs/examples/kjsuic/kjsuic.js2
-rw-r--r--kjsembed/docs/examples/listview/listview.js2
-rw-r--r--kjsembed/docs/examples/livedata/livepartdata.js2
-rw-r--r--kjsembed/docs/examples/madminute/configdialog.ui32
-rw-r--r--kjsembed/docs/examples/madminute/helpdialog.ui8
-rwxr-xr-xkjsembed/docs/examples/madminute/madminute.js2
-rw-r--r--kjsembed/docs/examples/madminute/madminute.ui28
-rw-r--r--kjsembed/docs/examples/multipart/multipart.js6
-rwxr-xr-xkjsembed/docs/examples/netaccess/net.js2
-rwxr-xr-xkjsembed/docs/examples/opaquevalues/opaque.js4
-rwxr-xr-xkjsembed/docs/examples/qdocviewer/docviewer.ui46
-rw-r--r--kjsembed/docs/examples/qdocviewer/qdocviewer.js30
-rwxr-xr-xkjsembed/docs/examples/readonlypart/readonlypart.js2
-rwxr-xr-xkjsembed/docs/examples/readwritepart/readwritepart.js2
-rwxr-xr-xkjsembed/docs/examples/sql/sql.js4
-rwxr-xr-xkjsembed/docs/examples/stdicons/stdicons.js12
-rwxr-xr-xkjsembed/docs/examples/systemtray/systemtray.js4
-rw-r--r--kjsembed/docs/examples/timer/timer.js2
-rw-r--r--kjsembed/docs/examples/treeview/showtree.js10
-rw-r--r--kjsembed/docs/examples/treeview/tree2.js10
-rw-r--r--kjsembed/docs/examples/treeview/treetest.ui22
-rwxr-xr-xkjsembed/docs/examples/xmlgui/xmlgui.js2
71 files changed, 375 insertions, 375 deletions
diff --git a/kjsembed/docs/examples/README b/kjsembed/docs/examples/README
index db1e2e37..71449ae3 100644
--- a/kjsembed/docs/examples/README
+++ b/kjsembed/docs/examples/README
@@ -40,14 +40,14 @@ This section contains examples that illustrate particular KJSEmbed facilities.
customwidget Creates a simple form directly from Javascript.
treeview Two examples that create a graphical tree. One from a JS
data structure, the other from the widget tree of a ui file.
-qobject-dom Illustrates the QObject DOM API.
+qobject-dom Illustrates the TQObject DOM API.
connect-cpp Connects a signal to slot.
connect Connects signals of various types to JS methods.
-imageviewer Illustrates the use of QPixmap values.
+imageviewer Illustrates the use of TQPixmap values.
netaccess Illustrates the bindings to KIO::NetAccess.
listview Creates a simple KListView.
-frame Shows off QFrame support and the use of enums.
-timer Creates a flashing LED using QTimer.
+frame Shows off TQFrame support and the use of enums.
+timer Creates a flashing LED using TQTimer.
Actions A simple KAction demo.
Built-In Messages Demonstrates the built-in message dialogs.
Image Tweak Tweaking images.
@@ -57,7 +57,7 @@ JS UIC An easy way to deal with UI files.
Multi-file Scripts Multi-file Scripts.
Opaque Values Opaque types.
Standard Icons Loading standard icons.
-QComboBox A simple demo of QComboBox.
+TTQComboBox A simple demo of TQComboBox.
Embedding several Shows how to embed multiple parts in the same script.
KParts
Writing data Shows how to send data directly to a part, rather than
diff --git a/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui b/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui
index 23c30593..60339d6a 100644
--- a/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui
+++ b/kjsembed/docs/examples/buttonmaker/ButtonMakerUI.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>Form1</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -24,7 +24,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>PreviewBox</cstring>
</property>
@@ -43,7 +43,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>Preview</cstring>
</property>
@@ -56,7 +56,7 @@
</widget>
</grid>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout6</cstring>
</property>
@@ -64,7 +64,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -82,7 +82,7 @@
</widget>
</hbox>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>Mode</cstring>
</property>
@@ -93,7 +93,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout15</cstring>
</property>
@@ -101,7 +101,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout8</cstring>
</property>
@@ -109,7 +109,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>Srcimg</cstring>
</property>
@@ -127,7 +127,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout14</cstring>
</property>
@@ -152,7 +152,7 @@
</size>
</property>
</spacer>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout13</cstring>
</property>
@@ -160,7 +160,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel3_2</cstring>
</property>
@@ -178,7 +178,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout12</cstring>
</property>
@@ -186,7 +186,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel4_2</cstring>
</property>
@@ -208,7 +208,7 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout17</cstring>
</property>
@@ -216,7 +216,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>Pillbox</cstring>
</property>
@@ -241,7 +241,7 @@
</size>
</property>
</spacer>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout9</cstring>
</property>
@@ -249,7 +249,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -273,7 +273,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout10</cstring>
</property>
@@ -281,7 +281,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -322,7 +322,7 @@
</size>
</property>
</spacer>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout15</cstring>
</property>
@@ -330,7 +330,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -362,7 +362,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>TextBox</cstring>
</property>
@@ -373,7 +373,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -392,7 +392,7 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout16</cstring>
</property>
@@ -400,7 +400,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -413,7 +413,7 @@
<cstring>XOffset</cstring>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2_2_2</cstring>
</property>
@@ -445,7 +445,7 @@
</spacer>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout10</cstring>
</property>
@@ -453,7 +453,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout7</cstring>
</property>
@@ -461,7 +461,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -496,7 +496,7 @@
</size>
</property>
</spacer>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout8</cstring>
</property>
@@ -504,7 +504,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel5</cstring>
</property>
diff --git a/kjsembed/docs/examples/buttonmaker/buttonmaker.js b/kjsembed/docs/examples/buttonmaker/buttonmaker.js
index ac85b878..8cb82ba3 100755
--- a/kjsembed/docs/examples/buttonmaker/buttonmaker.js
+++ b/kjsembed/docs/examples/buttonmaker/buttonmaker.js
@@ -24,20 +24,20 @@ win.connect( saveAction, 'activated()', this, 'saveImage');
win.connect( newAction, 'activated()', this, 'resetView');
-win.connect(view.TextBox.Font, 'fontSelected(const QFont&)', this, 'updateUI' );
-win.connect(view.TextBox.TextColors, 'fgChanged(const QColor&)', this, 'updateUI' );
-win.connect(view.TextBox.TextColors, 'bgChanged(const QColor&)', this, 'updateUI' );
+win.connect(view.TextBox.Font, 'fontSelected(const TQFont&)', this, 'updateUI' );
+win.connect(view.TextBox.TextColors, 'fgChanged(const TQColor&)', this, 'updateUI' );
+win.connect(view.TextBox.TextColors, 'bgChanged(const TQColor&)', this, 'updateUI' );
win.connect(view.TextBox.Offset, 'valueChanged(int)', this, 'updateUI' );
win.connect(view.TextBox.YOffset, 'valueChanged(int)', this, 'updateUI' );
win.connect(view.TextBox.XOffset, 'valueChanged(int)', this, 'updateUI' );
-win.connect(view.Text, 'returnPressed(const QString&)', this, 'updateUI');
+win.connect(view.Text, 'returnPressed(const TQString&)', this, 'updateUI');
win.connect(view.Mode, 'released(int)', this, 'changeMode');
win.connect(view.Mode.Xsize, 'valueChanged(int)', this, 'updatePillBox' );
win.connect(view.Mode.Ysize, 'valueChanged(int)', this, 'updatePillBox' );
-win.connect(view.Mode.BaseColor, 'changed(const QColor&)', this, 'updatePillBox' );
-win.connect(view.Mode.BaseImage, 'urlSelected(const QString&)', this, 'loadImage');
+win.connect(view.Mode.BaseColor, 'changed(const TQColor&)', this, 'updatePillBox' );
+win.connect(view.Mode.BaseImage, 'urlSelected(const TQString&)', this, 'loadImage');
win.connect(view.Mode.Xscale, 'valueChanged(int)', this, 'updateUI' );
win.connect(view.Mode.Yscale, 'valueChanged(int)', this, 'updateUI' );
diff --git a/kjsembed/docs/examples/buttonmaker/pillbox.js b/kjsembed/docs/examples/buttonmaker/pillbox.js
index 25c50ae1..21621c19 100755
--- a/kjsembed/docs/examples/buttonmaker/pillbox.js
+++ b/kjsembed/docs/examples/buttonmaker/pillbox.js
@@ -61,35 +61,35 @@ function BaseImage()
}
this.test = function( parent ) {
- var box = new QHBox(parent);
- var vbox1 = new QVBox(box);
- var vbox2 = new QVBox(box);
- var vbox3 = new QVBox(box);
- var l1 = new QLabel(vbox1);
+ var box = new TQHBox(parent);
+ var vbox1 = new TQVBox(box);
+ var vbox2 = new TQVBox(box);
+ var vbox3 = new TQVBox(box);
+ var l1 = new TQLabel(vbox1);
l1.pixmap = this.a.pixmap();
- var l2 = new QLabel(vbox1);
+ var l2 = new TQLabel(vbox1);
l2.pixmap = this.d.pixmap();
- var l3 = new QLabel(vbox1);
+ var l3 = new TQLabel(vbox1);
l3.pixmap = this.g.pixmap();
- var l4 = new QLabel(vbox2);
+ var l4 = new TQLabel(vbox2);
l4.pixmap = this.b.pixmap();
- var l5 = new QLabel(vbox2);
+ var l5 = new TQLabel(vbox2);
l5.pixmap = this.e.pixmap();
- var l6 = new QLabel(vbox2);
+ var l6 = new TQLabel(vbox2);
l6.pixmap = this.h.pixmap();
- var l7 = new QLabel(vbox3);
+ var l7 = new TQLabel(vbox3);
l7.pixmap = this.c.pixmap();
- var l8 = new QLabel(vbox3);
+ var l8 = new TQLabel(vbox3);
l8.pixmap = this.f.pixmap();
- var l9 = new QLabel(vbox3);
+ var l9 = new TQLabel(vbox3);
l9.pixmap = this.i.pixmap();
}
@@ -138,7 +138,7 @@ function BaseImage()
var base = new BaseImage();
-var label = new QLabel(this);
+var label = new TQLabel(this);
if ( !base.loadImages() )
@@ -150,8 +150,8 @@ var W = 128;
base.resize(W,H);
-var box = new QHBox(this);
-var label = new QLabel(box);
+var box = new TQHBox(this);
+var label = new TQLabel(box);
label.resize(W,H);
label.paintEvent = function(ev)
{
@@ -159,7 +159,7 @@ label.paintEvent = function(ev)
base.widget(label);
}
-var label2 = new QLabel(box);
+var label2 = new TQLabel(box);
label2.pixmap = base.pixmap(W,H);
base.test(box);
diff --git a/kjsembed/docs/examples/calc/calc.ui b/kjsembed/docs/examples/calc/calc.ui
index 773ea848..85fb6afc 100644
--- a/kjsembed/docs/examples/calc/calc.ui
+++ b/kjsembed/docs/examples/calc/calc.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>calc</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>calc</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLCDNumber">
+ <widget class="TQLCDNumber">
<property name="name">
<cstring>display</cstring>
</property>
@@ -27,7 +27,7 @@
<number>18</number>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
@@ -35,7 +35,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton" row="1" column="3">
+ <widget class="TQPushButton" row="1" column="3">
<property name="name">
<cstring>plus</cstring>
</property>
@@ -43,7 +43,7 @@
<string>+</string>
</property>
</widget>
- <widget class="QPushButton" row="0" column="4">
+ <widget class="TQPushButton" row="0" column="4">
<property name="name">
<cstring>all_clear</cstring>
</property>
@@ -51,7 +51,7 @@
<string>AC</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="3">
+ <widget class="TQPushButton" row="2" column="3">
<property name="name">
<cstring>minus</cstring>
</property>
@@ -59,7 +59,7 @@
<string>-</string>
</property>
</widget>
- <widget class="QPushButton" row="3" column="2" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="3" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>equals</cstring>
</property>
@@ -67,7 +67,7 @@
<string>=</string>
</property>
</widget>
- <widget class="QPushButton" row="1" column="4">
+ <widget class="TQPushButton" row="1" column="4">
<property name="name">
<cstring>clear</cstring>
</property>
@@ -75,7 +75,7 @@
<string>CL</string>
</property>
</widget>
- <widget class="QPushButton" row="3" column="1">
+ <widget class="TQPushButton" row="3" column="1">
<property name="name">
<cstring>zero</cstring>
</property>
@@ -83,7 +83,7 @@
<string>0</string>
</property>
</widget>
- <widget class="QPushButton" row="1" column="0">
+ <widget class="TQPushButton" row="1" column="0">
<property name="name">
<cstring>four</cstring>
</property>
@@ -91,7 +91,7 @@
<string>4</string>
</property>
</widget>
- <widget class="QPushButton" row="0" column="1">
+ <widget class="TQPushButton" row="0" column="1">
<property name="name">
<cstring>two</cstring>
</property>
@@ -99,7 +99,7 @@
<string>2</string>
</property>
</widget>
- <widget class="QPushButton" row="1" column="1">
+ <widget class="TQPushButton" row="1" column="1">
<property name="name">
<cstring>five</cstring>
</property>
@@ -107,7 +107,7 @@
<string>5</string>
</property>
</widget>
- <widget class="QPushButton" row="0" column="2">
+ <widget class="TQPushButton" row="0" column="2">
<property name="name">
<cstring>three</cstring>
</property>
@@ -115,7 +115,7 @@
<string>3</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="0">
+ <widget class="TQPushButton" row="2" column="0">
<property name="name">
<cstring>seven</cstring>
</property>
@@ -123,7 +123,7 @@
<string>7</string>
</property>
</widget>
- <widget class="QPushButton" row="1" column="2">
+ <widget class="TQPushButton" row="1" column="2">
<property name="name">
<cstring>six</cstring>
</property>
@@ -131,7 +131,7 @@
<string>6</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="1">
+ <widget class="TQPushButton" row="2" column="1">
<property name="name">
<cstring>eight</cstring>
</property>
@@ -139,7 +139,7 @@
<string>8</string>
</property>
</widget>
- <widget class="QPushButton" row="2" column="2">
+ <widget class="TQPushButton" row="2" column="2">
<property name="name">
<cstring>nine</cstring>
</property>
@@ -147,7 +147,7 @@
<string>9</string>
</property>
</widget>
- <widget class="QPushButton" row="0" column="0">
+ <widget class="TQPushButton" row="0" column="0">
<property name="name">
<cstring>one</cstring>
</property>
diff --git a/kjsembed/docs/examples/combobox/combo.js b/kjsembed/docs/examples/combobox/combo.js
index 3ac40491..88f94df7 100644
--- a/kjsembed/docs/examples/combobox/combo.js
+++ b/kjsembed/docs/examples/combobox/combo.js
@@ -1,13 +1,13 @@
#!/usr/bin/env kjscmd
-// Example that uses QComboBox
+// Example that uses TQComboBox
-var hbox = new QHBox();
+var hbox = new TQHBox();
-var l = new QLabel( hbox );
+var l = new TQLabel( hbox );
l.text = 'Combo test';
-var cb = new QComboBox( hbox );
+var cb = new TQComboBox( hbox );
cb.insertItem( 'test 1' );
cb.insertItem( 'test 2' );
cb.insertItem( 'test 3' );
diff --git a/kjsembed/docs/examples/connect-cpp/connect-cpp.js b/kjsembed/docs/examples/connect-cpp/connect-cpp.js
index c79d1dea..2eab8db8 100644
--- a/kjsembed/docs/examples/connect-cpp/connect-cpp.js
+++ b/kjsembed/docs/examples/connect-cpp/connect-cpp.js
@@ -2,10 +2,10 @@
function item( parent )
{
- var hbox = new QHBox( parent );
+ var hbox = new TQHBox( parent );
var led = new KLed( hbox );
- var btn = new QCheckBox( hbox );
+ var btn = new TQCheckBox( hbox );
btn.checked = true;
btn.text = 'Toggle LED';
@@ -18,17 +18,17 @@ function item( parent )
led.connect( btn, 'toggled(bool)', 'toggle()' );
}
-var vbox = new QVBox( 'test' );
+var vbox = new TQVBox( 'test' );
vbox.margin = 6;
vbox.spacing = 4;
-var ttl = new QLabel( vbox );
+var ttl = new TQLabel( vbox );
ttl.text = '<h1>Connections</h1>';
for ( var i = 0 ; i < 10 ; i++ )
item( vbox );
-var quit = new QPushButton( vbox );
+var quit = new TQPushButton( vbox );
quit.text = '&Quit';
vbox.connect( quit, 'clicked()', 'close()' );
diff --git a/kjsembed/docs/examples/connect/connect.js b/kjsembed/docs/examples/connect/connect.js
index aa56a366..28cec189 100644
--- a/kjsembed/docs/examples/connect/connect.js
+++ b/kjsembed/docs/examples/connect/connect.js
@@ -38,7 +38,7 @@ var de = top.child('d');
top.connect( ve, 'clicked()', obj, 'func_void' );
top.connect( be, 'toggled(bool)', obj, 'func_bool' );
top.connect( ie, 'valueChanged(int)', obj, 'func_int' );
-top.connect( se, 'textChanged(const QString&)', obj, 'func_string' );
+top.connect( se, 'textChanged(const TQString&)', obj, 'func_string' );
top.connect( de, 'valueChanged(double)', obj, 'func_double' );
top.show();
diff --git a/kjsembed/docs/examples/connect/connect.ui b/kjsembed/docs/examples/connect/connect.ui
index 5b172a8d..5c33501e 100644
--- a/kjsembed/docs/examples/connect/connect.ui
+++ b/kjsembed/docs/examples/connect/connect.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>demo</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>demo</cstring>
</property>
@@ -24,7 +24,7 @@
<cstring>s</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
+ <widget class="TQLabel" row="0" column="2">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -50,12 +50,12 @@
<cstring>d</cstring>
</property>
</widget>
- <widget class="QSpinBox" row="4" column="1">
+ <widget class="TQSpinBox" row="4" column="1">
<property name="name">
<cstring>i</cstring>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -79,7 +79,7 @@
<set>AlignCenter</set>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>b</cstring>
</property>
@@ -87,7 +87,7 @@
<string>Bool</string>
</property>
</widget>
- <widget class="QPushButton" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQPushButton" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>v</cstring>
</property>
@@ -95,7 +95,7 @@
<string>Void</string>
</property>
</widget>
- <widget class="QLabel" row="5" column="0">
+ <widget class="TQLabel" row="5" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -103,7 +103,7 @@
<string>Double:</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -111,7 +111,7 @@
<string>Int:</string>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
diff --git a/kjsembed/docs/examples/customwidget/custom_widget.js b/kjsembed/docs/examples/customwidget/custom_widget.js
index dbab2d8f..c9df7f29 100755
--- a/kjsembed/docs/examples/customwidget/custom_widget.js
+++ b/kjsembed/docs/examples/customwidget/custom_widget.js
@@ -6,25 +6,25 @@
function createField( parent )
{
- var hbox = new QHBox( box, 'hb' );
+ var hbox = new TQHBox( box, 'hb' );
- var label = new QLabel( hbox );
+ var label = new TQLabel( hbox );
label.text = 'Filename:';
- var ed = new QLineEdit( hbox, 'lineed' );
+ var ed = new TQLineEdit( hbox, 'lineed' );
ed.text = './my_file.txt';
- var pb = new QPushButton( hbox, 'button' );
+ var pb = new TQPushButton( hbox, 'button' );
pb.text = 'Br&owse';
var led = new KLed( hbox, 'led' );
}
function createGroup( parent )
{
- var grp = new QGroupBox( box, 'grp' );
+ var grp = new TQGroupBox( box, 'grp' );
grp.columns = 1;
- grp.title = 'A QGroupBox';
+ grp.title = 'A TQGroupBox';
- var cb1 = new QCheckBox( grp, 'check1' );
- var cb2 = new QCheckBox( grp, 'check2' );
+ var cb1 = new TQCheckBox( grp, 'check1' );
+ var cb2 = new TQCheckBox( grp, 'check2' );
cb1.text = 'Check Box One';
cb2.text = 'Check Box Two';
@@ -32,20 +32,20 @@ function createGroup( parent )
}
// Outer layout
-var box = new QVBox();
+var box = new TQVBox();
box.margin = 6;
// Title
-var ttl = new QLabel( box, 'title' );
+var ttl = new TQLabel( box, 'title' );
ttl.text = '<qt><center><h3>KJSEmbed Object Creation Demo</h3></center><hr></qt>';
// Named field
createField( box );
// Text editor
-var l = new QLabel( box, 'tl' );
+var l = new TQLabel( box, 'tl' );
l.txt = 'Editable Text Widget:';
-var txt = new QTextEdit( box, 'text_edit' );
+var txt = new TQTextEdit( box, 'text_edit' );
txt.text = '<qt>This is an editable text widget created from <i>Javascript</i> using the '
+ '<b>KJSEmbed</b> library. As you can see, the facilities are powerful enough '
+ 'for many useful applications to be found.</qt>';
diff --git a/kjsembed/docs/examples/dcop/interface.js b/kjsembed/docs/examples/dcop/interface.js
index ed699768..8e8fad0b 100755
--- a/kjsembed/docs/examples/dcop/interface.js
+++ b/kjsembed/docs/examples/dcop/interface.js
@@ -11,7 +11,7 @@ function anotherInterface( bar )
}
var dcop = new DCOPInterface(this, "someInterface");
-dcop.publish("void someInterface(QString)");
-dcop.publish("QString anotherInterface(QString)");
+dcop.publish("void someInterface(TQString)");
+dcop.publish("TQString anotherInterface(TQString)");
application.exec();
diff --git a/kjsembed/docs/examples/dcop/rss.js b/kjsembed/docs/examples/dcop/rss.js
index c1eb3882..7ec9f2eb 100755
--- a/kjsembed/docs/examples/dcop/rss.js
+++ b/kjsembed/docs/examples/dcop/rss.js
@@ -3,9 +3,9 @@
function newArticles( articles )
{
- var box = new QVBox(main);
+ var box = new TQVBox(main);
var count = articles.call("count()");
- var label = new QLabel(box);
+ var label = new TQLabel(box);
var list = new KListBox(box);
@@ -19,7 +19,7 @@ function newArticles( articles )
return true;
}
-var main = new QHBox(this)
+var main = new TQHBox(this)
var dcop = new DCOPInterface(this, "news");
dcop.publish("void newArticles(DCOPRef)");
@@ -28,7 +28,7 @@ var feeds = client.call( "rssservice", "RSSService", "list()" );
for( var idx = 0; idx < feeds.length; ++idx)
{
- var doc = client.call( "rssservice", "RSSService", "add(QString)", feeds[idx] );
+ var doc = client.call( "rssservice", "RSSService", "add(TQString)", feeds[idx] );
client.connectDCOPSignal("rssservice", doc.obj(), "documentUpdated(DCOPRef)",
"news","newArticles(DCOPRef)");
doc.call("refresh()");
diff --git a/kjsembed/docs/examples/dcop/signalslot.js b/kjsembed/docs/examples/dcop/signalslot.js
index 884faa29..6774854c 100755
--- a/kjsembed/docs/examples/dcop/signalslot.js
+++ b/kjsembed/docs/examples/dcop/signalslot.js
@@ -2,9 +2,9 @@
function newWeather( station )
{
- var temp = client.call("KWeatherService", "WeatherService", "temperature(QString)", "KMKE");
- var name = client.call("KWeatherService", "WeatherService", "stationName(QString)", "KMKE");
- var label = new QLabel(this);
+ var temp = client.call("KWeatherService", "WeatherService", "temperature(TQString)", "KMKE");
+ var name = client.call("KWeatherService", "WeatherService", "stationName(TQString)", "KMKE");
+ var label = new TQLabel(this);
label.text = "The temperature at " + name + " is " + temp;
label.show();
}
@@ -13,13 +13,13 @@ var client = new DCOPClient(this);
if ( client.attach() )
{
var dcop = new DCOPInterface(this, "weather");
- dcop.publish("void newWeather(QString)");
+ dcop.publish("void newWeather(TQString)");
- client.connectDCOPSignal("KWeatherService", "WeatherService", "fileUpdate(QString)",
- "weather","newWeather(QString)");
+ client.connectDCOPSignal("KWeatherService", "WeatherService", "fileUpdate(TQString)",
+ "weather","newWeather(TQString)");
- client.send("KWeatherService", "WeatherService", "update(QString)", "KMKE");
+ client.send("KWeatherService", "WeatherService", "update(TQString)", "KMKE");
application.exec();
}
diff --git a/kjsembed/docs/examples/dcop/weather.js b/kjsembed/docs/examples/dcop/weather.js
index 8d8a59c3..00c16e0e 100755
--- a/kjsembed/docs/examples/dcop/weather.js
+++ b/kjsembed/docs/examples/dcop/weather.js
@@ -1,7 +1,7 @@
#!/usr/bin/env kjscmd
var dcop = new DCOPClient(this);
-var box = new QHBox(this);
+var box = new TQHBox(this);
var go = new KPushButton(box);
var loc = new KLineEdit(box);
@@ -16,7 +16,7 @@ function getWeather()
if ( dcop.isAttached() )
{
var icn = new Image(this);
- icn.pixmap = dcop.call("KWeatherService","WeatherService","icon(QString)", loc.text);
+ icn.pixmap = dcop.call("KWeatherService","WeatherService","icon(TQString)", loc.text);
icn.smoothScale(32,32);
go.pixmap = icn.pixmap;
}
diff --git a/kjsembed/docs/examples/docviewer/docviewer.js b/kjsembed/docs/examples/docviewer/docviewer.js
index 3fed8a78..d03c0a15 100644
--- a/kjsembed/docs/examples/docviewer/docviewer.js
+++ b/kjsembed/docs/examples/docviewer/docviewer.js
@@ -32,11 +32,11 @@ function setup_sidebar( builtins, special, qt, kde, all )
var mw = new KMainWindow(this);
var ac = mw.actionCollection();
-var split = new QSplitter( mw );
+var split = new TQSplitter( mw );
mw.setCentralWidget( split );
-side = new QToolBox( split, 'sidebar' );
-view = new QTabWidget( split, 'mainview' );
+side = new TQToolBox( split, 'sidebar' );
+view = new TQTabWidget( split, 'mainview' );
// Load the view
jsview = Factory.createROPart( "text/html", view, "js" );
diff --git a/kjsembed/docs/examples/docviewer/docviewer.ui b/kjsembed/docs/examples/docviewer/docviewer.ui
index 0cdb1930..3ccf0d02 100644
--- a/kjsembed/docs/examples/docviewer/docviewer.ui
+++ b/kjsembed/docs/examples/docviewer/docviewer.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>doc_viewer</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>doc_viewer</cstring>
</property>
@@ -27,7 +27,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -38,7 +38,7 @@
<cstring>search_edit</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
diff --git a/kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui b/kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui
index 2e8658b3..c9830b55 100644
--- a/kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui
+++ b/kjsembed/docs/examples/envelopemaker/EnvelopeMakerUI.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>Form1</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1_2</cstring>
</property>
@@ -35,7 +35,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout14_2</cstring>
</property>
@@ -43,7 +43,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
<cstring>layout11_2</cstring>
</property>
@@ -83,7 +83,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1_4_2</cstring>
</property>
@@ -91,7 +91,7 @@
<string>City/state, zipcode:</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="1" column="1">
+ <widget class="TQLayoutWidget" row="1" column="1">
<property name="name">
<cstring>layout10_2</cstring>
</property>
@@ -131,7 +131,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1_3</cstring>
</property>
@@ -139,7 +139,7 @@
<string>Name:</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="1">
+ <widget class="TQLayoutWidget" row="2" column="1">
<property name="name">
<cstring>layout9_2</cstring>
</property>
@@ -179,7 +179,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="3" column="1">
+ <widget class="TQLayoutWidget" row="3" column="1">
<property name="name">
<cstring>layout8_2</cstring>
</property>
@@ -219,7 +219,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_2_2_2</cstring>
</property>
@@ -227,7 +227,7 @@
<string>Address line 2:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2_3</cstring>
</property>
@@ -239,7 +239,7 @@
</widget>
</vbox>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -258,7 +258,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout14</cstring>
</property>
@@ -266,7 +266,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="1">
+ <widget class="TQLayoutWidget" row="0" column="1">
<property name="name">
<cstring>layout11</cstring>
</property>
@@ -306,7 +306,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel1_4</cstring>
</property>
@@ -314,7 +314,7 @@
<string>City/state, zipcode:</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="1" column="1">
+ <widget class="TQLayoutWidget" row="1" column="1">
<property name="name">
<cstring>layout10</cstring>
</property>
@@ -354,7 +354,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -362,7 +362,7 @@
<string>Name:</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="1">
+ <widget class="TQLayoutWidget" row="2" column="1">
<property name="name">
<cstring>layout9</cstring>
</property>
@@ -402,7 +402,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="3" column="1">
+ <widget class="TQLayoutWidget" row="3" column="1">
<property name="name">
<cstring>layout8</cstring>
</property>
@@ -442,7 +442,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel1_2_2</cstring>
</property>
@@ -450,7 +450,7 @@
<string>Address line 2:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -477,7 +477,7 @@
</size>
</property>
</spacer>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>barcode</cstring>
</property>
@@ -492,7 +492,7 @@
<cstring>font</cstring>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout12</cstring>
</property>
diff --git a/kjsembed/docs/examples/envelopemaker/env.js b/kjsembed/docs/examples/envelopemaker/env.js
index 4d26c295..8e71a6ca 100755
--- a/kjsembed/docs/examples/envelopemaker/env.js
+++ b/kjsembed/docs/examples/envelopemaker/env.js
@@ -61,7 +61,7 @@ function print()
if( view.child('barcode').checked )
ps += env.barcode();
ps += env.footer();
- if ( !dcop.send("kprinterservice", "printer", "printStream(const QString&)", ps ) )
+ if ( !dcop.send("kprinterservice", "printer", "printStream(const TQString&)", ps ) )
{
alert("There was an error talking to the KPrinterService, please check that it is running.");
}
diff --git a/kjsembed/docs/examples/eventhandling/jsboard.js b/kjsembed/docs/examples/eventhandling/jsboard.js
index 91e9a0f2..03dc01e3 100644
--- a/kjsembed/docs/examples/eventhandling/jsboard.js
+++ b/kjsembed/docs/examples/eventhandling/jsboard.js
@@ -1,7 +1,7 @@
#!/usr/bin/env kjscmd
// Globals
-var frame = new QFrame(this);
+var frame = new TQFrame(this);
var labels = new Array();
var startPos = new Point(0,0);
var lastPos = new Point(0,0);
@@ -23,7 +23,7 @@ function Target( parent, text)
var w = 100;
var h = 100;
- this.label = new QLabel(parent);
+ this.label = new TQLabel(parent);
this.text = text;
this.label.paletteBackgroundColor = "green";
this.label.geometry = new Rect(x,y,w,h);
@@ -37,15 +37,15 @@ function Target( parent, text)
function Block(parent,text)
{
- this.label = new QLabel(parent);
+ this.label = new TQLabel(parent);
var x = Math.floor( Math.random() * parent.width );
var y = Math.floor( Math.random() * parent.height );
var w = 25;
var h = 25;
this.label.text = text;
this.label.geometry = new Rect(x,y,w,h);
- this.label.frameShape = QFrame.WinPanel;
- this.label.frameShadow = QFrame.Plain;
+ this.label.frameShape = TQFrame.WinPanel;
+ this.label.frameShadow = TQFrame.Plain;
this.label.paletteBackgroundColor = "white";
this.label.setMouseTracking(true);
this.label.adjustSize();
diff --git a/kjsembed/docs/examples/eventhandling/mousetrack.js b/kjsembed/docs/examples/eventhandling/mousetrack.js
index 9c970c42..0bf427c8 100644
--- a/kjsembed/docs/examples/eventhandling/mousetrack.js
+++ b/kjsembed/docs/examples/eventhandling/mousetrack.js
@@ -5,7 +5,7 @@
//
-var mousetrack = new QWidget(this);
+var mousetrack = new TQWidget(this);
mousetrack.setMouseTracking(true);
x=0;
y=0;
diff --git a/kjsembed/docs/examples/eventhandling/scribble.js b/kjsembed/docs/examples/eventhandling/scribble.js
index 0ffcdb07..95fafe7c 100644
--- a/kjsembed/docs/examples/eventhandling/scribble.js
+++ b/kjsembed/docs/examples/eventhandling/scribble.js
@@ -5,7 +5,7 @@
//
-var scribble = new QWidget(this);
+var scribble = new TQWidget(this);
scribble.line=false;
var x=0;
var y=0;
diff --git a/kjsembed/docs/examples/frame/frame.js b/kjsembed/docs/examples/frame/frame.js
index d19fc4de..b14be202 100644
--- a/kjsembed/docs/examples/frame/frame.js
+++ b/kjsembed/docs/examples/frame/frame.js
@@ -1,26 +1,26 @@
#!/usr/bin/env kjscmd
-// Demo of QFrame and enum support
+// Demo of TQFrame and enum support
function add_frame( parent )
{
- var v = new QVBox( parent );
+ var v = new TQVBox( parent );
v.margin = 6;
- return new QFrame( v );
+ return new TQFrame( v );
}
-var top = new QVBox();
-var hbox = new QHBox( top );
+var top = new TQVBox();
+var hbox = new TQHBox( top );
var f = add_frame( hbox );
-f.frameShape = QFrame.Box;
+f.frameShape = TQFrame.Box;
f = add_frame( hbox );
-f.frameShape = QFrame.WinPanel | QFrame.Sunken;
+f.frameShape = TQFrame.WinPanel | TQFrame.Sunken;
f = add_frame( hbox );
-f.frameShape = QFrame.PopupPanel;
+f.frameShape = TQFrame.PopupPanel;
top.resize(300,200);
diff --git a/kjsembed/docs/examples/grepdialog/README b/kjsembed/docs/examples/grepdialog/README
index e126113f..931d6544 100644
--- a/kjsembed/docs/examples/grepdialog/README
+++ b/kjsembed/docs/examples/grepdialog/README
@@ -2,5 +2,5 @@ Illustrates a number of useful facilities:
- Creating dialogs from .ui files.
- Reading files from stdin and parsing them with JS regexps.
-- Displaying formatted text using QML.
+- Displaying formatted text using TQML.
- Using shell scripts with kjscmd.
diff --git a/kjsembed/docs/examples/grepdialog/grepdlg.ui b/kjsembed/docs/examples/grepdialog/grepdlg.ui
index 53a169bd..2bf823c2 100644
--- a/kjsembed/docs/examples/grepdialog/grepdlg.ui
+++ b/kjsembed/docs/examples/grepdialog/grepdlg.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>GrepDialog</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>GrepDialog</cstring>
</property>
@@ -28,7 +28,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLineEdit" row="2" column="1">
+ <widget class="TQLineEdit" row="2" column="1">
<property name="name">
<cstring>search_edit</cstring>
</property>
@@ -36,7 +36,7 @@
<string>KJSEmbed</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -47,7 +47,7 @@
<cstring>search_edit</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -58,7 +58,7 @@
<cstring>files_edit</cstring>
</property>
</widget>
- <widget class="QLineEdit" row="3" column="1">
+ <widget class="TQLineEdit" row="3" column="1">
<property name="name">
<cstring>files_edit</cstring>
</property>
@@ -83,7 +83,7 @@
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="5" column="1">
+ <widget class="TQCheckBox" row="5" column="1">
<property name="name">
<cstring>case_check</cstring>
</property>
@@ -91,7 +91,7 @@
<string>Match &amp;case</string>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>TextLabel3_2</cstring>
</property>
@@ -99,7 +99,7 @@
<string>Options:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -127,7 +127,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QCheckBox" row="6" column="1">
+ <widget class="TQCheckBox" row="6" column="1">
<property name="name">
<cstring>shownumbers_check</cstring>
</property>
@@ -138,7 +138,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QLayoutWidget" row="7" column="0" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="7" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -169,7 +169,7 @@
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
diff --git a/kjsembed/docs/examples/grepdialog/grepresults.ui b/kjsembed/docs/examples/grepdialog/grepresults.ui
index 4bec43f4..fd575ea5 100644
--- a/kjsembed/docs/examples/grepdialog/grepresults.ui
+++ b/kjsembed/docs/examples/grepdialog/grepresults.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>GrepResults</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>GrepResults</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -47,7 +47,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QTextEdit">
+ <widget class="TQTextEdit">
<property name="name">
<cstring>results_text</cstring>
</property>
@@ -70,7 +70,7 @@
<bool>false</bool>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -101,7 +101,7 @@
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
diff --git a/kjsembed/docs/examples/html2text/test.htm b/kjsembed/docs/examples/html2text/test.htm
index 2a060c2d..af257805 100644
--- a/kjsembed/docs/examples/html2text/test.htm
+++ b/kjsembed/docs/examples/html2text/test.htm
@@ -38,7 +38,7 @@ pre {
been designed with this in mind thanks to a KParts plugin. In addition, KJSEmbed
provides a command line tool for running scripts so users can easily create
simple applications of their own in Javascript. KJSEmbed scripts are surprisingly
- powerful because they access the properties and slots of QObjects, and can even
+ powerful because they access the properties and slots of TQObjects, and can even
load widgets and dialogs created with Qt's graphical dialog editor.&lt;/p>
&lt;h3>Features&lt;/h3>
&lt;p>To give you an idea of what KJSEmbed provides, here is a brief summary of the
@@ -50,16 +50,16 @@ pre {
&lt;li>Command line tool for running scripts (this can even operate without an
X server if you don't need to display a GUI).&lt;/li>
&lt;li>Define new KActions using XML.&lt;/li>
- &lt;li>Scripts can access the properties and slots of QObjects as if they were
+ &lt;li>Scripts can access the properties and slots of TQObjects as if they were
normal Javascript properties and methods.&lt;/li>
&lt;li>Scripts can load dialogs and widgets created with Qt Designer.&lt;/li>
- &lt;li>Scripts can create instances of anu TQWidget subclass supported by TQWidgetFactory.&lt;/li>
- &lt;li>Making your own QObjects/QWidgets available for scripting is one-liner.&lt;/li>
+ &lt;li>Scripts can create instances of anu TTQWidget subclass supported by TTQWidgetFactory.&lt;/li>
+ &lt;li>Making your own TQObjects/TQWidgets available for scripting is one-liner.&lt;/li>
&lt;li>Scripts can traverse the widget tree, so your entire application can be
made scriptable without explicitly binding every object.&lt;/li>
&lt;/ul>
&lt;h3>First Steps - The Console Dialog&lt;/h3>
-&lt;p>The quickest way to see what KJSEmbed can do is with kjscmd, a tool for running
+&lt;p>The tquickest way to see what KJSEmbed can do is with kjscmd, a tool for running
scripts from the command line. To begin, we'll run kjscmd without any parameters
which brings up the KJSEmbed console dialog. The console provides an easy way
to run short (one line) scripts, as you can see in figure 1 the scripts have
@@ -87,11 +87,11 @@ JSConsoleWidget (KJSEmbed::JSConsoleWidget)
kjs> console.childCount()
4
kjs> console.childAt(1)
-CmdEdit (TQComboBox)
+CmdEdit (TTQComboBox)
kjs> console.childAt(2)
-RunButton (TQPushButton)
+RunButton (TTQPushButton)
kjs> console.child(&amp;quot;RunButton&amp;quot;)
-RunButton (TQPushButton)
+RunButton (TTQPushButton)
kjs> console.child(&amp;quot;RunButton&amp;quot;).text = &amp;quot;Go!&amp;quot;
Go!
kjs> console.caption = &amp;quot;Different Title&amp;quot;
@@ -145,12 +145,12 @@ print( cmd );
&lt;p class=&quot;precaption&quot;>Listing 1: A Script That Displays the Grep Dialog&lt;/p>
&lt;p>In order to find out what the user asked us to search for we need to extract
the contents of the various fields in our dialog. We know that the field for
- entering the text to be searched for is a TQLineEdit called 'search_edit', so
+ entering the text to be searched for is a TTQLineEdit called 'search_edit', so
we can use the child() method to get hold of it (this method searches through
the children of an object until it finds one with a matching name). Once we've
- found the right object getting hold of the text is easy because all QLineEdits
+ found the right object getting hold of the text is easy because all TQLineEdits
make their contents available as a property called 'text'. The code that gets
- the value of the check boxes is almost identical, except that these are QCheckBoxes
+ the value of the check boxes is almost identical, except that these are TQCheckBoxes
so it's the 'checked' property we're interested in.&lt;/p>
&lt;p align=&quot;center&quot;>&lt;img src=&quot;grepdlg.png&quot; alt=&quot;Grep Dialog Screenshot&quot; width=&quot;327&quot; height=&quot;241&quot;>&lt;/p>
&lt;p class=&quot;imgcaption&quot;>Figure 3: The Grep Dialog&lt;/p>
diff --git a/kjsembed/docs/examples/imagefun/bump.ui b/kjsembed/docs/examples/imagefun/bump.ui
index 90c5cc95..eb342eac 100644
--- a/kjsembed/docs/examples/imagefun/bump.ui
+++ b/kjsembed/docs/examples/imagefun/bump.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>Form1</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -16,7 +16,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="5" column="0" rowspan="1" colspan="6">
+ <widget class="TQLayoutWidget" row="5" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>layout1</cstring>
</property>
@@ -41,7 +41,7 @@
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>go</cstring>
</property>
@@ -51,7 +51,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="6">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="6">
<property name="name">
<cstring>view</cstring>
</property>
@@ -67,7 +67,7 @@
<string></string>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
<cstring>layout5</cstring>
</property>
@@ -75,7 +75,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -93,7 +93,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="3" column="4" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="3" column="4" rowspan="1" colspan="2">
<property name="name">
<cstring>layout9</cstring>
</property>
@@ -101,7 +101,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel9</cstring>
</property>
@@ -109,7 +109,7 @@
<string>Type:</string>
</property>
</widget>
- <widget class="QComboBox">
+ <widget class="TQComboBox">
<item>
<property name="text">
<string>Linear</string>
@@ -131,7 +131,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="2" column="3" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="2" column="3" rowspan="1" colspan="2">
<property name="name">
<cstring>layout3</cstring>
</property>
@@ -139,7 +139,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel5</cstring>
</property>
@@ -157,7 +157,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="1" column="2" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="1" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>layout6</cstring>
</property>
@@ -165,7 +165,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -183,7 +183,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="3" column="2" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="3" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>layout8</cstring>
</property>
@@ -191,7 +191,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel7</cstring>
</property>
@@ -206,7 +206,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="2" column="1" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="2" column="1" rowspan="1" colspan="2">
<property name="name">
<cstring>layout4</cstring>
</property>
@@ -214,7 +214,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -232,7 +232,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>layout7</cstring>
</property>
@@ -240,7 +240,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -258,7 +258,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>layout2</cstring>
</property>
@@ -266,7 +266,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel6</cstring>
</property>
@@ -281,7 +281,7 @@
</widget>
</hbox>
</widget>
- <widget class="QCheckBox" row="4" column="5">
+ <widget class="TQCheckBox" row="4" column="5">
<property name="name">
<cstring>tiled</cstring>
</property>
@@ -289,7 +289,7 @@
<string>Tiled</string>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="2" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="4" column="2" rowspan="1" colspan="2">
<property name="name">
<cstring>invert</cstring>
</property>
@@ -297,7 +297,7 @@
<string>Invert</string>
</property>
</widget>
- <widget class="QCheckBox" row="4" column="0">
+ <widget class="TQCheckBox" row="4" column="0">
<property name="name">
<cstring>compensate</cstring>
</property>
diff --git a/kjsembed/docs/examples/imagefun/bumptest.png b/kjsembed/docs/examples/imagefun/bumptest.png
index b6954838..4797fefb 100644
--- a/kjsembed/docs/examples/imagefun/bumptest.png
+++ b/kjsembed/docs/examples/imagefun/bumptest.png
Binary files differ
diff --git a/kjsembed/docs/examples/imagefun/title.js b/kjsembed/docs/examples/imagefun/title.js
index 749899be..a195173e 100755
--- a/kjsembed/docs/examples/imagefun/title.js
+++ b/kjsembed/docs/examples/imagefun/title.js
@@ -23,7 +23,7 @@ if (painter.begin(textlayer) )
painter.drawRoundRect( 5, 5, w-5, h-5, 25, 25 );
if( painter.end() )
{
- var lbl = new QLabel();
+ var lbl = new TQLabel();
var img = new Image(this);
img.setPixmap( painter.pixmap() );
diff --git a/kjsembed/docs/examples/imageinfo/example.html b/kjsembed/docs/examples/imageinfo/example.html
index 2f616027..58205bda 100644
--- a/kjsembed/docs/examples/imageinfo/example.html
+++ b/kjsembed/docs/examples/imageinfo/example.html
@@ -5,12 +5,12 @@
<body>
<h1 align="center">Image Gallery</h1>
<hr>
-<p>Here are some images, the larger ones have been scaled down to ensure this page loads quickly. Click on an image or filename to see it full size.</p>
+<p>Here are some images, the larger ones have been scaled down to ensure this page loads tquickly. Click on an image or filename to see it full size.</p>
<table border=0 width="90%" cellpadding="12" cellspacing="1">
<tr>
<td align="center"><a href="example1.png"><img border=0 width=197 height=160 src=thumb-example1.png></a></td>
<td width="60%" valign="top" align="justify"><b><a href="example1.png">example1.png</a></b> (848x686)<p>This image shows the results of running the imagegallery script. As you can
-see the script automatically creates thumbnails (using TQImage::smoothScale()
+see the script automatically creates thumbnails (using TTQImage::smoothScale()
for quality) and includes image descriptions if present. The descriptions can
include HTML markup <b>like</b> <i>this</i>, and even
<a href="http://xmelegance.org/kjsembed/">links</a>.
diff --git a/kjsembed/docs/examples/imageinfo/example1.htm b/kjsembed/docs/examples/imageinfo/example1.htm
index bbe9bb0b..3a0a4ef9 100644
--- a/kjsembed/docs/examples/imageinfo/example1.htm
+++ b/kjsembed/docs/examples/imageinfo/example1.htm
@@ -1,5 +1,5 @@
This image shows the results of running the imagegallery script. As you can
-see the script automatically creates thumbnails (using TQImage::smoothScale()
+see the script automatically creates thumbnails (using TTQImage::smoothScale()
for quality) and includes image descriptions if present. The descriptions can
include HTML markup <b>like</b> <i>this</i>, and even
<a href="http://xmelegance.org/kjsembed/">links</a>.
diff --git a/kjsembed/docs/examples/imageinfo/example1.png b/kjsembed/docs/examples/imageinfo/example1.png
index 53408e63..e9228040 100644
--- a/kjsembed/docs/examples/imageinfo/example1.png
+++ b/kjsembed/docs/examples/imageinfo/example1.png
Binary files differ
diff --git a/kjsembed/docs/examples/imageinfo/example4.png b/kjsembed/docs/examples/imageinfo/example4.png
index 9c2d9ae3..340ca8c3 100644
--- a/kjsembed/docs/examples/imageinfo/example4.png
+++ b/kjsembed/docs/examples/imageinfo/example4.png
Binary files differ
diff --git a/kjsembed/docs/examples/imageinfo/imagegallery.js b/kjsembed/docs/examples/imageinfo/imagegallery.js
index 4cc5bc2d..dba3951c 100755
--- a/kjsembed/docs/examples/imageinfo/imagegallery.js
+++ b/kjsembed/docs/examples/imageinfo/imagegallery.js
@@ -6,7 +6,7 @@
var default_title = 'Image Gallery';
var default_intro = 'Here are some images, the larger ones have been scaled down to '
- + 'ensure this page loads quickly. Click on an image or filename '
+ + 'ensure this page loads tquickly. Click on an image or filename '
+ 'to see it full size.';
var default_width = 250;
var default_height = 160;
diff --git a/kjsembed/docs/examples/imageinfo/thumb-example1.png b/kjsembed/docs/examples/imageinfo/thumb-example1.png
index 79eca5d7..118f4e7c 100644
--- a/kjsembed/docs/examples/imageinfo/thumb-example1.png
+++ b/kjsembed/docs/examples/imageinfo/thumb-example1.png
Binary files differ
diff --git a/kjsembed/docs/examples/imageinfo/thumb-example2.png b/kjsembed/docs/examples/imageinfo/thumb-example2.png
index f4c805e7..18428293 100644
--- a/kjsembed/docs/examples/imageinfo/thumb-example2.png
+++ b/kjsembed/docs/examples/imageinfo/thumb-example2.png
Binary files differ
diff --git a/kjsembed/docs/examples/imageinfo/thumb-example3.png b/kjsembed/docs/examples/imageinfo/thumb-example3.png
index 7a449b6c..8ea2689c 100644
--- a/kjsembed/docs/examples/imageinfo/thumb-example3.png
+++ b/kjsembed/docs/examples/imageinfo/thumb-example3.png
Binary files differ
diff --git a/kjsembed/docs/examples/imageinfo/thumb-example4.png b/kjsembed/docs/examples/imageinfo/thumb-example4.png
index 42fb6022..b733f08a 100644
--- a/kjsembed/docs/examples/imageinfo/thumb-example4.png
+++ b/kjsembed/docs/examples/imageinfo/thumb-example4.png
Binary files differ
diff --git a/kjsembed/docs/examples/imageinfo/thumbs.html b/kjsembed/docs/examples/imageinfo/thumbs.html
index dd8ae478..b47501f8 100644
--- a/kjsembed/docs/examples/imageinfo/thumbs.html
+++ b/kjsembed/docs/examples/imageinfo/thumbs.html
@@ -5,12 +5,12 @@
<body>
<h1 align="center">Image Gallery</h1>
<hr>
-<p>Here are some images, the larger ones have been scaled down to ensure this page loads quickly. Click on an image or filename to see it full size.</p>
+<p>Here are some images, the larger ones have been scaled down to ensure this page loads tquickly. Click on an image or filename to see it full size.</p>
<table border=0 width="90%" cellpadding="12" cellspacing="1">
<tr>
<td align="center"><a href="example1.png"><img border=0 width=197 height=160 src="thumb-example1.png"></a></td>
<td width="60%" valign="top" align="justify"><b><a href="example1.png">example1.png</a></b> (848x686)<p>This image shows the results of running the imagegallery script. As you can
-see the script automatically creates thumbnails (using TQImage::smoothScale()
+see the script automatically creates thumbnails (using TTQImage::smoothScale()
for quality) and includes image descriptions if present. The descriptions can
include HTML markup <b>like</b> <i>this</i>, and even
<a href="http://xmelegance.org/kjsembed/">links</a>.
diff --git a/kjsembed/docs/examples/imagetweak/example1.png b/kjsembed/docs/examples/imagetweak/example1.png
index 53408e63..e9228040 100644
--- a/kjsembed/docs/examples/imagetweak/example1.png
+++ b/kjsembed/docs/examples/imagetweak/example1.png
Binary files differ
diff --git a/kjsembed/docs/examples/imagetweak/example4.png b/kjsembed/docs/examples/imagetweak/example4.png
index 9c2d9ae3..340ca8c3 100644
--- a/kjsembed/docs/examples/imagetweak/example4.png
+++ b/kjsembed/docs/examples/imagetweak/example4.png
Binary files differ
diff --git a/kjsembed/docs/examples/imagetweak/imagetweak.js b/kjsembed/docs/examples/imagetweak/imagetweak.js
index df7c86f9..ea1d0944 100755
--- a/kjsembed/docs/examples/imagetweak/imagetweak.js
+++ b/kjsembed/docs/examples/imagetweak/imagetweak.js
@@ -8,10 +8,10 @@ if ( application.args.length == 0 ) {
// Setup main window
//
var mw = new KMainWindow();
-var view = new QScrollView( mw, 'view' );
+var view = new TQScrollView( mw, 'view' );
mw.setCentralWidget( view );
-var lbl = new QLabel( view, 'view' );
+var lbl = new TQLabel( view, 'view' );
view.addChild( lbl );
//
diff --git a/kjsembed/docs/examples/imageviewer/imageviewer.js b/kjsembed/docs/examples/imageviewer/imageviewer.js
index f69d63c3..13fd1128 100644
--- a/kjsembed/docs/examples/imageviewer/imageviewer.js
+++ b/kjsembed/docs/examples/imageviewer/imageviewer.js
@@ -17,7 +17,7 @@ if ( application.args.length == 0 ) {
}
else {
var loc = application.args[0];
- var lbl = new QLabel();
+ var lbl = new TQLabel();
var img = new Image();
img.load( loc );
diff --git a/kjsembed/docs/examples/imunge/effectbrowser.ui b/kjsembed/docs/examples/imunge/effectbrowser.ui
index b3ee2255..d088d18e 100644
--- a/kjsembed/docs/examples/imunge/effectbrowser.ui
+++ b/kjsembed/docs/examples/imunge/effectbrowser.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>EffectBrowser</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>EffectBrowser</cstring>
</property>
@@ -19,7 +19,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QGroupBox" row="3" column="1">
+ <widget class="TQGroupBox" row="3" column="1">
<property name="name">
<cstring>settings_group</cstring>
</property>
@@ -35,7 +35,7 @@
<string>Settings</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="1">
+ <widget class="TQLabel" row="2" column="1">
<property name="name">
<cstring>preview</cstring>
</property>
@@ -66,7 +66,7 @@
<set>AlignCenter</set>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1</cstring>
</property>
diff --git a/kjsembed/docs/examples/imunge/imunge.js b/kjsembed/docs/examples/imunge/imunge.js
index 72de2c5c..6f75cbf1 100755
--- a/kjsembed/docs/examples/imunge/imunge.js
+++ b/kjsembed/docs/examples/imunge/imunge.js
@@ -9,9 +9,9 @@ mb = mw.menuBar();
sb = mw.statusBar();
mw.setStandardToolBarMenuEnabled( true );
-view = new QScrollView( mw, 'view' );
+view = new TQScrollView( mw, 'view' );
-lbl = new QLabel( view, 'view' );
+lbl = new TQLabel( view, 'view' );
lbl.alignment = Qt.AlignCenter;
lbl.text = 'No Content';
@@ -226,7 +226,7 @@ mw.setup_actions = function()
load( 'imunge_actions.js' );
mw.setup_actions();
-cwd = (new QDir()).absPath();
+cwd = (new TQDir()).absPath();
mw.createGUI( cwd + '/imungeui.rc' );
mw.resize( 700, 500 );
diff --git a/kjsembed/docs/examples/imunge/imunge_actions.js b/kjsembed/docs/examples/imunge/imunge_actions.js
index 586641d9..e07d01d4 100755
--- a/kjsembed/docs/examples/imunge/imunge_actions.js
+++ b/kjsembed/docs/examples/imunge/imunge_actions.js
@@ -5,8 +5,8 @@
mw.create_effect_browser = function()
{
- this.effectsdlg = new QDialog( this );
- var vb = new QVBoxLayout( this.effectsdlg );
+ this.effectsdlg = new TQDialog( this );
+ var vb = new TQVBoxLayout( this.effectsdlg );
this.effects = Factory.loadui( 'effectbrowser.ui', null, this.effectsdlg );
vb.addWidget( this.effects );
diff --git a/kjsembed/docs/examples/imunge/resizeparams.ui b/kjsembed/docs/examples/imunge/resizeparams.ui
index fe66f437..a7dbfd0a 100644
--- a/kjsembed/docs/examples/imunge/resizeparams.ui
+++ b/kjsembed/docs/examples/imunge/resizeparams.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>ResizeParams</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>ResizeParams</cstring>
</property>
@@ -27,7 +27,7 @@
<cstring>height_input</cstring>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -40,7 +40,7 @@
<cstring>width_input</cstring>
</property>
</widget>
- <widget class="QLabel" row="3" column="0">
+ <widget class="TQLabel" row="3" column="0">
<property name="name">
<cstring>textLabel4</cstring>
</property>
@@ -48,7 +48,7 @@
<string>Height:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -89,7 +89,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QLayoutWidget" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQLayoutWidget" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -103,7 +103,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonHelp</cstring>
</property>
@@ -134,7 +134,7 @@
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
@@ -151,7 +151,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
diff --git a/kjsembed/docs/examples/index.html b/kjsembed/docs/examples/index.html
index 4b48cc31..a3a44761 100644
--- a/kjsembed/docs/examples/index.html
+++ b/kjsembed/docs/examples/index.html
@@ -75,21 +75,21 @@ facilities.
<td>Two examples that create a graphical tree. One
from a JS data structure, the other from the widget tree of a ui file.</td></tr>
<tr><td><a href="qobject-dom">qobject-dom</a></td>
-<td>Illustrates the TQObject DOM API.</td></tr>
+<td>Illustrates the TTQObject DOM API.</td></tr>
<tr><td><a href="connect-cpp">connect-cpp</a></td>
<td>Connects a signal to slot.</td></tr>
<tr><td><a href="connect">connect</a></td>
<td>Connects signals of various types to JS methods.</td></tr>
<tr><td><a href="imageviewer">imageviewer</a></td>
-<td>Illustrates the use of TQPixmap values.</td></tr>
+<td>Illustrates the use of TTQPixmap values.</td></tr>
<tr><td><a href="netaccess">netaccess</a></td>
<td>Illustrates the bindings to KIO::NetAccess.</td></tr>
<tr><td><a href="listview">listview</a></td>
<td>Creates a simple KListView.</td></tr>
<tr><td><a href="frame">frame</a></td>
-<td>Shows off TQFrame support and the use of enums.</td></tr>
+<td>Shows off TTQFrame support and the use of enums.</td></tr>
<tr><td><a href="timer">timer</a></td>
-<td>Creates a flashing LED using TQTimer.</td></tr>
+<td>Creates a flashing LED using TTQTimer.</td></tr>
<tr><td><a href="actions">Actions</a></td>
<td>A simple KAction demo.</td></tr>
<tr><td><a href="builtins">Built-In Messages</a></td>
@@ -108,8 +108,8 @@ from a JS data structure, the other from the widget tree of a ui file.</td></tr>
<td>Opaque types.</td></tr>
<tr><td><a href="stdicons">Standard Icons</a></td>
<td>Loading standard icons.</td></tr>
-<tr><td><a href="combobox">TQComboBox</a></td>
-<td>A simple demo of TQComboBox.</td></tr>
+<tr><td><a href="combobox">TTQComboBox</a></td>
+<td>A simple demo of TTQComboBox.</td></tr>
<tr><td><a href="multipart">Embedding several KParts</a></td>
<td>Shows how to embed multiple parts in the same script.</td></tr>
<tr><td><a href="livedata">Writing data directly to a KPart</a></td>
diff --git a/kjsembed/docs/examples/invaders/invaders.js b/kjsembed/docs/examples/invaders/invaders.js
index 55531258..bca6dce4 100755
--- a/kjsembed/docs/examples/invaders/invaders.js
+++ b/kjsembed/docs/examples/invaders/invaders.js
@@ -14,12 +14,12 @@ var hitflag = 0;
var score = 0;
var selec = 0;
var rsmiss = "";
-var timer = new QTimer(this);
+var timer = new TQTimer(this);
timer.connect(timer, "timeout()", this, "doTurn");
var win = new KMainWindow(this);
-var box = new QVBox(win);
-var view = new QLabel(box);
+var box = new TQVBox(win);
+var view = new TQLabel(box);
//view.setMouseTracking(true);
view.font = "courier,12,-1,5,75,0,0,0,0,0"
@@ -160,7 +160,7 @@ function gameover()
if (score == 0) {
view.text = cr + cr + cr + cr + cr + cr + cr + cr
+ " Congratulations!" + cr + cr
- + " YOU STOPPED THE ENEMY SQUAD!!";
+ + " YOU STOPPED THE ENEMY STQUAD!!";
} else {
view.text = cr + cr + cr + cr + cr + cr + cr + cr
+ " GAME OVER" + cr + cr
diff --git a/kjsembed/docs/examples/kjsuic/kjsuic.js b/kjsembed/docs/examples/kjsuic/kjsuic.js
index f95aa5ee..fcea8bb0 100644
--- a/kjsembed/docs/examples/kjsuic/kjsuic.js
+++ b/kjsembed/docs/examples/kjsuic/kjsuic.js
@@ -38,7 +38,7 @@ function addChildren( widget )
eval(str);
var typeName = widget.child(lst[idx]).className();
- if( typeName == "QGroupBox" || typeName == "QButtonGroup" || typeName == "QFrame")
+ if( typeName == "TQGroupBox" || typeName == "TQButtonGroup" || typeName == "TQFrame")
{
eval("addChildren( widget." + lst[idx] + ");");
}
diff --git a/kjsembed/docs/examples/listview/listview.js b/kjsembed/docs/examples/listview/listview.js
index 5bca90c5..04197005 100644
--- a/kjsembed/docs/examples/listview/listview.js
+++ b/kjsembed/docs/examples/listview/listview.js
@@ -2,7 +2,7 @@
// Create main view
var mw = new KMainWindow();
-var box = new QVBox( mw );
+var box = new TQVBox( mw );
mw.setCentralWidget(box);
var lv = new KListView( box );
diff --git a/kjsembed/docs/examples/livedata/livepartdata.js b/kjsembed/docs/examples/livedata/livepartdata.js
index 345e84e9..34866f5c 100644
--- a/kjsembed/docs/examples/livedata/livepartdata.js
+++ b/kjsembed/docs/examples/livedata/livepartdata.js
@@ -4,7 +4,7 @@
var mw = new KParts_MainWindow();
var ac = mw.actionCollection();
-var split = new QSplitter( mw );
+var split = new TQSplitter( mw );
mw.setCentralWidget( split );
var view = Factory.createROPart( "text/html", split, "html" );
diff --git a/kjsembed/docs/examples/madminute/configdialog.ui b/kjsembed/docs/examples/madminute/configdialog.ui
index 3760c11d..968c9b1f 100644
--- a/kjsembed/docs/examples/madminute/configdialog.ui
+++ b/kjsembed/docs/examples/madminute/configdialog.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>configDialog</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>configDialog</cstring>
</property>
@@ -25,7 +25,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -55,7 +55,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
+ <widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
<cstring>layout10</cstring>
</property>
@@ -63,7 +63,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -71,7 +71,7 @@
<string>Operations:</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>addition</cstring>
</property>
@@ -79,7 +79,7 @@
<string>Addition</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>subtraction</cstring>
</property>
@@ -89,7 +89,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="3" column="0">
+ <widget class="TQLayoutWidget" row="3" column="0">
<property name="name">
<cstring>layout11</cstring>
</property>
@@ -97,7 +97,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -105,7 +105,7 @@
<string>Time:</string>
</property>
</widget>
- <widget class="QSpinBox">
+ <widget class="TQSpinBox">
<property name="name">
<cstring>time</cstring>
</property>
@@ -124,7 +124,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="6" column="0">
+ <widget class="TQLayoutWidget" row="6" column="0">
<property name="name">
<cstring>Layout1</cstring>
</property>
@@ -138,7 +138,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonHelp</cstring>
</property>
@@ -169,7 +169,7 @@
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonOk</cstring>
</property>
@@ -186,7 +186,7 @@
<bool>true</bool>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>buttonCancel</cstring>
</property>
@@ -202,7 +202,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="4" column="0">
+ <widget class="TQLayoutWidget" row="4" column="0">
<property name="name">
<cstring>layout10</cstring>
</property>
@@ -212,7 +212,7 @@
</property>
</hbox>
</widget>
- <widget class="QLayoutWidget" row="5" column="0">
+ <widget class="TQLayoutWidget" row="5" column="0">
<property name="name">
<cstring>layout11</cstring>
</property>
@@ -220,7 +220,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2_2</cstring>
</property>
diff --git a/kjsembed/docs/examples/madminute/helpdialog.ui b/kjsembed/docs/examples/madminute/helpdialog.ui
index baa1a4e4..a5e78d51 100644
--- a/kjsembed/docs/examples/madminute/helpdialog.ui
+++ b/kjsembed/docs/examples/madminute/helpdialog.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>helpDialog</class>
-<widget class="QDialog">
+<widget class="TQDialog">
<property name="name">
<cstring>helpDialog</cstring>
</property>
@@ -25,7 +25,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QTextBrowser">
+ <widget class="TQTextBrowser">
<property name="name">
<cstring>helpText</cstring>
</property>
@@ -36,7 +36,7 @@ This is a small mathdrill program to help students become faster at simple addit
Once the application is configured the student can start the drill by pressing the "&lt;b&gt;Go&lt;/b&gt;" button or "&lt;tt&gt;Ctrl+G&lt;/tt&gt;". Once the drill is started the student may answer the questions as fast as they can and press the "&lt;tt&gt;Enter&lt;/tt&gt; key to submit the answer. The drill will notify the student when it is complete.</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout9</cstring>
</property>
@@ -61,7 +61,7 @@ Once the application is configured the student can start the drill by pressing t
</size>
</property>
</spacer>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton7</cstring>
</property>
diff --git a/kjsembed/docs/examples/madminute/madminute.js b/kjsembed/docs/examples/madminute/madminute.js
index a2762cde..97debe4d 100755
--- a/kjsembed/docs/examples/madminute/madminute.js
+++ b/kjsembed/docs/examples/madminute/madminute.js
@@ -15,7 +15,7 @@ var Subtraction = 2;
var config = new Config("madminute");
config.setGroup("Game Options");
// Timer
-var timer = new QTimer(this);
+var timer = new TQTimer(this);
// Current Argument 1
var arg1 = 0;
// Current Argument 2
diff --git a/kjsembed/docs/examples/madminute/madminute.ui b/kjsembed/docs/examples/madminute/madminute.ui
index dadab4d8..1154312a 100644
--- a/kjsembed/docs/examples/madminute/madminute.ui
+++ b/kjsembed/docs/examples/madminute/madminute.ui
@@ -1,7 +1,7 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>MainWindow</class>
<author>Ian Reinhart Geiser &lt;geiseri@kde.org&gt;</author>
-<widget class="QMainWindow">
+<widget class="TQMainWindow">
<property name="name">
<cstring>MadMinute</cstring>
</property>
@@ -23,7 +23,7 @@
<property name="margin">
<number>3</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout8</cstring>
</property>
@@ -31,7 +31,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -63,7 +63,7 @@
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout7</cstring>
</property>
@@ -71,7 +71,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout6</cstring>
</property>
@@ -79,7 +79,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout5</cstring>
</property>
@@ -87,7 +87,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>question</cstring>
</property>
@@ -106,7 +106,7 @@
</size>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>answer</cstring>
</property>
@@ -125,7 +125,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
</property>
@@ -133,7 +133,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -144,7 +144,7 @@
<set>AlignVCenter</set>
</property>
</widget>
- <widget class="QProgressBar">
+ <widget class="TQProgressBar">
<property name="name">
<cstring>timeleft</cstring>
</property>
@@ -172,7 +172,7 @@
</widget>
</hbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout6_2</cstring>
</property>
@@ -180,7 +180,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -208,7 +208,7 @@
</size>
</property>
</spacer>
- <widget class="QLCDNumber">
+ <widget class="TQLCDNumber">
<property name="name">
<cstring>correct</cstring>
</property>
diff --git a/kjsembed/docs/examples/multipart/multipart.js b/kjsembed/docs/examples/multipart/multipart.js
index 89402f79..e08a3d8c 100644
--- a/kjsembed/docs/examples/multipart/multipart.js
+++ b/kjsembed/docs/examples/multipart/multipart.js
@@ -7,7 +7,7 @@
//
// Main
//
-var qd = new QDir();
+var qd = new TQDir();
var dir = 'file://' + qd.path() + '/../';
var file = dir + 'index.html';
@@ -16,7 +16,7 @@ var file = dir + 'index.html';
var mw = new KParts_MainWindow();
var ac = mw.actionCollection();
-var split = new QSplitter( mw );
+var split = new TQSplitter( mw );
mw.setCentralWidget( split );
//
@@ -27,7 +27,7 @@ var side = Factory.createROPart( "inode/directory", split, "sidebar" );
//
// Load the views
//
-var views = new QSplitter( split );
+var views = new TQSplitter( split );
views.orientation = 1;
var top = Factory.createROPart( "text/html", views, "html" );
diff --git a/kjsembed/docs/examples/netaccess/net.js b/kjsembed/docs/examples/netaccess/net.js
index c406d79b..440cf34f 100755
--- a/kjsembed/docs/examples/netaccess/net.js
+++ b/kjsembed/docs/examples/netaccess/net.js
@@ -15,7 +15,7 @@ if ( ret ) {
warn( 'Failed to load image '+loc);
} else {
print( 'Image ' + loc + ' is OK \n' );
- var lbl = new QLabel();
+ var lbl = new TQLabel();
lbl.pixmap = img.pixmap();
lbl.show();
application.exec();
diff --git a/kjsembed/docs/examples/opaquevalues/opaque.js b/kjsembed/docs/examples/opaquevalues/opaque.js
index f92fb6f2..3c22f04a 100755
--- a/kjsembed/docs/examples/opaquevalues/opaque.js
+++ b/kjsembed/docs/examples/opaquevalues/opaque.js
@@ -3,10 +3,10 @@
// Usage: kjscmd --noexec opaque.js 2>/dev/null
//
-// Test QVariant support
+// Test TQVariant support
//
-var w = new QLabel();
+var w = new TQLabel();
w.text = 'Test';
var sp = w.sizePolicy;
diff --git a/kjsembed/docs/examples/qdocviewer/docviewer.ui b/kjsembed/docs/examples/qdocviewer/docviewer.ui
index 33db5ff2..94b7458b 100755
--- a/kjsembed/docs/examples/qdocviewer/docviewer.ui
+++ b/kjsembed/docs/examples/qdocviewer/docviewer.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>HelpUI</class>
-<widget class="QMainWindow">
+<widget class="TQMainWindow">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -22,7 +22,7 @@
<property name="spacing">
<number>2</number>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
+ <widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
<cstring>layout1</cstring>
</property>
@@ -30,14 +30,14 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QToolBox">
+ <widget class="TQToolBox">
<property name="name">
<cstring>Navbar</cstring>
</property>
<property name="currentIndex">
<number>5</number>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>StaticObjects</cstring>
</property>
@@ -57,7 +57,7 @@
<property name="spacing">
<number>1</number>
</property>
- <widget class="QListBox" row="0" column="0">
+ <widget class="TQListBox" row="0" column="0">
<item>
<property name="text">
<string>New Item</string>
@@ -69,7 +69,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>ObjectTypes</cstring>
</property>
@@ -89,7 +89,7 @@
<property name="spacing">
<number>1</number>
</property>
- <widget class="QListBox" row="0" column="0">
+ <widget class="TQListBox" row="0" column="0">
<item>
<property name="text">
<string>New Item</string>
@@ -101,7 +101,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>KJSEmbedObjects</cstring>
</property>
@@ -121,7 +121,7 @@
<property name="spacing">
<number>1</number>
</property>
- <widget class="QListBox" row="0" column="0">
+ <widget class="TQListBox" row="0" column="0">
<item>
<property name="text">
<string>New Item</string>
@@ -133,7 +133,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>QtObjects</cstring>
</property>
@@ -153,7 +153,7 @@
<property name="spacing">
<number>1</number>
</property>
- <widget class="QListBox" row="0" column="0">
+ <widget class="TQListBox" row="0" column="0">
<item>
<property name="text">
<string>New Item</string>
@@ -165,7 +165,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>KDEObjects</cstring>
</property>
@@ -185,7 +185,7 @@
<property name="spacing">
<number>1</number>
</property>
- <widget class="QListBox" row="0" column="0">
+ <widget class="TQListBox" row="0" column="0">
<item>
<property name="text">
<string>New Item</string>
@@ -197,7 +197,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>ExceptionTypes</cstring>
</property>
@@ -217,7 +217,7 @@
<property name="spacing">
<number>1</number>
</property>
- <widget class="QListBox" row="0" column="0">
+ <widget class="TQListBox" row="0" column="0">
<item>
<property name="text">
<string>New Item</string>
@@ -229,7 +229,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>UnconstructableTypes</cstring>
</property>
@@ -249,7 +249,7 @@
<property name="spacing">
<number>1</number>
</property>
- <widget class="QListBox" row="0" column="0">
+ <widget class="TQListBox" row="0" column="0">
<item>
<property name="text">
<string>New Item</string>
@@ -261,7 +261,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>Search</cstring>
</property>
@@ -281,7 +281,7 @@
<property name="spacing">
<number>2</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
@@ -289,7 +289,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>SearchLine</cstring>
</property>
@@ -302,7 +302,7 @@
</sizepolicy>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>Search</cstring>
</property>
@@ -312,7 +312,7 @@
</widget>
</hbox>
</widget>
- <widget class="QListBox">
+ <widget class="TQListBox">
<item>
<property name="text">
<string>New Item</string>
@@ -333,7 +333,7 @@
</vbox>
</widget>
</widget>
- <widget class="QTextBrowser">
+ <widget class="TQTextBrowser">
<property name="name">
<cstring>HelpPage</cstring>
</property>
diff --git a/kjsembed/docs/examples/qdocviewer/qdocviewer.js b/kjsembed/docs/examples/qdocviewer/qdocviewer.js
index 41ae2835..8b40e096 100644
--- a/kjsembed/docs/examples/qdocviewer/qdocviewer.js
+++ b/kjsembed/docs/examples/qdocviewer/qdocviewer.js
@@ -109,23 +109,23 @@ populateStaticObjects();
populateExceptions();
populateObjects();
-mw.connect( StaticObjectList, 'highlighted(const QString&)', this, 'documentStaticObject' );
-mw.connect( ExceptionTypeList, 'highlighted(const QString&)', this, 'documentStaticObject' );
-mw.connect( KDEObjectList, 'highlighted(const QString&)', this, 'documentConstructableObject' );
-mw.connect( QtObjectList, 'highlighted(const QString&)', this, 'documentConstructableObject' );
-mw.connect( KJSEmbedObjectList, 'highlighted(const QString&)', this, 'documentConstructableObject' );
-mw.connect( ObjectTypeList, 'highlighted(const QString&)', this, 'documentConstructableObject' );
+mw.connect( StaticObjectList, 'highlighted(const TQString&)', this, 'documentStaticObject' );
+mw.connect( ExceptionTypeList, 'highlighted(const TQString&)', this, 'documentStaticObject' );
+mw.connect( KDEObjectList, 'highlighted(const TQString&)', this, 'documentConstructableObject' );
+mw.connect( QtObjectList, 'highlighted(const TQString&)', this, 'documentConstructableObject' );
+mw.connect( KJSEmbedObjectList, 'highlighted(const TQString&)', this, 'documentConstructableObject' );
+mw.connect( ObjectTypeList, 'highlighted(const TQString&)', this, 'documentConstructableObject' );
mw.show();
application.exec();
/*
-side = new QTabWidget( split, 'sidebar' );
-view = new QTabWidget( split, 'mainview' );
+side = new TQTabWidget( split, 'sidebar' );
+view = new TQTabWidget( split, 'mainview' );
// Load the view
-js = new QTextEdit( view, 'js' );
+js = new TQTextEdit( view, 'js' );
js.setReadOnly( true );
view.addTab( js, '&Javascript' );
@@ -169,9 +169,9 @@ view.setup = function()
}
// Setup the sidebar
-specialside = new QListBox( side, 'specialsidebar' );
-qtside = new QListBox( side, 'qtsidebar' );
-allside = new QListBox( side, 'allsidebar' );
+specialside = new TQListBox( side, 'specialsidebar' );
+qtside = new TQListBox( side, 'qtsidebar' );
+allside = new TQListBox( side, 'allsidebar' );
side.addTab( specialside, '&Special' );
side.addTab( qtside, '&Qt' );
@@ -179,9 +179,9 @@ side.addTab( allside, '&All' );
setup_sidebar( specialside, qtside, allside );
-qtside.connect( qtside, 'highlighted(const QString&)', view, 'set_class' );
-specialside.connect( specialside, 'highlighted(const QString&)', view, 'set_class' );
-allside.connect( allside, 'highlighted(const QString&)', view, 'set_class' );
+qtside.connect( qtside, 'highlighted(const TQString&)', view, 'set_class' );
+specialside.connect( specialside, 'highlighted(const TQString&)', view, 'set_class' );
+allside.connect( allside, 'highlighted(const TQString&)', view, 'set_class' );
//
// Show the window
diff --git a/kjsembed/docs/examples/readonlypart/readonlypart.js b/kjsembed/docs/examples/readonlypart/readonlypart.js
index 0f57b763..af1ec59c 100755
--- a/kjsembed/docs/examples/readonlypart/readonlypart.js
+++ b/kjsembed/docs/examples/readonlypart/readonlypart.js
@@ -9,7 +9,7 @@ if ( application.args.length )
// Create the UI
var mw = new KMainWindow();
-var box = new QHBox( mw );
+var box = new TQHBox( mw );
mw.setCentralWidget(box);
// Create the view
diff --git a/kjsembed/docs/examples/readwritepart/readwritepart.js b/kjsembed/docs/examples/readwritepart/readwritepart.js
index 3cc9c18c..d9663f8d 100755
--- a/kjsembed/docs/examples/readwritepart/readwritepart.js
+++ b/kjsembed/docs/examples/readwritepart/readwritepart.js
@@ -9,7 +9,7 @@ if ( application.args.length )
// Create the UI
var mw = new KMainWindow();
-var box = new QHBox( mw );
+var box = new TQHBox( mw );
mw.setCentralWidget(box);
// Create the view
diff --git a/kjsembed/docs/examples/sql/sql.js b/kjsembed/docs/examples/sql/sql.js
index 5ef568de..118510d4 100755
--- a/kjsembed/docs/examples/sql/sql.js
+++ b/kjsembed/docs/examples/sql/sql.js
@@ -2,10 +2,10 @@
var db = new SqlDatabase();
var mw = new KMainWindow();
-var box = new QVBox( mw );
+var box = new TQVBox( mw );
mw.setCentralWidget(box);
-if ( db.addDatabase("QMYSQL3", "test" ))
+if ( db.addDatabase("TQMYSQL3", "test" ))
{
db.databaseName = "XXXX";
db.userName = "XXXX";
diff --git a/kjsembed/docs/examples/stdicons/stdicons.js b/kjsembed/docs/examples/stdicons/stdicons.js
index e01c96ec..104ebd61 100755
--- a/kjsembed/docs/examples/stdicons/stdicons.js
+++ b/kjsembed/docs/examples/stdicons/stdicons.js
@@ -1,11 +1,11 @@
#!/usr/bin/env kjscmd
-var mainBox = new QVBox(this);
-var Icon1 = new QLabel(mainBox);
-var Icon2 = new QLabel(mainBox);
-var Icon3 = new QLabel(mainBox);
-var Icon4 = new QLabel(mainBox);
-var Icon5 = new QLabel(mainBox);
+var mainBox = new TQVBox(this);
+var Icon1 = new TQLabel(mainBox);
+var Icon2 = new TQLabel(mainBox);
+var Icon3 = new TQLabel(mainBox);
+var Icon4 = new TQLabel(mainBox);
+var Icon5 = new TQLabel(mainBox);
Icon1.pixmap = StdIcons.BarIcon("openterm");
Icon2.pixmap = StdIcons.DesktopIcon("folder");
diff --git a/kjsembed/docs/examples/systemtray/systemtray.js b/kjsembed/docs/examples/systemtray/systemtray.js
index 5ecc55f0..1f87998c 100755
--- a/kjsembed/docs/examples/systemtray/systemtray.js
+++ b/kjsembed/docs/examples/systemtray/systemtray.js
@@ -5,7 +5,7 @@
//
// Create the main window
-mainwin = new QTextEdit(this);
+mainwin = new TQTextEdit(this);
mainwin.text = '<qt>This is the main window for a script that illustrates '
+ 'the use of the <i>System Tray</i>.';
@@ -13,7 +13,7 @@ mainwin.text = '<qt>This is the main window for a script that illustrates '
trayicon = new KSystemTray( mainwin );
// Set the pixmap of the tray icon (we force it to be loaded from the cwd here)
-cwd = (new QDir()).absPath();
+cwd = (new TQDir()).absPath();
trayicon.pixmap = trayicon.loadIcon( cwd + '/kjstray.png' );
// Ensure we quit when you choose the option from the tray item's menu
diff --git a/kjsembed/docs/examples/timer/timer.js b/kjsembed/docs/examples/timer/timer.js
index fabb669f..a124eadb 100644
--- a/kjsembed/docs/examples/timer/timer.js
+++ b/kjsembed/docs/examples/timer/timer.js
@@ -1,7 +1,7 @@
#!/usr/bin/env kjscmd
var led = new KLed();
-var timer = new QTimer();
+var timer = new TQTimer();
led.connect( timer, 'timeout()', 'toggle()' );
timer.start( 500 );
diff --git a/kjsembed/docs/examples/treeview/showtree.js b/kjsembed/docs/examples/treeview/showtree.js
index 76872d35..ea6b62d9 100644
--- a/kjsembed/docs/examples/treeview/showtree.js
+++ b/kjsembed/docs/examples/treeview/showtree.js
@@ -2,7 +2,7 @@
function buildViewNode( node, parent )
{
- var l = new QLabel( parent, 'node' );
+ var l = new TQLabel( parent, 'node' );
l.text = '<center><table cellspacing=0>'
+ '<tr><th bgcolor="#aaaaee"><b>' + node.text + '</b></th></tr>'
+ '<tr><td bgcolor="#ccccee">' + node.text + '</td></tr>'
@@ -20,14 +20,14 @@ function buildView( node, parent )
}
// Create container node
- var vbox = new QVBox( parent, 'subtree' );
+ var vbox = new TQVBox( parent, 'subtree' );
vbox.margin = 8;
vbox.spacing = 6;
var vnode = buildViewNode( node, vbox );
// Create children
- var hbox = new QHBox( vbox, 'child_nodes' );
+ var hbox = new TQHBox( vbox, 'child_nodes' );
hbox.spacing = 6;
for ( var i = 0 ; i < node.children.length ; i++ ) {
@@ -57,11 +57,11 @@ root.children[2].children = [ buildNode('One') ];
root.children[2].children = [ buildNode('One'), buildNode('Two'), buildNode('Three') ];
// Create View
-var box = new QVBox( 'tree_view' );
+var box = new TQVBox( 'tree_view' );
box.margin = 6;
var view = buildView( root, box );
-var spacer = new QLabel( box );
+var spacer = new TQLabel( box );
box.show();
diff --git a/kjsembed/docs/examples/treeview/tree2.js b/kjsembed/docs/examples/treeview/tree2.js
index d8b8e09d..0999101f 100644
--- a/kjsembed/docs/examples/treeview/tree2.js
+++ b/kjsembed/docs/examples/treeview/tree2.js
@@ -1,10 +1,10 @@
#!/usr/bin/env kjscmd
-// Demo that creates a tree from a ui file using QHBox and QBox.
+// Demo that creates a tree from a ui file using TQHBox and TQBox.
function create_item( node, parent )
{
- var l = new QLabel( parent );
+ var l = new TQLabel( parent );
l.paletteBackgroundColor = '#aaaaee';
l.frameShape = 1;
l.frameWidth = 1;
@@ -16,7 +16,7 @@ function create_item( node, parent )
function create_subtree_layout( parent )
{
- var vb = new QVBox( parent );
+ var vb = new TQVBox( parent );
vb.margin = 12;
return vb;
@@ -24,7 +24,7 @@ function create_subtree_layout( parent )
function create_child_layout( parent )
{
- var hb = new QHBox( parent );
+ var hb = new TQHBox( parent );
hb.margin = 6;
return hb;
@@ -48,7 +48,7 @@ function create_tree( node, parent )
}
var ui = Factory.loadui( 'treetest.ui' );
-var top = new QHBox();
+var top = new TQHBox();
create_tree( ui, top );
top.show();
diff --git a/kjsembed/docs/examples/treeview/treetest.ui b/kjsembed/docs/examples/treeview/treetest.ui
index c645e9c2..4c75034d 100644
--- a/kjsembed/docs/examples/treeview/treetest.ui
+++ b/kjsembed/docs/examples/treeview/treetest.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
<class>Form1</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>Form1</cstring>
</property>
@@ -12,7 +12,7 @@
<height>116</height>
</rect>
</property>
- <widget class="QSplitter">
+ <widget class="TQSplitter">
<property name="name">
<cstring>splitter1</cstring>
</property>
@@ -27,7 +27,7 @@
<property name="orientation">
<enum>Horizontal</enum>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
</property>
@@ -35,7 +35,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton1</cstring>
</property>
@@ -43,7 +43,7 @@
<string>pushButton1</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton2</cstring>
</property>
@@ -51,7 +51,7 @@
<string>pushButton2</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton3</cstring>
</property>
@@ -61,7 +61,7 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
</property>
@@ -69,7 +69,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout2</cstring>
</property>
@@ -77,7 +77,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton4</cstring>
</property>
@@ -85,7 +85,7 @@
<string>pushButton4</string>
</property>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton5</cstring>
</property>
@@ -95,7 +95,7 @@
</widget>
</hbox>
</widget>
- <widget class="QPushButton">
+ <widget class="TQPushButton">
<property name="name">
<cstring>pushButton6</cstring>
</property>
diff --git a/kjsembed/docs/examples/xmlgui/xmlgui.js b/kjsembed/docs/examples/xmlgui/xmlgui.js
index ac0f7113..a951a2ed 100755
--- a/kjsembed/docs/examples/xmlgui/xmlgui.js
+++ b/kjsembed/docs/examples/xmlgui/xmlgui.js
@@ -5,7 +5,7 @@
//
var mw = new KMainWindow();
-var view = new QTextEdit( mw, 'view' );
+var view = new TQTextEdit( mw, 'view' );
view.text = '<h1>Hello World</h1>'
+ '<p>This application is written entirely in Javascript and works '
+ 'thanks to KJSEmbed</p>';