summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/bindings/static/QtSignal.cs
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /qtsharp/src/bindings/static/QtSignal.cs
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'qtsharp/src/bindings/static/QtSignal.cs')
-rw-r--r--qtsharp/src/bindings/static/QtSignal.cs140
1 files changed, 70 insertions, 70 deletions
diff --git a/qtsharp/src/bindings/static/QtSignal.cs b/qtsharp/src/bindings/static/QtSignal.cs
index 0889f3b0..b48bcf97 100644
--- a/qtsharp/src/bindings/static/QtSignal.cs
+++ b/qtsharp/src/bindings/static/QtSignal.cs
@@ -28,7 +28,7 @@ namespace Qt {
using System.Runtime.InteropServices;
using System.Reflection;
- internal class QtSignal: TQObject, IDisposable {
+ internal class QtSignal: TTQObject, IDisposable {
internal static bool traceConnects;
static QtSignal ()
@@ -36,7 +36,7 @@ namespace Qt {
traceConnects = false;
}
- private TQObject sender;
+ private TTQObject sender;
private string signal;
private string name;
private string args;
@@ -47,7 +47,7 @@ namespace Qt {
get { return MakeSigId(sender, signal); }
}
- public TQObject Sender {
+ public TTQObject Sender {
get { return sender; }
}
@@ -75,7 +75,7 @@ namespace Qt {
get { return slots; }
}
- public QtSignal (TQObject sender, string signal): base (NoSignalInit.Instance)
+ public QtSignal (TTQObject sender, string signal): base (NoSignalInit.Instance)
{
this.sender = sender;
this.signal = signal;
@@ -101,7 +101,7 @@ namespace Qt {
return sender.CsSignalMap.Contains(signal);
}
- internal static bool Connect(TQObject sender, string signal, TQObject receiver, string slot)
+ internal static bool Connect(TTQObject sender, string signal, TTQObject receiver, string slot)
{
if (IsSlot(signal)) {
return false;
@@ -114,7 +114,7 @@ namespace Qt {
return ConnectSignalToSlot(sender, NormalizeParam(signal), receiver, NormalizeParam(slot));
}
- private static bool ConnectSignalToSlot(TQObject sender, string signal, TQObject receiver, string slot)
+ private static bool ConnectSignalToSlot(TTQObject sender, string signal, TTQObject receiver, string slot)
{
QtSignal sigobj;
QtSlot slotobj = new QtSlot(receiver, slot);
@@ -188,82 +188,82 @@ namespace Qt {
del = Delegate.CreateDelegate (typeof (del_double), receiver, slotobj.Name);
slotobj.WrapperPtr = csharp_connect_double (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del);
break;
- case "(TQString)":
- realsignal = sigobj.Name + "(const TQString&)";
+ case "(TTQString)":
+ realsignal = sigobj.Name + "(const TTQString&)";
Console.WriteLine("Connecting signal, sigobj.Name = {0}, realsignal = {1}",
sigobj.Name, realsignal);
del = Delegate.CreateDelegate (typeof (del_QString), slotobj, "SlotBridge_QString");
slotobj.WrapperPtr = csharp_connect_QString (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQDockWindow)":
- realsignal = sigobj.Name + "(TQDockWindow*)";
+ case "(TTQDockWindow)":
+ realsignal = sigobj.Name + "(TTQDockWindow*)";
del = Delegate.CreateDelegate (typeof (del_QDockWindow), slotobj, "SlotBridge_QDockWindow");
slotobj.WrapperPtr = csharp_connect_QDockWindow (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQDropEvent)":
- realsignal = sigobj.Name + "(TQDropEvent*)";
+ case "(TTQDropEvent)":
+ realsignal = sigobj.Name + "(TTQDropEvent*)";
del = Delegate.CreateDelegate (typeof (del_QDropEvent), slotobj, "SlotBridge_QDropEvent");
slotobj.WrapperPtr = csharp_connect_QDropEvent (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQDropEvent,TQListViewItem)":
- realsignal = sigobj.Name + "(TQDropEvent*,TQListViewItem*)";
- del = Delegate.CreateDelegate (typeof (del_QDropEventQListViewItem), slotobj, "SlotBridge_QDropEventQListViewItem");
- slotobj.WrapperPtr = csharp_connect_QDropEventQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
+ case "(TTQDropEvent,TTQListViewItem)":
+ realsignal = sigobj.Name + "(TTQDropEvent*,TTQListViewItem*)";
+ del = Delegate.CreateDelegate (typeof (del_QDropEventTQListViewItem), slotobj, "SlotBridge_QDropEventTQListViewItem");
+ slotobj.WrapperPtr = csharp_connect_QDropEventTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQIconViewItem)":
- realsignal = sigobj.Name + "(TQIconViewItem*)";
+ case "(TTQIconViewItem)":
+ realsignal = sigobj.Name + "(TTQIconViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QIconViewItem), slotobj, "SlotBridge_QIconViewItem");
slotobj.WrapperPtr = csharp_connect_QIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQListBoxItem)":
- realsignal = sigobj.Name + "(TQListBoxItem*)";
+ case "(TTQListBoxItem)":
+ realsignal = sigobj.Name + "(TTQListBoxItem*)";
del = Delegate.CreateDelegate (typeof (del_QListBoxItem), slotobj, "SlotBridge_QListBoxItem");
slotobj.WrapperPtr = csharp_connect_QListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQListViewItem)":
- realsignal = sigobj.Name + "(TQListViewItem*)";
+ case "(TTQListViewItem)":
+ realsignal = sigobj.Name + "(TTQListViewItem*)";
del = Delegate.CreateDelegate (typeof (del_QListViewItem), slotobj, "SlotBridge_QListViewItem");
slotobj.WrapperPtr = csharp_connect_QListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQListViewItem,TQListViewItem)":
- realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*)";
- del = Delegate.CreateDelegate (typeof (del_QListViewItemQListViewItem), slotobj, "SlotBridge_QListViewItemQListViewItem");
- slotobj.WrapperPtr = csharp_connect_QListViewItemQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
+ case "(TTQListViewItem,TTQListViewItem)":
+ realsignal = sigobj.Name + "(TTQListViewItem*,TTQListViewItem*)";
+ del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItem");
+ slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQListViewItem,TQListViewItem,TQListViewItem)":
- realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*,TQListViewItem*)";
- del = Delegate.CreateDelegate (typeof (del_QListViewItemQListViewItemQListViewItem), slotobj, "SlotBridge_QListViewItemQListViewItemQListViewItem");
- slotobj.WrapperPtr = csharp_connect_QListViewItemQListViewItemQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
+ case "(TTQListViewItem,TTQListViewItem,TTQListViewItem)":
+ realsignal = sigobj.Name + "(TTQListViewItem*,TTQListViewItem*,TTQListViewItem*)";
+ del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItemTQListViewItem");
+ slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItemTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQNetworkOperation)":
- realsignal = sigobj.Name + "(TQNetworkOperation*)";
+ case "(TTQNetworkOperation)":
+ realsignal = sigobj.Name + "(TTQNetworkOperation*)";
del = Delegate.CreateDelegate (typeof (del_QNetworkOperation), slotobj, "SlotBridge_QNetworkOperation");
slotobj.WrapperPtr = csharp_connect_QNetworkOperation (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQObject)":
- realsignal = sigobj.Name + "(TQObject*)";
+ case "(TTQObject)":
+ realsignal = sigobj.Name + "(TTQObject*)";
del = Delegate.CreateDelegate (typeof (del_QObject), slotobj, "SlotBridge_QObject");
slotobj.WrapperPtr = csharp_connect_QObject (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQToolBar)":
- realsignal = sigobj.Name + "(TQToolBar*)";
+ case "(TTQToolBar)":
+ realsignal = sigobj.Name + "(TTQToolBar*)";
del = Delegate.CreateDelegate (typeof (del_QToolBar), slotobj, "SlotBridge_QToolBar");
slotobj.WrapperPtr = csharp_connect_QToolBar (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(TQWidget)":
- realsignal = sigobj.Name + "(TQWidget*)";
+ case "(TTQWidget)":
+ realsignal = sigobj.Name + "(TTQWidget*)";
del = Delegate.CreateDelegate (typeof (del_QWidget), slotobj, "SlotBridge_QWidget");
slotobj.WrapperPtr = csharp_connect_QWidget (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(int,TQIconViewItem)":
- realsignal = sigobj.Name + "(int,TQIconViewItem*)";
- del = Delegate.CreateDelegate (typeof (del_intQIconViewItem), slotobj, "SlotBridge_intQIconViewItem");
- slotobj.WrapperPtr = csharp_connect_intQIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
+ case "(int,TTQIconViewItem)":
+ realsignal = sigobj.Name + "(int,TTQIconViewItem*)";
+ del = Delegate.CreateDelegate (typeof (del_intTQIconViewItem), slotobj, "SlotBridge_intTQIconViewItem");
+ slotobj.WrapperPtr = csharp_connect_intTQIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
- case "(int,TQListBoxItem)":
- realsignal = sigobj.Name + "(int,TQListBoxItem*)";
- del = Delegate.CreateDelegate (typeof (del_intQListBoxItem), slotobj, "SlotBridge_intQListBoxItem");
- slotobj.WrapperPtr = csharp_connect_intQListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
+ case "(int,TTQListBoxItem)":
+ realsignal = sigobj.Name + "(int,TTQListBoxItem*)";
+ del = Delegate.CreateDelegate (typeof (del_intTQListBoxItem), slotobj, "SlotBridge_intTQListBoxItem");
+ slotobj.WrapperPtr = csharp_connect_intTQListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del);
break;
case "(int,bool)":
del = Delegate.CreateDelegate (typeof (del_intbool), receiver, slotobj.Name);
@@ -297,7 +297,7 @@ namespace Qt {
}
}
- private static bool ConnectSignalToSignal(TQObject sender, string signal, TQObject receiver, string target)
+ private static bool ConnectSignalToSignal(TTQObject sender, string signal, TTQObject receiver, string target)
{
if (traceConnects)
ErrMsg ("ConnectSignalToSlot: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal,
@@ -338,7 +338,7 @@ namespace Qt {
}
}
- internal static bool Disconnect(TQObject sender, string signal, TQObject receiver, string slot)
+ internal static bool Disconnect(TTQObject sender, string signal, TTQObject receiver, string slot)
{
if (signal == null && receiver == null && slot == null)
return DisconnectAll(sender);
@@ -356,7 +356,7 @@ namespace Qt {
return DisconnectSignalFromSlot(sender, NormalizeParam(signal), receiver, NormalizeParam(slot));
}
- private static bool DisconnectSignalFromSlot(TQObject sender, string signal, TQObject receiver, string slot)
+ private static bool DisconnectSignalFromSlot(TTQObject sender, string signal, TTQObject receiver, string slot)
{
if (traceConnects)
ErrMsg ("DisconnectSignalFromSlot: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal,
@@ -415,7 +415,7 @@ namespace Qt {
}
}
- private static bool DisconnectSignalFromSignal(TQObject sender, string signal, TQObject receiver, string target)
+ private static bool DisconnectSignalFromSignal(TTQObject sender, string signal, TTQObject receiver, string target)
{
if (traceConnects)
ErrMsg ("DisconnectSignalFromSignal: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal,
@@ -458,7 +458,7 @@ namespace Qt {
}
}
- private static bool DisconnectAll(TQObject sender)
+ private static bool DisconnectAll(TTQObject sender)
{
if (traceConnects)
ErrMsg ("DisconnectAll: ({0}) {1}", sender.RawObject, sender);
@@ -479,7 +479,7 @@ namespace Qt {
return true;
}
- private static bool DisconnectReceiver(TQObject sender, TQObject receiver)
+ private static bool DisconnectReceiver(TTQObject sender, TTQObject receiver)
{
if (traceConnects)
ErrMsg ("DisconnectReceiver: ({0}) {1}, ({2}) {3}", sender.RawObject, sender, receiver.RawObject, receiver);
@@ -500,7 +500,7 @@ namespace Qt {
return true;
}
- private static bool DisconnectSignal(TQObject sender, string signal)
+ private static bool DisconnectSignal(TTQObject sender, string signal)
{
if (traceConnects)
ErrMsg ("DisconnectSignal: ({0}) {1}, {2}", sender.RawObject, sender, signal);
@@ -516,7 +516,7 @@ namespace Qt {
return true;
}
- private static bool DisconnectSignalFromReceiver (TQObject sender, string signal, TQObject receiver)
+ private static bool DisconnectSignalFromReceiver (TTQObject sender, string signal, TTQObject receiver)
{
if (traceConnects)
ErrMsg ("DisconnectSignalFromReceiver: ({0}) {1}, {2}, ({3}), {4}", sender.RawObject, sender,
@@ -561,7 +561,7 @@ namespace Qt {
*/
}
- private static string MakeSigId(TQObject sender, string signal)
+ private static string MakeSigId(TTQObject sender, string signal)
{
return sender.RawObject.ToString()+signal;
}
@@ -663,7 +663,7 @@ namespace Qt {
Emit (new object[] { value0 });
}
- public void Emit_QDropEventQListViewItem (IntPtr value0, IntPtr value1)
+ public void Emit_QDropEventTQListViewItem (IntPtr value0, IntPtr value1)
{
Emit (new object[] { value0, value1 });
}
@@ -683,12 +683,12 @@ namespace Qt {
Emit (new object[] { value0 });
}
- public void Emit_QListViewItemQListViewItem (IntPtr value0, IntPtr value1)
+ public void Emit_QListViewItemTQListViewItem (IntPtr value0, IntPtr value1)
{
Emit (new object[] { value0, value1 });
}
- public void Emit_QListViewItemQListViewItemQListViewItem (IntPtr value0, IntPtr value1, IntPtr value2)
+ public void Emit_QListViewItemTQListViewItemTQListViewItem (IntPtr value0, IntPtr value1, IntPtr value2)
{
Emit (new object[] { value0, value1, value2 });
}
@@ -713,12 +713,12 @@ namespace Qt {
Emit (new object[] { value0 });
}
- public void Emit_intQIconViewItem (int value0, IntPtr value1)
+ public void Emit_intTQIconViewItem (int value0, IntPtr value1)
{
Emit (new object[] { value0, value1 });
}
- public void Emit_intQListBoxItem (int value0, IntPtr value1)
+ public void Emit_intTQListBoxItem (int value0, IntPtr value1)
{
Emit (new object[] { value0, value1 });
}
@@ -775,7 +775,7 @@ namespace Qt {
private static extern IntPtr csharp_connect_QDropEvent (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
- private static extern IntPtr csharp_connect_QDropEventQListViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
+ private static extern IntPtr csharp_connect_QDropEventTQListViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
private static extern IntPtr csharp_connect_QIconViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
@@ -787,10 +787,10 @@ namespace Qt {
private static extern IntPtr csharp_connect_QListViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
- private static extern IntPtr csharp_connect_QListViewItemQListViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
+ private static extern IntPtr csharp_connect_QListViewItemTQListViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
- private static extern IntPtr csharp_connect_QListViewItemQListViewItemQListViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
+ private static extern IntPtr csharp_connect_QListViewItemTQListViewItemTQListViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
private static extern IntPtr csharp_connect_QNetworkOperation (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
@@ -805,10 +805,10 @@ namespace Qt {
private static extern IntPtr csharp_connect_QWidget (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
- private static extern IntPtr csharp_connect_intQIconViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
+ private static extern IntPtr csharp_connect_intTQIconViewItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
- private static extern IntPtr csharp_connect_intQListBoxItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
+ private static extern IntPtr csharp_connect_intTQListBoxItem (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
private static extern IntPtr csharp_connect_intbool (IntPtr sender, string signal, IntPtr receiver, Delegate cb);
@@ -829,18 +829,18 @@ namespace Qt {
public delegate void del_QString (IntPtr value0);
public delegate void del_QDockWindow (IntPtr value0);
public delegate void del_QDropEvent (IntPtr value0);
- public delegate void del_QDropEventQListViewItem (IntPtr value0, IntPtr value1);
+ public delegate void del_QDropEventTQListViewItem (IntPtr value0, IntPtr value1);
public delegate void del_QIconViewItem (IntPtr value0);
public delegate void del_QListBoxItem (IntPtr value0);
public delegate void del_QListViewItem (IntPtr value0);
- public delegate void del_QListViewItemQListViewItem (IntPtr value0, IntPtr value1);
- public delegate void del_QListViewItemQListViewItemQListViewItem (IntPtr value0, IntPtr value1, IntPtr value2);
+ public delegate void del_QListViewItemTQListViewItem (IntPtr value0, IntPtr value1);
+ public delegate void del_QListViewItemTQListViewItemTQListViewItem (IntPtr value0, IntPtr value1, IntPtr value2);
public delegate void del_QNetworkOperation (IntPtr value0);
public delegate void del_QObject (IntPtr value0);
public delegate void del_QToolBar (IntPtr value0);
public delegate void del_QWidget (IntPtr value0);
- public delegate void del_intQIconViewItem (int value0, IntPtr value1);
- public delegate void del_intQListBoxItem (int value0, IntPtr value1);
+ public delegate void del_intTQIconViewItem (int value0, IntPtr value1);
+ public delegate void del_intTQListBoxItem (int value0, IntPtr value1);
public delegate void del_intbool (int value0, bool value1);
public delegate void del_intint (int value0, int value1);
public delegate void del_intintint (int value0, int value1, int value2);