diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/docs | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/docs')
-rw-r--r-- | kjsembed/docs/embedding/qtembed/main.cpp | 4 | ||||
-rw-r--r-- | kjsembed/docs/embedding/qtembed/posviewimp.cpp | 8 | ||||
-rw-r--r-- | kjsembed/docs/embedding/qtembed/posviewimp.h | 2 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedviewimp.cpp | 28 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedviewimp.h | 8 | ||||
-rw-r--r-- | kjsembed/docs/examples/html2text/test.htm | 10 | ||||
-rw-r--r-- | kjsembed/docs/examples/imageinfo/example.html | 2 | ||||
-rw-r--r-- | kjsembed/docs/examples/imageinfo/example1.htm | 2 | ||||
-rw-r--r-- | kjsembed/docs/examples/imageinfo/thumbs.html | 2 | ||||
-rw-r--r-- | kjsembed/docs/examples/index.html | 12 | ||||
-rw-r--r-- | kjsembed/docs/features.html | 10 | ||||
-rw-r--r-- | kjsembed/docs/tutorial/kjsembed.html | 10 | ||||
-rw-r--r-- | kjsembed/docs/types.html | 40 |
13 files changed, 69 insertions, 69 deletions
diff --git a/kjsembed/docs/embedding/qtembed/main.cpp b/kjsembed/docs/embedding/qtembed/main.cpp index b2d7d3d1..fbf8541b 100644 --- a/kjsembed/docs/embedding/qtembed/main.cpp +++ b/kjsembed/docs/embedding/qtembed/main.cpp @@ -5,12 +5,12 @@ // // -#include <qapplication.h> +#include <tqapplication.h> #include "posviewimp.h" int main ( int argc, char ** argv ) { - QApplication 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 7d4aebc9..a9c3c289 100644 --- a/kjsembed/docs/embedding/qtembed/posviewimp.cpp +++ b/kjsembed/docs/embedding/qtembed/posviewimp.cpp @@ -10,11 +10,11 @@ #include <kjsembed/jsconsolewidget.h> #include <kjsembed/jsbinding.h> -#include <qgroupbox.h> -#include <qdatetime.h> -#include <qcolor.h> +#include <tqgroupbox.h> +#include <tqdatetime.h> +#include <tqcolor.h> -POSViewImp::POSViewImp(QWidget *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 3fce0965..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( QWidget *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 a1355909..b71521d5 100644 --- a/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp +++ b/kjsembed/docs/embedding/simple-embed/embedviewimp.cpp @@ -10,12 +10,12 @@ #include "embedviewimp.h" #include <klineedit.h> -#include <qgroupbox.h> +#include <tqgroupbox.h> -#include <qdatetime.h> -#include <qcolor.h> +#include <tqdatetime.h> +#include <tqcolor.h> -EmbedViewImp::EmbedViewImp(QWidget *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); - QMap<QString, QVariant> personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap(); - QDate birthday = personalData["birthday"].toDate(); - QColor eyecolor = personalData["eyeColor"].toColor(); - QString 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 QString &file ) +bool EmbedViewImp::runScript( const TQString &file ) { return m_part->runFile(file, m_part->globalObject() ); } -QVariant EmbedViewImp::someValue() const +TQVariant EmbedViewImp::someValue() const { - QMap<QString,QVariant> returnMap; + TQMap<TQString,TQVariant> returnMap; returnMap["name"] = m_name->text(); returnMap["title"] = m_title->text(); returnMap["dept"] = m_dept->text(); - return QVariant(returnMap); + return TQVariant(returnMap); } -void EmbedViewImp::setSomeValue( const QVariant &val ) +void EmbedViewImp::setSomeValue( const TQVariant &val ) { - QMap<QString,QVariant> 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 c56f078c..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( QWidget *parent = 0, const char *name = 0 ); + EmbedViewImp( TQWidget *parent = 0, const char *name = 0 ); - bool runScript( const QString &file ); + bool runScript( const TQString &file ); public slots: virtual void cancelClicked(); virtual void okClicked(); virtual void consoleClicked(); - QVariant someValue() const; - void setSomeValue( const QVariant &var ); + TQVariant someValue() const; + void setSomeValue( const TQVariant &var ); private: KJSEmbed::KJSEmbedPart *m_part; }; diff --git a/kjsembed/docs/examples/html2text/test.htm b/kjsembed/docs/examples/html2text/test.htm index 457327d0..2a060c2d 100644 --- a/kjsembed/docs/examples/html2text/test.htm +++ b/kjsembed/docs/examples/html2text/test.htm @@ -53,7 +53,7 @@ pre { <li>Scripts can access the properties and slots of QObjects 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 QWidget subclass supported by QWidgetFactory.</li> + <li>Scripts can create instances of anu TQWidget subclass supported by TQWidgetFactory.</li> <li>Making your own QObjects/QWidgets 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> @@ -87,11 +87,11 @@ JSConsoleWidget (KJSEmbed::JSConsoleWidget) kjs> console.childCount() 4 kjs> console.childAt(1) -CmdEdit (QComboBox) +CmdEdit (TQComboBox) kjs> console.childAt(2) -RunButton (QPushButton) +RunButton (TQPushButton) kjs> console.child(&quot;RunButton&quot;) -RunButton (QPushButton) +RunButton (TQPushButton) kjs> console.child(&quot;RunButton&quot;).text = &quot;Go!&quot; Go! kjs> console.caption = &quot;Different Title&quot; @@ -145,7 +145,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 QLineEdit 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 QLineEdits diff --git a/kjsembed/docs/examples/imageinfo/example.html b/kjsembed/docs/examples/imageinfo/example.html index c5b5fd69..82af5e0b 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 QImage::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 b18ff23c..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 QImage::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 674dcfe5..663246a0 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 QImage::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 bed4b787..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 QObject 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 QPixmap 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 QFrame 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 QTimer.</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">QComboBox</a></td> -<td>A simple demo of QComboBox.</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 676b4a51..5da39771 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 QObject. +<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 QObject 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 QWidget supported by QWidgetFactory. -<li>Custom factory for creating QObjects (such as QTimer). -<li>An opaque wrapper handling any QVariant value and any pointer. +<li>Create any TQWidget supported by TQWidgetFactory. +<li>Custom factory for creating QObjects (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 a304c3de..dc769dc3 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 QObjects 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 QWidget subclass supported by QWidgetFactory.</li> + <li>Scripts can create instances of anu TQWidget subclass supported by TQWidgetFactory.</li> <li>Making your own QObjects/QWidgets 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 (QComboBox) +CmdEdit (TQComboBox) kjs> console.child(2) -RunButton (QPushButton) +RunButton (TQPushButton) kjs> console.child("RunButton") -RunButton (QPushButton) +RunButton (TQPushButton) kjs> console.child("RunButton").text = "Go!" Go! kjs> console.caption = "Different Title" @@ -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 QLineEdit 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 QLineEdits diff --git a/kjsembed/docs/types.html b/kjsembed/docs/types.html index 1b3f2120..59701605 100644 --- a/kjsembed/docs/types.html +++ b/kjsembed/docs/types.html @@ -38,8 +38,8 @@ continue to be supported. <h3>Strings</h3> <ul> -<li>QString -> String -<li>QCString -> String +<li>TQString -> String +<li>TQCString -> String <li>const char * -> String <li>String -> QString <li>String -> QCString @@ -48,66 +48,66 @@ continue to be supported. <h2>Qt Object Types</h2> -<h3>QColor</h3> +<h3>TQColor</h3> Represents a color, possibly including an alpha channel. <ul> -<li>QColor -> '#rrggbb' +<li>TQColor -> '#rrggbb' <li>'#rrggbb' -> QColor <li>'#rrggbbaa' -> QColor </ul> -<h3>QPoint</h3> +<h3>TQPoint</h3> Represents a point. <ul> -<li>QPoint -> [x,y] +<li>TQPoint -> [x,y] <li>[x,y] -> QPoint <li>obj.x obj.y -> QPoint </ul> -<h3>QSize</h3> +<h3>TQSize</h3> Represents a size. <ul> -<li>QSize -> [w,h] +<li>TQSize -> [w,h] <li>[w,h] -> QSize <li>obj.w obj.h -> QSize </ul> -<h3>QRect</h3> +<h3>TQRect</h3> Represents a rectangle. <ul> -<li>QRect -> [x,y,w,h] +<li>TQRect -> [x,y,w,h] <li>[x,y,w,h] -> QRect <li>obj.x obj.y obj.w obj.h -> QRect </ul> -<h3>QDate</h3> +<h3>TQDate</h3> Represents a date. <ul> -<li>QDate -> '' +<li>TQDate -> '' </ul> -<h3>QTime</h3> +<h3>TQTime</h3> Represents a time. <ul> -<li>QTime -> '' +<li>TQTime -> '' </ul> -<h3>QDateTime</h3> +<h3>TQDateTime</h3> Represents a date/time pair. <ul> -<li>QDateTime -> '' +<li>TQDateTime -> '' </ul> -<h3>QKeySequence</h3> +<h3>TQKeySequence</h3> Represents a sequence of keys, eg. it is used for accelerators. <ul> -<li>QKeySequence -> '' +<li>TQKeySequence -> '' </ul> -<h3>QFont</h3> +<h3>TQFont</h3> Represents a font. <ul> -<li>QFont -> '' +<li>TQFont -> '' </ul> <h2>KDE Object Types</h2> |