From 479f5f799523bffbcc83dff581a2299c047c6fff Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:44:01 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjsembed/jsobjectproxy.h | 56 ++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'kjsembed/jsobjectproxy.h') diff --git a/kjsembed/jsobjectproxy.h b/kjsembed/jsobjectproxy.h index b302d4ad..8e620e2a 100644 --- a/kjsembed/jsobjectproxy.h +++ b/kjsembed/jsobjectproxy.h @@ -22,9 +22,9 @@ #ifndef KJSEMBEDJSOBJECTPROXY_H #define KJSEMBEDJSOBJECTPROXY_H #include "global.h" -#include -#include -#include +#include +#include +#include #include #include @@ -41,19 +41,19 @@ class KJSEmbedPart; class JSObjectEventProxy; /** - * A JS object that provides a binding to a QObject. + * A JS object that provides a binding to a TQObject. *

Introduction

* This class defines a @ref KJS::ObjectImp that allows scripts to access - * the properties of a QObject. The scripts can also create child objects, + * the properties of a TQObject. The scripts can also create child objects, * load dialogs from .ui files created by Designer and navigate the object - * tree in a similar manner to the DCOP/QObject bridge. + * tree in a similar manner to the DCOP/TQObject bridge. *

Example Usage

* The following example creates a @ref KJS::ObjectImp that provides - * a binding to the properties of a @ref QLineEdit . This binding is + * a binding to the properties of a @ref TQLineEdit . This binding is * then used to create a property 'edit' for the object 'jsparent'. *
  *
- *   QLineEdit *edit = new QLineEdit();
+ *   TQLineEdit *edit = new TQLineEdit();
  *   KJSEmbed::JSObjectProxy *proxy = new KJSEmbed::JSObjectProxy( js, edit );
  *   jsparent.put( js->globalExec(), "edit", proxy );
  *
@@ -82,24 +82,24 @@ class KJSEMBED_EXPORT JSObjectProxy : public JSProxy
 public:
     /**
      * Create a JS binding to the target object. The binding will allow scripts to
-     * access any QObject that is descended the target and no others.
+     * access any TQObject that is descended the target and no others.
      */
-    JSObjectProxy( KJSEmbedPart *part, QObject *target );
+    JSObjectProxy( KJSEmbedPart *part, TQObject *target );
 
     /**
      * Create a JS binding to the target object. The binding will allow scripts to
-     * access any QObject that is descended from the specified root. If the specified
+     * access any TQObject that is descended from the specified root. If the specified
      * root is 0 then access is granted to all objects.
      */
-    JSObjectProxy( KJSEmbedPart *part, QObject *target, QObject *root );
+    JSObjectProxy( KJSEmbedPart *part, TQObject *target, TQObject *root );
 
     /**
      * Create a JS binding to the target object. The binding will allow scripts to
-     * access any QObject that is descended from the specified root, according to
+     * access any TQObject that is descended from the specified root, according to
      * the specified @ref JSSecurityPolicy . If the specified root is 0 then access
      * is granted to all objects.
      */
-    JSObjectProxy( KJSEmbedPart *part, QObject *target, QObject *root, const JSSecurityPolicy *sp );
+    JSObjectProxy( KJSEmbedPart *part, TQObject *target, TQObject *root, const JSSecurityPolicy *sp );
 
     virtual ~JSObjectProxy();
 
@@ -110,24 +110,24 @@ public:
     KJS::Interpreter *interpreter() const { return js; }
 
     /** Returns the root object that defines the limit of the scope of this proxy. */
-    QObject *rootObject() const { return root; }
+    TQObject *rootObject() const { return root; }
 
-    /** Returns the QObject the proxy is attached to. */
-    QObject *object() const { return obj; }
+    /** Returns the TQObject the proxy is attached to. */
+    TQObject *object() const { return obj; }
 
     /** Returns the className of the proxied object */
-    QString typeName() const { return obj->className(); }
+    TQString typeName() const { return obj->className(); }
 
-    /** Returns the associated QWidget, or 0 if the object is not a widget. */
-    QWidget *widget() const
+    /** Returns the associated TQWidget, or 0 if the object is not a widget. */
+    TQWidget *widget() const
 	{
-	    QObject *w = obj;
-	    return (w && w->isWidgetType()) ? static_cast(w) : 0;
+	    TQObject *w = obj;
+	    return (w && w->isWidgetType()) ? static_cast(w) : 0;
 	}
 
     //void *toVoidStar() { return obj; }
     //template
-    //T *toNative(){ return dynamic_cast(obj); }
+    //T *toNative(){ return dynamic_cast(obj); }
 
     /** Returns true iff the content of this proxy inherits the specified base-class. */
     bool inherits( const char *clazz ) { return obj->isA( clazz ); }
@@ -152,7 +152,7 @@ public:
     virtual KJS::UString toString( KJS::ExecState *exec ) const;
 
     /**
-     * Adds methods for traversing the QObject tree to the specified
+     * Adds methods for traversing the TQObject tree to the specified
      * @ref KJS::Object . Only QObjects descended from the root specified
      * in the constructor can be reached through JS proxies created with
      * these bindings.
@@ -180,14 +180,14 @@ protected:
 private:
     bool isAllowed( KJS::Interpreter *js ) const;
 
-    void addSlotBinding( const QCString &name, KJS::ExecState *exec, KJS::Object &object );
+    void addSlotBinding( const TQCString &name, KJS::ExecState *exec, KJS::Object &object );
 
 private:
     KJSEmbedPart *jspart;
     KJS::Interpreter *js;
-    QGuardedPtr obj;
-    QGuardedPtr root;
-    QGuardedPtr evproxy;
+    TQGuardedPtr obj;
+    TQGuardedPtr root;
+    TQGuardedPtr evproxy;
     const JSSecurityPolicy *policy;
     class JSObjectProxyPrivate *d;
     friend class Bindings::JSObjectProxyImp;
-- 
cgit v1.2.1