summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/embedding/simple-embed
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs/embedding/simple-embed')
-rw-r--r--kjsembed/docs/embedding/simple-embed/README2
-rw-r--r--kjsembed/docs/embedding/simple-embed/demo.html6
-rw-r--r--kjsembed/docs/embedding/simple-embed/embedview.ui14
-rw-r--r--kjsembed/docs/embedding/simple-embed/embedviewimp.cpp22
-rw-r--r--kjsembed/docs/embedding/simple-embed/embedviewimp.h8
-rw-r--r--kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.pngbin2749 -> 2750 bytes
-rw-r--r--kjsembed/docs/embedding/simple-embed/test.js12
7 files changed, 32 insertions, 32 deletions
diff --git a/kjsembed/docs/embedding/simple-embed/README b/kjsembed/docs/embedding/simple-embed/README
index f04a5635..9f4bbff5 100644
--- a/kjsembed/docs/embedding/simple-embed/README
+++ b/kjsembed/docs/embedding/simple-embed/README
@@ -1,5 +1,5 @@
-----------------------------------------------
-Kde application framework template quickstart
+Kde application framework template tquickstart
Author: Thomas Nagy
Date: 2004-03-22
-----------------------------------------------
diff --git a/kjsembed/docs/embedding/simple-embed/demo.html b/kjsembed/docs/embedding/simple-embed/demo.html
index 085d47bf..f5c46b63 100644
--- a/kjsembed/docs/embedding/simple-embed/demo.html
+++ b/kjsembed/docs/embedding/simple-embed/demo.html
@@ -69,8 +69,8 @@ who want to write scripts.
<li><b><a href="conventions.html">Document Conventions</a></b><br>
Explains the typographical conventions used by the documents.</li>
- <li><b><a href="kjsembed-qsa.html">KJSEmbed and QSA</a></b><br>
- Discusses the differences between KJSEmbed and QSA.</li>
+ <li><b><a href="kjsembed-qsa.html">KJSEmbed and TQSA</a></b><br>
+ Discusses the differences between KJSEmbed and TQSA.</li>
</ul>
<h3>References</h3>
@@ -83,7 +83,7 @@ who want to write scripts.
A tutorial on how to implement inheritence in JavaScript.
</li>
<li><b><a href="http://doc.trolltech.com/qsa/">Qt Script for Applications Documentation</a></b><br>
- The documentation for QSA, this is Trolltech's ECMAScript binding
+ The documentation for TQSA, this is Trolltech's ECMAScript binding
for Qt.
</li>
</ul>
diff --git a/kjsembed/docs/embedding/simple-embed/embedview.ui b/kjsembed/docs/embedding/simple-embed/embedview.ui
index 43be65ab..44985f72 100644
--- a/kjsembed/docs/embedding/simple-embed/embedview.ui
+++ b/kjsembed/docs/embedding/simple-embed/embedview.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>EmbedView</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">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout1</cstring>
</property>
@@ -24,7 +24,7 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -42,7 +42,7 @@
<cstring>m_name</cstring>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -50,7 +50,7 @@
<string>Department:</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -65,7 +65,7 @@
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>m_customOptions</cstring>
</property>
@@ -81,7 +81,7 @@
<string>Custom Options</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>layout3</cstring>
</property>
diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
index b71521d5..87ae4f00 100644
--- a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
+++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
@@ -15,7 +15,7 @@
#include <tqdatetime.h>
#include <tqcolor.h>
-EmbedViewImp::EmbedViewImp(TQWidget *parent, const char *name)
+EmbedViewImp::EmbedViewImp(TTQWidget *parent, const char *name)
:EmbedView(parent, name)
{
m_part = new KJSEmbed::KJSEmbedPart(0, "kjsembed_part", this,"JSEmbed");
@@ -30,10 +30,10 @@ void EmbedViewImp::okClicked()
{
KJS::List args;
KJS::Value val = m_part->callMethod("handleOk", args);
- TQMap<TQString, TQVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap();
- TQDate birthday = personalData["birthday"].toDate();
- TQColor eyecolor = personalData["eyeColor"].toColor();
- TQString notes = personalData["notes"].toString();
+ TTQMap<TTQString, TTQVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap();
+ TTQDate birthday = personalData["birthday"].toDate();
+ TTQColor eyecolor = personalData["eyeColor"].toColor();
+ TTQString notes = personalData["notes"].toString();
kdDebug() << "birthday: " << birthday << endl;
kdDebug() << "eyecolor: " << eyecolor << endl;
@@ -53,23 +53,23 @@ void EmbedViewImp::consoleClicked()
m_part->view()->setHidden(!m_part->view()->isHidden());
}
-bool EmbedViewImp::runScript( const TQString &file )
+bool EmbedViewImp::runScript( const TTQString &file )
{
return m_part->runFile(file, m_part->globalObject() );
}
-TQVariant EmbedViewImp::someValue() const
+TTQVariant EmbedViewImp::someValue() const
{
- TQMap<TQString,TQVariant> returnMap;
+ TTQMap<TTQString,TTQVariant> returnMap;
returnMap["name"] = m_name->text();
returnMap["title"] = m_title->text();
returnMap["dept"] = m_dept->text();
- return TQVariant(returnMap);
+ return TTQVariant(returnMap);
}
-void EmbedViewImp::setSomeValue( const TQVariant &val )
+void EmbedViewImp::setSomeValue( const TTQVariant &val )
{
- TQMap<TQString,TQVariant> map = val.toMap();
+ TTQMap<TTQString,TTQVariant> map = val.toMap();
m_name->setText(map["name"].toString());
m_title->setText(map["title"].toString());
m_dept->setText(map["dept"].toString());
diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.h b/kjsembed/docs/embedding/simple-embed/embedviewimp.h
index 7c678a32..5003c182 100644
--- a/kjsembed/docs/embedding/simple-embed/embedviewimp.h
+++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.h
@@ -16,17 +16,17 @@ class EmbedViewImp: public EmbedView {
Q_OBJECT
public:
- EmbedViewImp( TQWidget *parent = 0, const char *name = 0 );
+ EmbedViewImp( TTQWidget *parent = 0, const char *name = 0 );
- bool runScript( const TQString &file );
+ bool runScript( const TTQString &file );
public slots:
virtual void cancelClicked();
virtual void okClicked();
virtual void consoleClicked();
- TQVariant someValue() const;
- void setSomeValue( const TQVariant &var );
+ TTQVariant someValue() const;
+ void setSomeValue( const TTQVariant &var );
private:
KJSEmbed::KJSEmbedPart *m_part;
};
diff --git a/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png b/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png
index 45ae1a11..a8c927b0 100644
--- a/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png
+++ b/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png
Binary files differ
diff --git a/kjsembed/docs/embedding/simple-embed/test.js b/kjsembed/docs/embedding/simple-embed/test.js
index 2511a465..f954b26a 100644
--- a/kjsembed/docs/embedding/simple-embed/test.js
+++ b/kjsembed/docs/embedding/simple-embed/test.js
@@ -3,18 +3,18 @@
CustomOptions.orientation = Qt.Vertical;
CustomOptions.columns = 1;
-var box = new QVBox(CustomOptions);
-var row1 = new QHBox(box);
-var dateLabel = new QLabel(row1);
+var box = new TQVBox(CustomOptions);
+var row1 = new TQHBox(box);
+var dateLabel = new TQLabel(row1);
dateLabel.text = "Birthday:";
var birthday = new KDateWidget(row1);
-var row2 = new QHBox(box);
-var eyeLabel = new QLabel(row2);
+var row2 = new TQHBox(box);
+var eyeLabel = new TQLabel(row2);
eyeLabel.text = "Eye color:";
var eyeColor = new KColorButton(row2);
-var row3 = new QHBox(box);
+var row3 = new TQHBox(box);
var notes = new KTextEdit(row3);
box.show();