summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/bindings/static/QObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'qtsharp/src/bindings/static/QObject.cs')
-rw-r--r--qtsharp/src/bindings/static/QObject.cs126
1 files changed, 63 insertions, 63 deletions
diff --git a/qtsharp/src/bindings/static/QObject.cs b/qtsharp/src/bindings/static/QObject.cs
index ca571f03..351db720 100644
--- a/qtsharp/src/bindings/static/QObject.cs
+++ b/qtsharp/src/bindings/static/QObject.cs
@@ -1,4 +1,4 @@
-// TQObject.cs - A Qt to C# binding.
+// TTQObject.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(TQObject)")]
- public class TQObject : QtSupport, IDisposable {
+ //[DeclareQtSignal ("ChildDestroyed(TTQObject)")]
+ public class TTQObject : QtSupport, IDisposable {
- // Hold an instance of the TQApplication object
- private static TQApplication qapp;
+ // Hold an instance of the TTQApplication object
+ private static TTQApplication qapp;
private QtSignalMap csSignalMap;
private QtSignalMap cppSignalMap;
- public static TQApplication qApp {
+ public static TTQApplication 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 TQObject (TQObject parent, string name) : this (QNull.Instance)
+ public TTQObject (TTQObject parent, string name) : this (TQNull.Instance)
{
qparent = parent;
if (qparent == null)
- parent = new TQWidget (IntPtr.Zero);
+ parent = new TTQWidget (IntPtr.Zero);
else
qparent.AddChild (this);
@@ -71,29 +71,29 @@ namespace Qt {
RegisterObject (this);
}
- public TQObject (TQObject parent) : this (parent, "") {}
+ public TTQObject (TTQObject parent) : this (parent, "") {}
- internal TQObject () : this (QNull.Instance) {}
+ internal TTQObject () : this (TQNull.Instance) {}
- internal TQObject (IntPtr ptr) : this (QNull.Instance)
+ internal TTQObject (IntPtr ptr) : this (TQNull.Instance)
{
rawObject = ptr;
RegisterObject (this);
}
- internal TQObject (QNull dummy) : base (QNull.Instance)
+ internal TTQObject (TQNull dummy) : base (TQNull.Instance)
{
InitSignals ();
}
// FIXME This ctor used only by QtSignal
- internal TQObject (NoSignalInit dummy) : base (QNull.Instance)
+ internal TTQObject (NoSignalInit dummy) : base (TQNull.Instance)
{
rawObject = qt_new_QObject (IntPtr.Zero, "");
RegisterObject (this);
}
- ~TQObject ()
+ ~TTQObject ()
{
Dispose(false);
}
@@ -172,25 +172,25 @@ namespace Qt {
Dispose ();
}
- public TQObject QtCast()
+ public TTQObject QtCast()
{
string QtType = this.ClassName();
Type newType = Type.GetType( "Qt." + QtType );
object[] paramArray = { this.RawObject };
- return (TQObject) Activator.CreateInstance( newType, paramArray );
+ return (TTQObject) Activator.CreateInstance( newType, paramArray );
}
- public static bool Connect(TQObject sender, string signal, TQObject receiver, string slot)
+ public static bool Connect(TTQObject sender, string signal, TTQObject receiver, string slot)
{
return QtSignal.Connect(sender, signal, receiver, slot);
}
- public bool Connect (TQObject sender, string signal, string member)
+ public bool Connect (TTQObject sender, string signal, string member)
{
return Connect (sender, signal, this, member);
}
- public static bool Disconnect(TQObject sender, string signal, TQObject receiver, string slot)
+ public static bool Disconnect(TTQObject sender, string signal, TTQObject 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, TQObject receiver, string member)
+ public bool Disconnect (string signal, TTQObject receiver, string member)
{
return Disconnect(this, signal, receiver, member);
}
- public bool Disconnect (TQObject receiver, string slot)
+ public bool Disconnect (TTQObject 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)
{
- TQString qstr = new TQString (qt_QObject_tr (rawObject, arg1, arg2));
+ TTQString qstr = new TTQString (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)
{
- TQString qstr = new TQString (qt_QObject_trUtf8 (rawObject, arg1, arg2));
+ TTQString qstr = new TTQString (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 TQMetaObject MetaObject ()
+ public TTQMetaObject MetaObject ()
{
- return (TQMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(TQMetaObject));
+ return (TTQMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(TTQMetaObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern bool qt_QObject_event (IntPtr raw, IntPtr arg1);
- public bool Q_event (TQEvent arg1)
+ public bool Q_event (TTQEvent 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 (TQObject arg1, TQEvent arg2)
+ public bool EventFilter (TTQObject arg1, TTQEvent 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 TQObject Child (string objName, string inheritsClass, bool recursiveSearch)
+ public TTQObject Child (string objName, string inheritsClass, bool recursiveSearch)
{
- return (TQObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(TQObject));
+ return (TTQObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(TTQObject));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_children (IntPtr raw);
- public TQObjectList Children ()
+ public TTQObjectList Children ()
{
- return (TQObjectList)LookupObject (qt_QObject_children (rawObject), typeof(TQObjectList));
+ return (TTQObjectList)LookupObject (qt_QObject_children (rawObject), typeof(TTQObjectList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_queryList (IntPtr raw, string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch);
- public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch)
+ public TTQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch)
{
- return (TQObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(TQObjectList));
+ return (TTQObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(TTQObjectList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern void qt_QObject_insertChild (IntPtr raw, IntPtr arg1);
- public void InsertChild (TQObject arg1)
+ public void InsertChild (TTQObject 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 (TQObject arg1)
+ public void RemoveChild (TTQObject 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 (TQObject arg1)
+ public void InstallEventFilter (TTQObject 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 (TQObject arg1)
+ public void RemoveEventFilter (TTQObject 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, TQVariant value)
+ public bool SetProperty (string name, TTQVariant 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 TQVariant Property (string name)
+ public TTQVariant Property (string name)
{
- return (TQVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(TQVariant));
+ return (TTQVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(TTQVariant));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_parent (IntPtr raw);
- public TQObject Parent ()
+ public TTQObject Parent ()
{
- return (TQObject)LookupObject (qt_QObject_parent (rawObject), typeof(TQObject));
+ return (TTQObject)LookupObject (qt_QObject_parent (rawObject), typeof(TTQObject));
}
[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 TQObjectList ObjectTrees ()
+ public static TTQObjectList ObjectTrees ()
{
- return (TQObjectList)LookupObject (qt_QObject_objectTrees (), typeof(TQObjectList));
+ return (TTQObjectList)LookupObject (qt_QObject_objectTrees (), typeof(TTQObjectList));
}
/*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 (TQObject sender, int signal_index, TQObject receiver, int membcode, int member_index)
+ public static void ConnectInternal (TTQObject sender, int signal_index, TTQObject 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 (TQEvent arg1)
+ protected bool Activate_filters (TTQEvent 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 TQConnectionList Receivers (string signal)
+ protected TTQConnectionList Receivers (string signal)
{
- return (TQConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(TQConnectionList));
+ return (TTQConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(TTQConnectionList));
}
[DllImport("libqtc", CharSet=CharSet.Ansi)]
private static extern IntPtr qt_QObject_receivers1 (IntPtr raw, int signal);
- protected TQConnectionList Receivers (int signal)
+ protected TTQConnectionList Receivers (int signal)
{
- return (TQConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(TQConnectionList));
+ return (TTQConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(TTQConnectionList));
}
[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 TQString (arg1).RawObject);
+ qt_QObject_activate_signal3 (rawObject, signal, new TTQString (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 (TQConnectionList clist, IntPtr o)
+ protected void Activate_signal (TTQConnectionList 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 TQObject Sender ()
+ protected TTQObject Sender ()
{
- return (TQObject)LookupObject (qt_QObject_sender (rawObject), typeof(TQObject));
+ return (TTQObject)LookupObject (qt_QObject_sender (rawObject), typeof(TTQObject));
}
[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, TQObject receiver, string member)
+ protected bool CheckConnectArgs (string signal, TTQObject 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 TQCString NormalizeSignalSlot (string signalSlot)
+ protected static TTQCString NormalizeSignalSlot (string signalSlot)
{
- return (TQCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(TQCString));
+ return (TTQCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(TTQCString));
}
*/
- public TQObject Child (string objName)
+ public TTQObject Child (string objName)
{
return Child(objName, null);
}
- public TQObject Child (string objName, string inheritsClass)
+ public TTQObject Child (string objName, string inheritsClass)
{
return Child(objName, inheritsClass, true);
}
- public TQObjectList QueryList ()
+ public TTQObjectList QueryList ()
{
return QueryList("");
}
- public TQObjectList QueryList (string inheritsClass)
+ public TTQObjectList QueryList (string inheritsClass)
{
return QueryList(inheritsClass, "");
}
- public TQObjectList QueryList (string inheritsClass, string objName)
+ public TTQObjectList QueryList (string inheritsClass, string objName)
{
return QueryList(inheritsClass, objName, true);
}
- public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch)
+ public TTQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch)
{
return QueryList(inheritsClass, objName, regexpMatch, true);
}