From 9ba04742771370f59740e32e11c5f3a1e6a1b70a Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 15:55:57 -0600 Subject: Initial TQt conversion --- kjsembed/docs/embedding/qtembed/main.cpp | 2 +- kjsembed/docs/embedding/qtembed/posviewbase.ui | 20 +++++++++---------- kjsembed/docs/embedding/qtembed/posviewimp.cpp | 2 +- kjsembed/docs/embedding/qtembed/posviewimp.h | 2 +- kjsembed/docs/embedding/qtembed/test.js | 2 +- kjsembed/docs/embedding/qtembed/view.ui | 18 ++++++++--------- kjsembed/docs/embedding/simple-embed/README | 2 +- kjsembed/docs/embedding/simple-embed/demo.html | 6 +++--- kjsembed/docs/embedding/simple-embed/embedview.ui | 14 ++++++------- .../docs/embedding/simple-embed/embedviewimp.cpp | 22 ++++++++++----------- .../docs/embedding/simple-embed/embedviewimp.h | 8 ++++---- .../embedding/simple-embed/hi32-app-embedjs.png | Bin 2749 -> 2750 bytes kjsembed/docs/embedding/simple-embed/test.js | 12 +++++------ 13 files changed, 55 insertions(+), 55 deletions(-) (limited to 'kjsembed/docs/embedding') 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 @@ POSViewBase - + POSViewBase @@ -22,7 +22,7 @@ unnamed - + layout3 @@ -30,7 +30,7 @@ unnamed - + appFrame @@ -49,7 +49,7 @@ Raised - + layout2 @@ -57,7 +57,7 @@ unnamed - + textLabel2 @@ -65,7 +65,7 @@ Recipt - + recipt @@ -85,7 +85,7 @@ - + Layout1 @@ -99,7 +99,7 @@ 6 - + buttonHelp @@ -130,7 +130,7 @@ - + buttonOk @@ -147,7 +147,7 @@ true - + buttonCancel 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 #include -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 @@ view - + view @@ -16,7 +16,7 @@ unnamed - + layout1 @@ -24,17 +24,17 @@ unnamed - + mSKU - + mPrice - + textLabel2 @@ -42,7 +42,7 @@ SKU: - + textLabel3 @@ -50,7 +50,7 @@ Price: - + textLabel1 @@ -58,7 +58,7 @@ Product: - + mProduct @@ -68,7 +68,7 @@ - + mImage 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.
  • Document Conventions
    Explains the typographical conventions used by the documents.
  • -
  • KJSEmbed and QSA
    - Discusses the differences between KJSEmbed and QSA.
  • +
  • KJSEmbed and TQSA
    + Discusses the differences between KJSEmbed and TQSA.
  • References

    @@ -83,7 +83,7 @@ who want to write scripts. A tutorial on how to implement inheritence in JavaScript.
  • Qt Script for Applications Documentation
    - The documentation for QSA, this is Trolltech's ECMAScript binding + The documentation for TQSA, this is Trolltech's ECMAScript binding for Qt.
  • 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 @@ EmbedView - + Form1 @@ -16,7 +16,7 @@ unnamed - + layout1 @@ -24,7 +24,7 @@ unnamed - + textLabel3 @@ -42,7 +42,7 @@ m_name - + textLabel2 @@ -50,7 +50,7 @@ Department: - + textLabel1 @@ -65,7 +65,7 @@ - + m_customOptions @@ -81,7 +81,7 @@ Custom Options - + layout3 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 #include -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 personalData = KJSEmbed::convertToVariant(m_part->globalExec(), val).toMap(); - TQDate birthday = personalData["birthday"].toDate(); - TQColor eyecolor = personalData["eyeColor"].toColor(); - TQString notes = personalData["notes"].toString(); + TTQMap 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 returnMap; + TTQMap 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 map = val.toMap(); + TTQMap 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 Binary files a/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png and b/kjsembed/docs/embedding/simple-embed/hi32-app-embedjs.png 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(); -- cgit v1.2.1