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 d016fa62..ca571f03 100644
--- a/qtsharp/src/bindings/static/QObject.cs
+++ b/qtsharp/src/bindings/static/QObject.cs
@@ -1,4 +1,4 @@
-// QObject.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(QObject)")]
- public class QObject : QtSupport, IDisposable {
+ //[DeclareQtSignal ("ChildDestroyed(TQObject)")]
+ public class TQObject : QtSupport, IDisposable {
- // Hold an instance of the QApplication object
- private static QApplication qapp;
+ // Hold an instance of the TQApplication object
+ private static TQApplication qapp;
private QtSignalMap csSignalMap;
private QtSignalMap cppSignalMap;
- public static QApplication 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 QObject (QObject parent, string name) : this (QNull.Instance)
+ public TQObject (TQObject parent, string name) : this (QNull.Instance)
{
qparent = parent;
if (qparent == null)
- parent = new QWidget (IntPtr.Zero);
+ parent = new TQWidget (IntPtr.Zero);
else
qparent.AddChild (this);
@@ -71,29 +71,29 @@ namespace Qt {
RegisterObject (this);
}
- public QObject (QObject parent) : this (parent, "") {}
+ public TQObject (TQObject parent) : this (parent, "") {}
- internal QObject () : this (QNull.Instance) {}
+ internal TQObject () : this (QNull.Instance) {}
- internal QObject (IntPtr ptr) : this (QNull.Instance)
+ internal TQObject (IntPtr ptr) : this (QNull.Instance)
{
rawObject = ptr;
RegisterObject (this);
}
- internal QObject (QNull dummy) : base (QNull.Instance)
+ internal TQObject (QNull dummy) : base (QNull.Instance)
{
InitSignals ();
}
// FIXME This ctor used only by QtSignal
- internal QObject (NoSignalInit dummy) : base (QNull.Instance)
+ internal TQObject (NoSignalInit dummy) : base (QNull.Instance)
{
rawObject = qt_new_QObject (IntPtr.Zero, "");
RegisterObject (this);
}
- ~QObject ()
+ ~TQObject ()
{
Dispose(false);
}
@@ -172,25 +172,25 @@ namespace Qt {
Dispose ();
}
- public QObject QtCast()
+ public TQObject QtCast()
{
string QtType = this.ClassName();
Type newType = Type.GetType( "Qt." + QtType );
object[] paramArray = { this.RawObject };
- return (QObject) Activator.CreateInstance( newType, paramArray );
+ return (TQObject) Activator.CreateInstance( newType, paramArray );
}
- public static bool Connect(QObject sender, string signal, QObject 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 (QObject sender, string signal, string member)
+ public bool Connect (TQObject sender, string signal, string member)
{
return Connect (sender, signal, this, member);
}
- public static bool Disconnect(QObject sender, string signal, QObject 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, QObject receiver, string member)
+ public bool Disconnect (string signal, TQObject receiver, string member)
{
return Disconnect(this, signal, receiver, member);
}
- public bool Disconnect (QObject 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)
{
- QString qstr = new QString (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)
{
- QString qstr = new QString (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 QMetaObject MetaObject ()
+ public TQMetaObject MetaObject ()
{
- return (QMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(QMetaObject));
+ 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 (QEvent 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 (QObject arg1, QEvent 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 QObject Child (string objName, string inheritsClass, bool recursiveSearch)
+ public TQObject Child (string objName, string inheritsClass, bool recursiveSearch)
{
- return (QObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(QObject));
+ 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 QObjectList Children ()
+ public TQObjectList Children ()
{
- return (QObjectList)LookupObject (qt_QObject_children (rawObject), typeof(QObjectList));
+ 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 QObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch)
+ public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch)
{
- return (QObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(QObjectList));
+ 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 (QObject 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 (QObject 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 (QObject 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 (QObject 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, QVariant 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 QVariant Property (string name)
+ public TQVariant Property (string name)
{
- return (QVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(QVariant));
+ 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 QObject Parent ()
+ public TQObject Parent ()
{
- return (QObject)LookupObject (qt_QObject_parent (rawObject), typeof(QObject));
+ 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 QObjectList ObjectTrees ()
+ public static TQObjectList ObjectTrees ()
{
- return (QObjectList)LookupObject (qt_QObject_objectTrees (), typeof(QObjectList));
+ 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 (QObject sender, int signal_index, QObject 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 (QEvent 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 QConnectionList Receivers (string signal)
+ protected TQConnectionList Receivers (string signal)
{
- return (QConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(QConnectionList));
+ 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 QConnectionList Receivers (int signal)
+ protected TQConnectionList Receivers (int signal)
{
- return (QConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(QConnectionList));
+ 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 QString (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 (QConnectionList 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 QObject Sender ()
+ protected TQObject Sender ()
{
- return (QObject)LookupObject (qt_QObject_sender (rawObject), typeof(QObject));
+ 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, QObject 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 QCString NormalizeSignalSlot (string signalSlot)
+ protected static TQCString NormalizeSignalSlot (string signalSlot)
{
- return (QCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(QCString));
+ return (TQCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(TQCString));
}
*/
- public QObject Child (string objName)
+ public TQObject Child (string objName)
{
return Child(objName, null);
}
- public QObject Child (string objName, string inheritsClass)
+ public TQObject Child (string objName, string inheritsClass)
{
return Child(objName, inheritsClass, true);
}
- public QObjectList QueryList ()
+ public TQObjectList QueryList ()
{
return QueryList("");
}
- public QObjectList QueryList (string inheritsClass)
+ public TQObjectList QueryList (string inheritsClass)
{
return QueryList(inheritsClass, "");
}
- public QObjectList QueryList (string inheritsClass, string objName)
+ public TQObjectList QueryList (string inheritsClass, string objName)
{
return QueryList(inheritsClass, objName, true);
}
- public QObjectList QueryList (string inheritsClass, string objName, bool regexpMatch)
+ public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch)
{
return QueryList(inheritsClass, objName, regexpMatch, true);
}