diff options
Diffstat (limited to 'qtsharp/src/libqtsharp/qtsharp.cpp')
-rw-r--r-- | qtsharp/src/libqtsharp/qtsharp.cpp | 162 |
1 files changed, 81 insertions, 81 deletions
diff --git a/qtsharp/src/libqtsharp/qtsharp.cpp b/qtsharp/src/libqtsharp/qtsharp.cpp index 903e89c0..80e32b0d 100644 --- a/qtsharp/src/libqtsharp/qtsharp.cpp +++ b/qtsharp/src/libqtsharp/qtsharp.cpp @@ -19,273 +19,273 @@ void qtsharp_QObject_registerEventDelegate (qtsharp_EventDelegate delegate) return; } -QObject *csharp_connect_void (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(void)) +TQObject *csharp_connect_void (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(void)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (void)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (void)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_item_void (QMenuData *instance, int id, QObject *receiver, void (*ptr)(void)) +TQObject *csharp_connect_item_void (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(void)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! instance->connectItem (id, cs, SLOT (callback (void)))) { + if (! instance->connectItem (id, cs, TQT_SLOT (callback (void)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_bool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(bool)) +TQObject *csharp_connect_bool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(bool)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (bool)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (bool)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_short (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(short)) +TQObject *csharp_connect_short (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(short)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (short)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (short)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_int (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int)) +TQObject *csharp_connect_int (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (int)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_item_int (QMenuData *instance, int id, QObject *receiver, void (*ptr)(int)) +TQObject *csharp_connect_item_int (TQMenuData *instance, int id, TQObject *receiver, void (*ptr)(int)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! instance->connectItem (id, cs, SLOT (callback (int)))) { + if (! instance->connectItem (id, cs, TQT_SLOT (callback (int)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_long (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(long)) +TQObject *csharp_connect_long (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(long)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (long)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (long)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_float (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(float)) +TQObject *csharp_connect_float (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(float)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (float)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (float)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_double (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(double)) +TQObject *csharp_connect_double (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(double)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (double)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (double)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QString (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(const QString&)) +TQObject *csharp_connect_QString (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(const TQString&)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (const QString&)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (const TQString&)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QDockWindow (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDockWindow*)) +TQObject *csharp_connect_QDockWindow (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDockWindow*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QDockWindow*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDockWindow*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QDropEvent (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*)) +TQObject *csharp_connect_QDropEvent (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QDropEvent*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDropEvent*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QDropEventQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QDropEvent*,QListViewItem*)) +TQObject *csharp_connect_QDropEventQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQDropEvent*,TQListViewItem*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QDropEvent*,QListViewItem*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQDropEvent*,TQListViewItem*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QIconViewItem*)) +TQObject *csharp_connect_QIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQIconViewItem*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QIconViewItem*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQIconViewItem*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListBoxItem*)) +TQObject *csharp_connect_QListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListBoxItem*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QListBoxItem*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListBoxItem*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*)) +TQObject *csharp_connect_QListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*)) +TQObject *csharp_connect_QListViewItemQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*,QListViewItem*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*,TQListViewItem*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QListViewItemQListViewItemQListViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QListViewItem*,QListViewItem*,QListViewItem*)) +TQObject *csharp_connect_QListViewItemQListViewItemQListViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQListViewItem*,TQListViewItem*,TQListViewItem*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QListViewItem*,QListViewItem*,QListViewItem*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQListViewItem*,TQListViewItem*,TQListViewItem*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QNetworkOperation (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QNetworkOperation*)) +TQObject *csharp_connect_QNetworkOperation (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQNetworkOperation*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QNetworkOperation*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQNetworkOperation*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QObject (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QObject*)) +TQObject *csharp_connect_QObject (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQObject*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QObject*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQObject*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QToolBar (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QToolBar*)) +TQObject *csharp_connect_QToolBar (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQToolBar*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QToolBar*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQToolBar*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_QWidget (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(QWidget*)) +TQObject *csharp_connect_QWidget (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(TQWidget*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (QWidget*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (TQWidget*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_intQIconViewItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QIconViewItem*)) +TQObject *csharp_connect_intQIconViewItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQIconViewItem*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (int,QIconViewItem*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,TQIconViewItem*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_intQListBoxItem (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,QListBoxItem*)) +TQObject *csharp_connect_intQListBoxItem (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,TQListBoxItem*)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (int,QListBoxItem*)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,TQListBoxItem*)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_intbool (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,bool)) +TQObject *csharp_connect_intbool (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,bool)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (int,bool)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,bool)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_intint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int)) +TQObject *csharp_connect_intint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (int,int)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,int)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } -QObject *csharp_connect_intintint (QObject *sender, const char *signal, QObject *receiver, void (*ptr)(int,int,int)) +TQObject *csharp_connect_intintint (TQObject *sender, const char *signal, TQObject *receiver, void (*ptr)(int,int,int)) { CustomSlot *cs = new CustomSlot (ptr, receiver); - if (! QObject::connect (sender, signal, cs, SLOT (callback (int,int,int)))) { + if (! TQObject::connect (sender, signal, cs, TQT_SLOT (callback (int,int,int)))) { delete cs; cs = 0L; } - return (QObject *)cs; + return (TQObject *)cs; } |