summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/docs')
-rw-r--r--kjsembed/docs/embedding/qtembed/main.cpp2
-rw-r--r--kjsembed/docs/embedding/qtembed/posviewimp.cpp2
-rw-r--r--kjsembed/docs/embedding/qtembed/posviewimp.h2
-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/examples/README2
-rw-r--r--kjsembed/docs/examples/html2text/test.htm10
-rw-r--r--kjsembed/docs/examples/imageinfo/example.html2
-rw-r--r--kjsembed/docs/examples/imageinfo/example1.htm2
-rw-r--r--kjsembed/docs/examples/imageinfo/thumbs.html2
-rw-r--r--kjsembed/docs/examples/index.html12
-rw-r--r--kjsembed/docs/features.html10
-rw-r--r--kjsembed/docs/tutorial/kjsembed.html10
-rw-r--r--kjsembed/docs/types.html40
14 files changed, 63 insertions, 63 deletions
diff --git a/kjsembed/docs/embedding/qtembed/main.cpp b/kjsembed/docs/embedding/qtembed/main.cpp
index 78808aac..fbf8541b 100644
--- a/kjsembed/docs/embedding/qtembed/main.cpp
+++ b/kjsembed/docs/embedding/qtembed/main.cpp
@@ -10,7 +10,7 @@
int main ( int argc, char ** argv )
{
- TTQApplication app( argc, argv );
+ TQApplication app( argc, argv );
POSViewImp *view = new POSViewImp;
app.setMainWidget(view);
view->show();
diff --git a/kjsembed/docs/embedding/qtembed/posviewimp.cpp b/kjsembed/docs/embedding/qtembed/posviewimp.cpp
index 118e471b..a9c3c289 100644
--- a/kjsembed/docs/embedding/qtembed/posviewimp.cpp
+++ b/kjsembed/docs/embedding/qtembed/posviewimp.cpp
@@ -14,7 +14,7 @@
#include <tqdatetime.h>
#include <tqcolor.h>
-POSViewImp::POSViewImp(TTQWidget *parent, const char *name)
+POSViewImp::POSViewImp(TQWidget *parent, const char *name)
:POSViewBase(parent, name)
{
m_part = new KJSEmbed::KJSEmbedPart(0, "kjsembed_part", this,"JSEmbed");
diff --git a/kjsembed/docs/embedding/qtembed/posviewimp.h b/kjsembed/docs/embedding/qtembed/posviewimp.h
index 2bb0df9c..764ac813 100644
--- a/kjsembed/docs/embedding/qtembed/posviewimp.h
+++ b/kjsembed/docs/embedding/qtembed/posviewimp.h
@@ -15,7 +15,7 @@ namespace KJSEmbed {
class POSViewImp: public POSViewBase {
Q_OBJECT
public:
- POSViewImp( TTQWidget *parent = 0, const char *name = 0 );
+ POSViewImp( TQWidget *parent = 0, const char *name = 0 );
public slots:
void loadScript();
diff --git a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp
index 87ae4f00..b71521d5 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(TTQWidget *parent, const char *name)
+EmbedViewImp::EmbedViewImp(TQWidget *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);
- 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();
+ 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();
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 TTQString &file )
+bool EmbedViewImp::runScript( const TQString &file )
{
return m_part->runFile(file, m_part->globalObject() );
}
-TTQVariant EmbedViewImp::someValue() const
+TQVariant EmbedViewImp::someValue() const
{
- TTQMap<TTQString,TTQVariant> returnMap;
+ TQMap<TQString,TQVariant> returnMap;
returnMap["name"] = m_name->text();
returnMap["title"] = m_title->text();
returnMap["dept"] = m_dept->text();
- return TTQVariant(returnMap);
+ return TQVariant(returnMap);
}
-void EmbedViewImp::setSomeValue( const TTQVariant &val )
+void EmbedViewImp::setSomeValue( const TQVariant &val )
{
- TTQMap<TTQString,TTQVariant> map = val.toMap();
+ TQMap<TQString,TQVariant> 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 5003c182..7c678a32 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( TTQWidget *parent = 0, const char *name = 0 );
+ EmbedViewImp( TQWidget *parent = 0, const char *name = 0 );
- bool runScript( const TTQString &file );
+ bool runScript( const TQString &file );
public slots:
virtual void cancelClicked();
virtual void okClicked();
virtual void consoleClicked();
- TTQVariant someValue() const;
- void setSomeValue( const TTQVariant &var );
+ TQVariant someValue() const;
+ void setSomeValue( const TQVariant &var );
private:
KJSEmbed::KJSEmbedPart *m_part;
};
diff --git a/kjsembed/docs/examples/README b/kjsembed/docs/examples/README
index 71449ae3..ce89dc9e 100644
--- a/kjsembed/docs/examples/README
+++ b/kjsembed/docs/examples/README
@@ -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.
-TTQComboBox A simple demo of TQComboBox.
+TQComboBox 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/html2text/test.htm b/kjsembed/docs/examples/html2text/test.htm
index af257805..1639b375 100644
--- a/kjsembed/docs/examples/html2text/test.htm
+++ b/kjsembed/docs/examples/html2text/test.htm
@@ -53,7 +53,7 @@ pre {
&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 TTQWidget subclass supported by TTQWidgetFactory.&lt;/li>
+ &lt;li>Scripts can create instances of anu TQWidget subclass supported by TQWidgetFactory.&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>
@@ -87,11 +87,11 @@ JSConsoleWidget (KJSEmbed::JSConsoleWidget)
kjs> console.childCount()
4
kjs> console.childAt(1)
-CmdEdit (TTQComboBox)
+CmdEdit (TQComboBox)
kjs> console.childAt(2)
-RunButton (TTQPushButton)
+RunButton (TQPushButton)
kjs> console.child(&amp;quot;RunButton&amp;quot;)
-RunButton (TTQPushButton)
+RunButton (TQPushButton)
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,7 +145,7 @@ 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 TTQLineEdit called 'search_edit', so
+ entering the text to be searched for is a TQLineEdit 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 TQLineEdits
diff --git a/kjsembed/docs/examples/imageinfo/example.html b/kjsembed/docs/examples/imageinfo/example.html
index 58205bda..4a9873c7 100644
--- a/kjsembed/docs/examples/imageinfo/example.html
+++ b/kjsembed/docs/examples/imageinfo/example.html
@@ -10,7 +10,7 @@
<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 TTQImage::smoothScale()
+see the script automatically creates thumbnails (using TQImage::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 3a0a4ef9..bbe9bb0b 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 TTQImage::smoothScale()
+see the script automatically creates thumbnails (using TQImage::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/thumbs.html b/kjsembed/docs/examples/imageinfo/thumbs.html
index b47501f8..2c66e0a5 100644
--- a/kjsembed/docs/examples/imageinfo/thumbs.html
+++ b/kjsembed/docs/examples/imageinfo/thumbs.html
@@ -10,7 +10,7 @@
<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 TTQImage::smoothScale()
+see the script automatically creates thumbnails (using TQImage::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/index.html b/kjsembed/docs/examples/index.html
index a3a44761..4b48cc31 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 TTQObject DOM API.</td></tr>
+<td>Illustrates the TQObject 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 TTQPixmap values.</td></tr>
+<td>Illustrates the use of TQPixmap 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 TTQFrame support and the use of enums.</td></tr>
+<td>Shows off TQFrame support and the use of enums.</td></tr>
<tr><td><a href="timer">timer</a></td>
-<td>Creates a flashing LED using TTQTimer.</td></tr>
+<td>Creates a flashing LED using TQTimer.</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">TTQComboBox</a></td>
-<td>A simple demo of TTQComboBox.</td></tr>
+<tr><td><a href="combobox">TQComboBox</a></td>
+<td>A simple demo of TQComboBox.</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/features.html b/kjsembed/docs/features.html
index 8c8e378d..ae6f0b7b 100644
--- a/kjsembed/docs/features.html
+++ b/kjsembed/docs/features.html
@@ -12,14 +12,14 @@ This document is a high-level summary of the feature set of KJSEmbed.
<h2>Qt Integration</h2>
<ul>
-<li>Generic proxy class providing access to any TTQObject.
+<li>Generic proxy class providing access to any TQObject.
<li>Call slots from scripts as if they are JS methods.
<li>Connect signals to JS methods as if they are slots.
-<li>Navigate the TTQObject tree using a DOM compatible API.
+<li>Navigate the TQObject tree using a DOM compatible API.
<li>Load designer's UI files to dynamically load dialogs and widgets.
-<li>Create any TTQWidget supported by TTQWidgetFactory.
-<li>Custom factory for creating TQObjects (such as TTQTimer).
-<li>An opaque wrapper handling any TTQVariant value and any pointer.
+<li>Create any TQWidget supported by TQWidgetFactory.
+<li>Custom factory for creating TQObjects (such as TQTimer).
+<li>An opaque wrapper handling any TQVariant value and any pointer.
</ul>
<h2>KDE Integration</h2>
diff --git a/kjsembed/docs/tutorial/kjsembed.html b/kjsembed/docs/tutorial/kjsembed.html
index 7e2c38fd..c9ae359e 100644
--- a/kjsembed/docs/tutorial/kjsembed.html
+++ b/kjsembed/docs/tutorial/kjsembed.html
@@ -54,7 +54,7 @@ pre {
<li>Scripts can access the properties and slots of TQObjects as if they were
normal Javascript properties and methods.</li>
<li>Scripts can load dialogs and widgets created with Qt Designer.</li>
- <li>Scripts can create instances of anu TTQWidget subclass supported by TTQWidgetFactory.</li>
+ <li>Scripts can create instances of anu TQWidget subclass supported by TQWidgetFactory.</li>
<li>Making your own TQObjects/TQWidgets available for scripting is one-liner.</li>
<li>Scripts can traverse the widget tree, so your entire application can be
made scriptable without explicitly binding every object.</li>
@@ -88,11 +88,11 @@ JSConsoleWidget (KJSEmbed::JSConsoleWidget)
kjs> console.childCount()
4
kjs> console.child(1)
-CmdEdit (TTQComboBox)
+CmdEdit (TQComboBox)
kjs> console.child(2)
-RunButton (TTQPushButton)
+RunButton (TQPushButton)
kjs> console.child(&quot;RunButton&quot;)
-RunButton (TTQPushButton)
+RunButton (TQPushButton)
kjs> console.child(&quot;RunButton&quot;).text = &quot;Go!&quot;
Go!
kjs> console.caption = &quot;Different Title&quot;
@@ -149,7 +149,7 @@ print( cmd );
<p class="precaption">Listing 1: A Script That Displays the Grep Dialog</p>
<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 TTQLineEdit called 'search_edit', so
+ entering the text to be searched for is a TQLineEdit 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 TQLineEdits
diff --git a/kjsembed/docs/types.html b/kjsembed/docs/types.html
index ab823896..cdffa1f0 100644
--- a/kjsembed/docs/types.html
+++ b/kjsembed/docs/types.html
@@ -38,8 +38,8 @@ continue to be supported.
<h3>Strings</h3>
<ul>
-<li>TTQString -> String
-<li>TTQCString -> String
+<li>TQString -> String
+<li>TQCString -> String
<li>const char * -> String
<li>String -> TQString
<li>String -> TQCString
@@ -48,66 +48,66 @@ continue to be supported.
<h2>Qt Object Types</h2>
-<h3>TTQColor</h3>
+<h3>TQColor</h3>
Represents a color, possibly including an alpha channel.
<ul>
-<li>TTQColor -> '#rrggbb'
+<li>TQColor -> '#rrggbb'
<li>'#rrggbb' -> TQColor
<li>'#rrggbbaa' -> TQColor
</ul>
-<h3>TTQPoint</h3>
+<h3>TQPoint</h3>
Represents a point.
<ul>
-<li>TTQPoint -> [x,y]
+<li>TQPoint -> [x,y]
<li>[x,y] -> TQPoint
<li>obj.x obj.y -> TQPoint
</ul>
-<h3>TTQSize</h3>
+<h3>TQSize</h3>
Represents a size.
<ul>
-<li>TTQSize -> [w,h]
+<li>TQSize -> [w,h]
<li>[w,h] -> TQSize
<li>obj.w obj.h -> TQSize
</ul>
-<h3>TTQRect</h3>
+<h3>TQRect</h3>
Represents a rectangle.
<ul>
-<li>TTQRect -> [x,y,w,h]
+<li>TQRect -> [x,y,w,h]
<li>[x,y,w,h] -> TQRect
<li>obj.x obj.y obj.w obj.h -> TQRect
</ul>
-<h3>TTQDate</h3>
+<h3>TQDate</h3>
Represents a date.
<ul>
-<li>TTQDate -> ''
+<li>TQDate -> ''
</ul>
-<h3>TTQTime</h3>
+<h3>TQTime</h3>
Represents a time.
<ul>
-<li>TTQTime -> ''
+<li>TQTime -> ''
</ul>
-<h3>TTQDateTime</h3>
+<h3>TQDateTime</h3>
Represents a date/time pair.
<ul>
-<li>TTQDateTime -> ''
+<li>TQDateTime -> ''
</ul>
-<h3>TTQKeySequence</h3>
+<h3>TQKeySequence</h3>
Represents a sequence of keys, eg. it is used for accelerators.
<ul>
-<li>TTQKeySequence -> ''
+<li>TQKeySequence -> ''
</ul>
-<h3>TTQFont</h3>
+<h3>TQFont</h3>
Represents a font.
<ul>
-<li>TTQFont -> ''
+<li>TQFont -> ''
</ul>
<h2>KDE Object Types</h2>