diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/docs/embedding | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/docs/embedding')
-rw-r--r-- | kjsembed/docs/embedding/qtembed/main.cpp | 2 | ||||
-rwxr-xr-x | kjsembed/docs/embedding/qtembed/posviewbase.ui | 20 | ||||
-rw-r--r-- | kjsembed/docs/embedding/qtembed/posviewimp.cpp | 2 | ||||
-rw-r--r-- | kjsembed/docs/embedding/qtembed/posviewimp.h | 2 | ||||
-rw-r--r-- | kjsembed/docs/embedding/qtembed/test.js | 2 | ||||
-rwxr-xr-x | kjsembed/docs/embedding/qtembed/view.ui | 18 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/README | 2 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/demo.html | 6 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedview.ui | 14 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedviewimp.cpp | 22 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/embedviewimp.h | 8 | ||||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png | bin | 2749 -> 2750 bytes | |||
-rw-r--r-- | kjsembed/docs/embedding/simple-embed/test.js | 12 |
13 files changed, 55 insertions, 55 deletions
diff --git a/kjsembed/docs/embedding/qtembed/main.cpp b/kjsembed/docs/embedding/qtembed/main.cpp index fbf8541b..78808aac 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 ) { - TQApplication app( argc, argv ); + TTQApplication app( argc, argv ); POSViewImp *view = new POSViewImp; app.setMainWidget(view); view->show(); diff --git a/kjsembed/docs/embedding/qtembed/posviewbase.ui b/kjsembed/docs/embedding/qtembed/posviewbase.ui index 9d8bad1a..4916d505 100755 --- a/kjsembed/docs/embedding/qtembed/posviewbase.ui +++ b/kjsembed/docs/embedding/qtembed/posviewbase.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>POSViewBase</class> -<widget class="QDialog"> +<widget class="TQDialog"> <property name="name"> <cstring>POSViewBase</cstring> </property> @@ -22,7 +22,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout3</cstring> </property> @@ -30,7 +30,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QFrame"> + <widget class="TQFrame"> <property name="name"> <cstring>appFrame</cstring> </property> @@ -49,7 +49,7 @@ <enum>Raised</enum> </property> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>layout2</cstring> </property> @@ -57,7 +57,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -65,7 +65,7 @@ <string>Recipt</string> </property> </widget> - <widget class="QTextBrowser"> + <widget class="TQTextBrowser"> <property name="name"> <cstring>recipt</cstring> </property> @@ -85,7 +85,7 @@ </widget> </hbox> </widget> - <widget class="QLayoutWidget"> + <widget class="TQLayoutWidget"> <property name="name"> <cstring>Layout1</cstring> </property> @@ -99,7 +99,7 @@ <property name="spacing"> <number>6</number> </property> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonHelp</cstring> </property> @@ -130,7 +130,7 @@ </size> </property> </spacer> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonOk</cstring> </property> @@ -147,7 +147,7 @@ <bool>true</bool> </property> </widget> - <widget class="QPushButton"> + <widget class="TQPushButton"> <property name="name"> <cstring>buttonCancel</cstring> </property> diff --git a/kjsembed/docs/embedding/qtembed/posviewimp.cpp b/kjsembed/docs/embedding/qtembed/posviewimp.cpp index a9c3c289..118e471b 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(TQWidget *parent, const char *name) +POSViewImp::POSViewImp(TTQWidget *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 764ac813..2bb0df9c 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( TQWidget *parent = 0, const char *name = 0 ); + POSViewImp( TTQWidget *parent = 0, const char *name = 0 ); public slots: void loadScript(); diff --git a/kjsembed/docs/embedding/qtembed/test.js b/kjsembed/docs/embedding/qtembed/test.js index 7a5c3bc0..f8e19742 100644 --- a/kjsembed/docs/embedding/qtembed/test.js +++ b/kjsembed/docs/embedding/qtembed/test.js @@ -1,3 +1,3 @@ -var vbox = new QVBoxLayout( appFrame ); +var vbox = new TQVBoxLayout( appFrame ); var view = Factory.loadui("view.ui", appFrame, appFrame ); view.show();
\ No newline at end of file diff --git a/kjsembed/docs/embedding/qtembed/view.ui b/kjsembed/docs/embedding/qtembed/view.ui index c714ff00..2f3eaa01 100755 --- a/kjsembed/docs/embedding/qtembed/view.ui +++ b/kjsembed/docs/embedding/qtembed/view.ui @@ -1,6 +1,6 @@ <!DOCTYPE UI><UI version="3.3" stdsetdef="1"> <class>view</class> -<widget class="QWidget"> +<widget class="TQWidget"> <property name="name"> <cstring>view</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,17 +24,17 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="QLineEdit" row="1" column="1"> + <widget class="TQLineEdit" row="1" column="1"> <property name="name"> <cstring>mSKU</cstring> </property> </widget> - <widget class="QLineEdit" row="2" column="1"> + <widget class="TQLineEdit" row="2" column="1"> <property name="name"> <cstring>mPrice</cstring> </property> </widget> - <widget class="QLabel" row="1" column="0"> + <widget class="TQLabel" row="1" column="0"> <property name="name"> <cstring>textLabel2</cstring> </property> @@ -42,7 +42,7 @@ <string>SKU:</string> </property> </widget> - <widget class="QLabel" row="2" column="0"> + <widget class="TQLabel" row="2" column="0"> <property name="name"> <cstring>textLabel3</cstring> </property> @@ -50,7 +50,7 @@ <string>Price:</string> </property> </widget> - <widget class="QLabel" row="0" column="0"> + <widget class="TQLabel" row="0" column="0"> <property name="name"> <cstring>textLabel1</cstring> </property> @@ -58,7 +58,7 @@ <string>Product:</string> </property> </widget> - <widget class="QComboBox" row="0" column="1"> + <widget class="TQComboBox" row="0" column="1"> <property name="name"> <cstring>mProduct</cstring> </property> @@ -68,7 +68,7 @@ </widget> </grid> </widget> - <widget class="QLabel"> + <widget class="TQLabel"> <property name="name"> <cstring>mImage</cstring> </property> 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 Binary files differindex 45ae1a11..a8c927b0 100644 --- a/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png +++ b/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png 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(); |