summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/examples/html2text/test.htm
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/docs/examples/html2text/test.htm
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/docs/examples/html2text/test.htm')
-rw-r--r--kjsembed/docs/examples/html2text/test.htm22
1 files changed, 11 insertions, 11 deletions
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>