summaryrefslogtreecommitdiffstats
path: root/tools/activeqt/testcon/scripts
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2009-03-23 09:18:55 (GMT)
committerSimon Hausmann <simon.hausmann@nokia.com>2009-03-23 09:18:55 (GMT)
commite5fcad302d86d316390c6b0f62759a067313e8a9 (patch)
treec2afbf6f1066b6ce261f14341cf6d310e5595bc1 /tools/activeqt/testcon/scripts
downloadQt-e5fcad302d86d316390c6b0f62759a067313e8a9.zip
Qt-e5fcad302d86d316390c6b0f62759a067313e8a9.tar.gz
Qt-e5fcad302d86d316390c6b0f62759a067313e8a9.tar.bz2
Long live Qt 4.5!
Diffstat (limited to 'tools/activeqt/testcon/scripts')
-rw-r--r--tools/activeqt/testcon/scripts/javascript.js25
-rw-r--r--tools/activeqt/testcon/scripts/perlscript.pl24
-rw-r--r--tools/activeqt/testcon/scripts/pythonscript.py15
-rw-r--r--tools/activeqt/testcon/scripts/vbscript.vbs20
4 files changed, 84 insertions, 0 deletions
diff --git a/tools/activeqt/testcon/scripts/javascript.js b/tools/activeqt/testcon/scripts/javascript.js
new file mode 100644
index 0000000..e2bd54b
--- /dev/null
+++ b/tools/activeqt/testcon/scripts/javascript.js
@@ -0,0 +1,25 @@
+function QAxWidget2::Click()
+{
+ QAxWidget2.lineWidth++;
+ MainWindow.logMacro(0, "Hello from JavaScript: QAxWidget2::Click", 0, "");
+}
+
+function fatLines()
+{
+ QAxWidget2.lineWidth = 25;
+}
+
+function thinLines()
+{
+ QAxWidget2.lineWidth = 1;
+}
+
+function setLineWidth(width)
+{
+ QAxWidget2.lineWidth = width;
+}
+
+function getLineWidth()
+{
+ return(QAxWidget2.lineWidth)
+}
diff --git a/tools/activeqt/testcon/scripts/perlscript.pl b/tools/activeqt/testcon/scripts/perlscript.pl
new file mode 100644
index 0000000..029bdc2
--- /dev/null
+++ b/tools/activeqt/testcon/scripts/perlscript.pl
@@ -0,0 +1,24 @@
+sub QAxWidget2_Click {
+ $QAxWidget2->{'lineWidth'} = $QAxWidget2->{'lineWidth'} + 1;
+ $MainWindow->logMacro(0, "Hello from Perl: QAxWidget2_Click", 0, "");
+}
+
+sub fatLines
+{
+ $QAxWidget2->{'lineWidth'} = 25;
+}
+
+sub thinLines
+{
+ $QAxWidget2->{'lineWidth'} = 1;
+}
+
+sub setLineWidth(width)
+{
+ $QAxWidget2->{'lineWidth'} = width;
+}
+
+sub getLineWidth()
+{
+ return $QAxWidget2->{'lineWidth'};
+}
diff --git a/tools/activeqt/testcon/scripts/pythonscript.py b/tools/activeqt/testcon/scripts/pythonscript.py
new file mode 100644
index 0000000..79bca87
--- /dev/null
+++ b/tools/activeqt/testcon/scripts/pythonscript.py
@@ -0,0 +1,15 @@
+def QAxWidget2_Click():
+ QAxWidget2.lineWidth = QAxWidget2.lineWidth + 1;
+ MainWindow.logMacro(0, "Hello from Python: QAxWidget2_Click", 0, "");
+
+def fatLines():
+ QAxWidget2.lineWidth = 25;
+
+def thinLines():
+ QAxWidget2.lineWidth = 1;
+
+def setLineWidth(width):
+ QAxWidget2.lineWidth = width;
+
+def getLineWidth():
+ return QAxWidget2.lineWidth;
diff --git a/tools/activeqt/testcon/scripts/vbscript.vbs b/tools/activeqt/testcon/scripts/vbscript.vbs
new file mode 100644
index 0000000..bd29f19
--- /dev/null
+++ b/tools/activeqt/testcon/scripts/vbscript.vbs
@@ -0,0 +1,20 @@
+Sub QAxWidget2_Click
+ QAxWidget2.lineWidth = QAxWidget2.lineWidth + 1
+ MainWindow.logMacro 0, "Hello from VBScript: QAxWidget2_Click", 0, ""
+End Sub
+
+Sub fatLines
+ QAxWidget2.lineWidth = 25
+End Sub
+
+Sub thinLines
+ QAxWidget2.lineWidth = 1
+End Sub
+
+Sub setLineWidth(width)
+ QAxWidget2.lineWidth = width
+End Sub
+
+Public Function getLineWidth
+ getLineWidth = QAxWidget2.lineWidth
+End Function