diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 16:20:48 -0600 |
commit | e63beeb5bdb82987b1e00bc35178667786fbad48 (patch) | |
tree | ab77b6ac830b7944d5d1eb9ce8f81feb8fdab948 /qtsharp/src/bindings/static/QtSignal.cs | |
parent | 67557a2b56c0678c22ab1b00c4fd0224c5e9ed99 (diff) | |
download | tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.tar.gz tdebindings-e63beeb5bdb82987b1e00bc35178667786fbad48.zip |
Fix incorrect conversion
Diffstat (limited to 'qtsharp/src/bindings/static/QtSignal.cs')
-rw-r--r-- | qtsharp/src/bindings/static/QtSignal.cs | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/qtsharp/src/bindings/static/QtSignal.cs b/qtsharp/src/bindings/static/QtSignal.cs index b48bcf97..1237a7bf 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: TTQObject, IDisposable { + internal class QtSignal: TQObject, IDisposable { internal static bool traceConnects; static QtSignal () @@ -36,7 +36,7 @@ namespace Qt { traceConnects = false; } - private TTQObject sender; + private TQObject sender; private string signal; private string name; private string args; @@ -47,7 +47,7 @@ namespace Qt { get { return MakeSigId(sender, signal); } } - public TTQObject Sender { + public TQObject Sender { get { return sender; } } @@ -75,7 +75,7 @@ namespace Qt { get { return slots; } } - public QtSignal (TTQObject sender, string signal): base (NoSignalInit.Instance) + public QtSignal (TQObject 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(TTQObject sender, string signal, TTQObject receiver, string slot) + internal static bool Connect(TQObject sender, string signal, TQObject 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(TTQObject sender, string signal, TTQObject receiver, string slot) + private static bool ConnectSignalToSlot(TQObject sender, string signal, TQObject receiver, string slot) { QtSignal sigobj; QtSlot slotobj = new QtSlot(receiver, slot); @@ -188,80 +188,80 @@ 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 "(TTQString)": - realsignal = sigobj.Name + "(const TTQString&)"; + case "(TQString)": + realsignal = sigobj.Name + "(const TQString&)"; 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 "(TTQDockWindow)": - realsignal = sigobj.Name + "(TTQDockWindow*)"; + case "(TQDockWindow)": + realsignal = sigobj.Name + "(TQDockWindow*)"; del = Delegate.CreateDelegate (typeof (del_QDockWindow), slotobj, "SlotBridge_QDockWindow"); slotobj.WrapperPtr = csharp_connect_QDockWindow (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQDropEvent)": - realsignal = sigobj.Name + "(TTQDropEvent*)"; + case "(TQDropEvent)": + realsignal = sigobj.Name + "(TQDropEvent*)"; del = Delegate.CreateDelegate (typeof (del_QDropEvent), slotobj, "SlotBridge_QDropEvent"); slotobj.WrapperPtr = csharp_connect_QDropEvent (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQDropEvent,TTQListViewItem)": - realsignal = sigobj.Name + "(TTQDropEvent*,TTQListViewItem*)"; + case "(TQDropEvent,TQListViewItem)": + realsignal = sigobj.Name + "(TQDropEvent*,TQListViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QDropEventTQListViewItem), slotobj, "SlotBridge_QDropEventTQListViewItem"); slotobj.WrapperPtr = csharp_connect_QDropEventTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQIconViewItem)": - realsignal = sigobj.Name + "(TTQIconViewItem*)"; + case "(TQIconViewItem)": + realsignal = sigobj.Name + "(TQIconViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QIconViewItem), slotobj, "SlotBridge_QIconViewItem"); slotobj.WrapperPtr = csharp_connect_QIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQListBoxItem)": - realsignal = sigobj.Name + "(TTQListBoxItem*)"; + case "(TQListBoxItem)": + realsignal = sigobj.Name + "(TQListBoxItem*)"; del = Delegate.CreateDelegate (typeof (del_QListBoxItem), slotobj, "SlotBridge_QListBoxItem"); slotobj.WrapperPtr = csharp_connect_QListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQListViewItem)": - realsignal = sigobj.Name + "(TTQListViewItem*)"; + case "(TQListViewItem)": + realsignal = sigobj.Name + "(TQListViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QListViewItem), slotobj, "SlotBridge_QListViewItem"); slotobj.WrapperPtr = csharp_connect_QListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQListViewItem,TTQListViewItem)": - realsignal = sigobj.Name + "(TTQListViewItem*,TTQListViewItem*)"; + case "(TQListViewItem,TQListViewItem)": + realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItem"); slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQListViewItem,TTQListViewItem,TTQListViewItem)": - realsignal = sigobj.Name + "(TTQListViewItem*,TTQListViewItem*,TTQListViewItem*)"; + case "(TQListViewItem,TQListViewItem,TQListViewItem)": + realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*,TQListViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItemTQListViewItem"); slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItemTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQNetworkOperation)": - realsignal = sigobj.Name + "(TTQNetworkOperation*)"; + case "(TQNetworkOperation)": + realsignal = sigobj.Name + "(TQNetworkOperation*)"; del = Delegate.CreateDelegate (typeof (del_QNetworkOperation), slotobj, "SlotBridge_QNetworkOperation"); slotobj.WrapperPtr = csharp_connect_QNetworkOperation (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQObject)": - realsignal = sigobj.Name + "(TTQObject*)"; + case "(TQObject)": + realsignal = sigobj.Name + "(TQObject*)"; del = Delegate.CreateDelegate (typeof (del_QObject), slotobj, "SlotBridge_QObject"); slotobj.WrapperPtr = csharp_connect_QObject (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQToolBar)": - realsignal = sigobj.Name + "(TTQToolBar*)"; + case "(TQToolBar)": + realsignal = sigobj.Name + "(TQToolBar*)"; del = Delegate.CreateDelegate (typeof (del_QToolBar), slotobj, "SlotBridge_QToolBar"); slotobj.WrapperPtr = csharp_connect_QToolBar (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQWidget)": - realsignal = sigobj.Name + "(TTQWidget*)"; + case "(TQWidget)": + realsignal = sigobj.Name + "(TQWidget*)"; 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,TTQIconViewItem)": - realsignal = sigobj.Name + "(int,TTQIconViewItem*)"; + case "(int,TQIconViewItem)": + realsignal = sigobj.Name + "(int,TQIconViewItem*)"; 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,TTQListBoxItem)": - realsignal = sigobj.Name + "(int,TTQListBoxItem*)"; + case "(int,TQListBoxItem)": + realsignal = sigobj.Name + "(int,TQListBoxItem*)"; del = Delegate.CreateDelegate (typeof (del_intTQListBoxItem), slotobj, "SlotBridge_intTQListBoxItem"); slotobj.WrapperPtr = csharp_connect_intTQListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; @@ -297,7 +297,7 @@ namespace Qt { } } - private static bool ConnectSignalToSignal(TTQObject sender, string signal, TTQObject receiver, string target) + private static bool ConnectSignalToSignal(TQObject sender, string signal, TQObject 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(TTQObject sender, string signal, TTQObject receiver, string slot) + internal static bool Disconnect(TQObject sender, string signal, TQObject 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(TTQObject sender, string signal, TTQObject receiver, string slot) + private static bool DisconnectSignalFromSlot(TQObject sender, string signal, TQObject 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(TTQObject sender, string signal, TTQObject receiver, string target) + private static bool DisconnectSignalFromSignal(TQObject sender, string signal, TQObject 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(TTQObject sender) + private static bool DisconnectAll(TQObject sender) { if (traceConnects) ErrMsg ("DisconnectAll: ({0}) {1}", sender.RawObject, sender); @@ -479,7 +479,7 @@ namespace Qt { return true; } - private static bool DisconnectReceiver(TTQObject sender, TTQObject receiver) + private static bool DisconnectReceiver(TQObject sender, TQObject 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(TTQObject sender, string signal) + private static bool DisconnectSignal(TQObject 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 (TTQObject sender, string signal, TTQObject receiver) + private static bool DisconnectSignalFromReceiver (TQObject sender, string signal, TQObject receiver) { if (traceConnects) ErrMsg ("DisconnectSignalFromReceiver: ({0}) {1}, {2}, ({3}), {4}", sender.RawObject, sender, @@ -561,7 +561,7 @@ namespace Qt { */ } - private static string MakeSigId(TTQObject sender, string signal) + private static string MakeSigId(TQObject sender, string signal) { return sender.RawObject.ToString()+signal; } |