diff options
Diffstat (limited to 'qtsharp/src/bindings/static/QObject.cs')
-rw-r--r-- | qtsharp/src/bindings/static/QObject.cs | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/qtsharp/src/bindings/static/QObject.cs b/qtsharp/src/bindings/static/QObject.cs index 351db720..2df22d50 100644 --- a/qtsharp/src/bindings/static/QObject.cs +++ b/qtsharp/src/bindings/static/QObject.cs @@ -1,4 +1,4 @@ -// TTQObject.cs - A Qt to C# binding. +// TQObject.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -35,15 +35,15 @@ namespace Qt { using System.Collections; using System.Runtime.InteropServices; - //[DeclareQtSignal ("ChildDestroyed(TTQObject)")] - public class TTQObject : QtSupport, IDisposable { + //[DeclareQtSignal ("ChildDestroyed(TQObject)")] + public class TQObject : QtSupport, IDisposable { - // Hold an instance of the TTQApplication object - private static TTQApplication qapp; + // Hold an instance of the TQApplication object + private static TQApplication qapp; private QtSignalMap csSignalMap; private QtSignalMap cppSignalMap; - public static TTQApplication qApp { + public static TQApplication qApp { get {return qapp;} set {qapp = value;} } @@ -58,12 +58,12 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QObject (IntPtr parent, string name); - public TTQObject (TTQObject parent, string name) : this (TQNull.Instance) + public TQObject (TQObject parent, string name) : this (TQNull.Instance) { qparent = parent; if (qparent == null) - parent = new TTQWidget (IntPtr.Zero); + parent = new TQWidget (IntPtr.Zero); else qparent.AddChild (this); @@ -71,29 +71,29 @@ namespace Qt { RegisterObject (this); } - public TTQObject (TTQObject parent) : this (parent, "") {} + public TQObject (TQObject parent) : this (parent, "") {} - internal TTQObject () : this (TQNull.Instance) {} + internal TQObject () : this (TQNull.Instance) {} - internal TTQObject (IntPtr ptr) : this (TQNull.Instance) + internal TQObject (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject (this); } - internal TTQObject (TQNull dummy) : base (TQNull.Instance) + internal TQObject (TQNull dummy) : base (TQNull.Instance) { InitSignals (); } // FIXME This ctor used only by QtSignal - internal TTQObject (NoSignalInit dummy) : base (TQNull.Instance) + internal TQObject (NoSignalInit dummy) : base (TQNull.Instance) { rawObject = qt_new_QObject (IntPtr.Zero, ""); RegisterObject (this); } - ~TTQObject () + ~TQObject () { Dispose(false); } @@ -172,25 +172,25 @@ namespace Qt { Dispose (); } - public TTQObject QtCast() + public TQObject QtCast() { string QtType = this.ClassName(); Type newType = Type.GetType( "Qt." + QtType ); object[] paramArray = { this.RawObject }; - return (TTQObject) Activator.CreateInstance( newType, paramArray ); + return (TQObject) Activator.CreateInstance( newType, paramArray ); } - public static bool Connect(TTQObject sender, string signal, TTQObject receiver, string slot) + public static bool Connect(TQObject sender, string signal, TQObject receiver, string slot) { return QtSignal.Connect(sender, signal, receiver, slot); } - public bool Connect (TTQObject sender, string signal, string member) + public bool Connect (TQObject sender, string signal, string member) { return Connect (sender, signal, this, member); } - public static bool Disconnect(TTQObject sender, string signal, TTQObject receiver, string slot) + public static bool Disconnect(TQObject sender, string signal, TQObject receiver, string slot) { return QtSignal.Disconnect(sender, signal, receiver, slot); } @@ -200,12 +200,12 @@ namespace Qt { return Disconnect (this, null, null, null); } - public bool Disconnect (string signal, TTQObject receiver, string member) + public bool Disconnect (string signal, TQObject receiver, string member) { return Disconnect(this, signal, receiver, member); } - public bool Disconnect (TTQObject receiver, string slot) + public bool Disconnect (TQObject receiver, string slot) { return Disconnect (this, null, receiver, slot); } @@ -240,7 +240,7 @@ namespace Qt { private static extern IntPtr qt_QObject_tr (IntPtr raw, string arg1, string arg2); public string Tr (string arg1, string arg2) { - TTQString qstr = new TTQString (qt_QObject_tr (rawObject, arg1, arg2)); + TQString qstr = new TQString (qt_QObject_tr (rawObject, arg1, arg2)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -250,7 +250,7 @@ namespace Qt { private static extern IntPtr qt_QObject_trUtf8 (IntPtr raw, string arg1, string arg2); public string TrUtf8 (string arg1, string arg2) { - TTQString qstr = new TTQString (qt_QObject_trUtf8 (rawObject, arg1, arg2)); + TQString qstr = new TQString (qt_QObject_trUtf8 (rawObject, arg1, arg2)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -258,21 +258,21 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_metaObject (IntPtr raw); - public TTQMetaObject MetaObject () + public TQMetaObject MetaObject () { - return (TTQMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(TTQMetaObject)); + return (TQMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(TQMetaObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_event (IntPtr raw, IntPtr arg1); - public bool Q_event (TTQEvent arg1) + public bool Q_event (TQEvent arg1) { return qt_QObject_event (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_eventFilter (IntPtr raw, IntPtr arg1, IntPtr arg2); - public bool EventFilter (TTQObject arg1, TTQEvent arg2) + public bool EventFilter (TQObject arg1, TQEvent arg2) { return qt_QObject_eventFilter (rawObject, arg1.RawObject, arg2.RawObject); } @@ -363,49 +363,49 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_child (IntPtr raw, string objName, string inheritsClass, bool recursiveSearch); - public TTQObject Child (string objName, string inheritsClass, bool recursiveSearch) + public TQObject Child (string objName, string inheritsClass, bool recursiveSearch) { - return (TTQObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(TTQObject)); + return (TQObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(TQObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_children (IntPtr raw); - public TTQObjectList Children () + public TQObjectList Children () { - return (TTQObjectList)LookupObject (qt_QObject_children (rawObject), typeof(TTQObjectList)); + return (TQObjectList)LookupObject (qt_QObject_children (rawObject), typeof(TQObjectList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_queryList (IntPtr raw, string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch); - public TTQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch) + public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch) { - return (TTQObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(TTQObjectList)); + return (TQObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(TQObjectList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_insertChild (IntPtr raw, IntPtr arg1); - public void InsertChild (TTQObject arg1) + public void InsertChild (TQObject arg1) { qt_QObject_insertChild (rawObject, arg1.RawObject); } /*[DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_removeChild (IntPtr raw, IntPtr arg1); - public void RemoveChild (TTQObject arg1) + public void RemoveChild (TQObject arg1) { qt_QObject_removeChild (rawObject, arg1.RawObject); }*/ [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_installEventFilter (IntPtr raw, IntPtr arg1); - public void InstallEventFilter (TTQObject arg1) + public void InstallEventFilter (TQObject arg1) { qt_QObject_installEventFilter (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_removeEventFilter (IntPtr raw, IntPtr arg1); - public void RemoveEventFilter (TTQObject arg1) + public void RemoveEventFilter (TQObject arg1) { qt_QObject_removeEventFilter (rawObject, arg1.RawObject); } @@ -426,23 +426,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_setProperty (IntPtr raw, string name, IntPtr value); - public bool SetProperty (string name, TTQVariant value) + public bool SetProperty (string name, TQVariant value) { return qt_QObject_setProperty (rawObject, name, value.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_property (IntPtr raw, string name); - public TTQVariant Property (string name) + public TQVariant Property (string name) { - return (TTQVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(TTQVariant)); + return (TQVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(TQVariant)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_parent (IntPtr raw); - public TTQObject Parent () + public TQObject Parent () { - return (TTQObject)LookupObject (qt_QObject_parent (rawObject), typeof(TTQObject)); + return (TQObject)LookupObject (qt_QObject_parent (rawObject), typeof(TQObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -454,15 +454,15 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_objectTrees (); - public static TTQObjectList ObjectTrees () + public static TQObjectList ObjectTrees () { - return (TTQObjectList)LookupObject (qt_QObject_objectTrees (), typeof(TTQObjectList)); + return (TQObjectList)LookupObject (qt_QObject_objectTrees (), typeof(TQObjectList)); } /*FIXME [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_connectInternal (IntPtr sender, int signal_index, IntPtr receiver, int membcode, int member_index); - public static void ConnectInternal (TTQObject sender, int signal_index, TTQObject receiver, int membcode, int member_index) + public static void ConnectInternal (TQObject sender, int signal_index, TQObject receiver, int membcode, int member_index) { qt_QObject_connectInternal (sender.RawObject, signal_index, receiver.RawObject, membcode, member_index); } @@ -470,23 +470,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_activate_filters (IntPtr raw, IntPtr arg1); - protected bool Activate_filters (TTQEvent arg1) + protected bool Activate_filters (TQEvent arg1) { return qt_QObject_activate_filters (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_receivers (IntPtr raw, string signal); - protected TTQConnectionList Receivers (string signal) + protected TQConnectionList Receivers (string signal) { - return (TTQConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(TTQConnectionList)); + return (TQConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(TQConnectionList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_receivers1 (IntPtr raw, int signal); - protected TTQConnectionList Receivers (int signal) + protected TQConnectionList Receivers (int signal) { - return (TTQConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(TTQConnectionList)); + return (TQConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(TQConnectionList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -514,7 +514,7 @@ namespace Qt { private static extern void qt_QObject_activate_signal3 (IntPtr raw, int signal, IntPtr arg1); protected void Activate_signal (int signal, string arg1) { - qt_QObject_activate_signal3 (rawObject, signal, new TTQString (arg1).RawObject); + qt_QObject_activate_signal3 (rawObject, signal, new TQString (arg1).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -527,7 +527,7 @@ namespace Qt { /* [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_activate_signal4 (IntPtr raw, IntPtr clist, IntPtr o); - protected void Activate_signal (TTQConnectionList clist, IntPtr o) + protected void Activate_signal (TQConnectionList clist, IntPtr o) { qt_QObject_activate_signal4 (rawObject, clist.RawObject, o); } @@ -535,9 +535,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_sender (IntPtr raw); - protected TTQObject Sender () + protected TQObject Sender () { - return (TTQObject)LookupObject (qt_QObject_sender (rawObject), typeof(TTQObject)); + return (TQObject)LookupObject (qt_QObject_sender (rawObject), typeof(TQObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -556,7 +556,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_checkConnectArgs (IntPtr raw, string signal, IntPtr receiver, string member); - protected bool CheckConnectArgs (string signal, TTQObject receiver, string member) + protected bool CheckConnectArgs (string signal, TQObject receiver, string member) { return qt_QObject_checkConnectArgs (rawObject, signal, receiver.RawObject, member); } @@ -564,38 +564,38 @@ namespace Qt { /* [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_normalizeSignalSlot (string signalSlot); - protected static TTQCString NormalizeSignalSlot (string signalSlot) + protected static TQCString NormalizeSignalSlot (string signalSlot) { - return (TTQCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(TTQCString)); + return (TQCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(TQCString)); } */ - public TTQObject Child (string objName) + public TQObject Child (string objName) { return Child(objName, null); } - public TTQObject Child (string objName, string inheritsClass) + public TQObject Child (string objName, string inheritsClass) { return Child(objName, inheritsClass, true); } - public TTQObjectList QueryList () + public TQObjectList QueryList () { return QueryList(""); } - public TTQObjectList QueryList (string inheritsClass) + public TQObjectList QueryList (string inheritsClass) { return QueryList(inheritsClass, ""); } - public TTQObjectList QueryList (string inheritsClass, string objName) + public TQObjectList QueryList (string inheritsClass, string objName) { return QueryList(inheritsClass, objName, true); } - public TTQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch) + public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch) { return QueryList(inheritsClass, objName, regexpMatch, true); } |