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/design.h | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/design.h')
-rw-r--r-- | kjsembed/design.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kjsembed/design.h b/kjsembed/design.h index cf156222..e8bdbbc0 100644 --- a/kjsembed/design.h +++ b/kjsembed/design.h @@ -25,7 +25,7 @@ * The KJSEmbed library provides a framework that makes it easy for * applications to embed KJS, the KDE JavaScript interpreter. The * facilities available include a JS console widget, a dialog loader - * and a binding between JS and the properties and slots of QObjects. + * and a binding between JS and the properties and slots of TQObjects. * * @section classes Important Classes * @@ -38,7 +38,7 @@ * A widget that provides an interactive JS console. * * @ref KJSEmbed::JSObjectProxy : - * A Javascript object that can access the properties of a TQObject, + * A Javascript object that can access the properties of a TTQObject, * * @ref KJSEmbed::SecurityPolicy : * Defines a security policy for @ref JSObjectProxy. @@ -64,19 +64,19 @@ * KJSEmbed::JSConsoleWidget *console = js->view(); * </pre> * - * @section proxy Publishing QObjects + * @section proxy Publishing TQObjects * - * KJSEmbed allows applications to make arbitrary QObjects visible to a + * KJSEmbed allows applications to make arbitrary TQObjects visible to a * Javascript interpreter. The binding itself is provided by the @ref JSProxyObject * class, but is more easily used via the addObject(...) methods of @ref KJSEmbedPart. * * The following code shows how easy it is to make an object available for - * scripting. It creates a TQVBox containing two QLabels then makes them visible + * scripting. It creates a TTQVBox containing two TQLabels then makes them visible * to KJSEmbed: * <pre> - * TQVBox *toplevel = new TQVBox( 0, "box" ); - * TQLabel *title = new TQLabel( "Some Title", toplevel, "title"); - * TQLabel *main = new TQLabel( "Some text, more text.", toplevel, "main" ); + * TTQVBox *toplevel = new TTQVBox( 0, "box" ); + * TTQLabel *title = new TTQLabel( "Some Title", toplevel, "title"); + * TTQLabel *main = new TTQLabel( "Some text, more text.", toplevel, "main" ); * * js->addObject( title ); * js->addObject( main, "text" ); @@ -92,18 +92,18 @@ * </pre> * The script above would set the text of the label to 'Hello World'. * - * The slots of a TQObject bound to the interpreter are made available to + * The slots of a TTQObject bound to the interpreter are made available to * scripts as if they normal methods. In the example above, we could conceal * the label 'main' entirely by calling its hide() slot: * <pre> * main.hide() * </pre> * - * @section tree Access To the TQObject Tree + * @section tree Access To the TTQObject Tree * * As well as providing script access to an individual widget, KJSEmbed * allows scripts to walk the object tree and access others. If we - * modified the previous example to publish the QBox widget 'toplevel' as + * modified the previous example to publish the TQBox widget 'toplevel' as * follows: * <pre> * js->addObject( toplevel, "window" ); @@ -134,7 +134,7 @@ * To embed the interpreter we can just create a new KJSEmbed part. * @skipline m_part * To publish the objects we can then call @ref KJSEmbed::KJSEmbedPart::addObject on our part. - * This will then add any TQObject based class the the global scope of the + * This will then add any TTQObject based class the the global scope of the * javascript interperter. * @skipline addObject * Once you have your objects published you can then execute javascript code from a file. @@ -146,12 +146,12 @@ * @until callMethod * Any arguments that you wish to pass into the javascript method are contained in the * @ref KJS::List. This is just a list of @ref KJS::Value objects and can be created from - * QVariants or from custom @ref KJS::Object based classes. + * TQVariants or from custom @ref KJS::Object based classes. * Once you have the data back from the method you can convert it easily from the @ref KJS::Value - * type to a TQVariant with the @ref KJSEmbed::convertToVariant method. + * type to a TTQVariant with the @ref KJSEmbed::convertToVariant method. * @line personalData * @until notes: - * Complex arrays or @ref KJS::Objects are transparently converted to TQVariant::Map types so + * Complex arrays or @ref KJS::Objects are transparently converted to TTQVariant::Map types so * they can easily be manipulated from C++. * The KJSEmbed::console is also easy to add to applications. An example of a method that * will toggle the console is below. |