summaryrefslogtreecommitdiffstats
path: root/qtsharp/src/bindings/static/QtSupport.cs
diff options
context:
space:
mode:
Diffstat (limited to 'qtsharp/src/bindings/static/QtSupport.cs')
-rw-r--r--qtsharp/src/bindings/static/QtSupport.cs248
1 files changed, 124 insertions, 124 deletions
diff --git a/qtsharp/src/bindings/static/QtSupport.cs b/qtsharp/src/bindings/static/QtSupport.cs
index eee74728..af48d72a 100644
--- a/qtsharp/src/bindings/static/QtSupport.cs
+++ b/qtsharp/src/bindings/static/QtSupport.cs
@@ -33,7 +33,7 @@ namespace Qt {
private static QtEventHandler qtEventHandler;
- // Runtime flags, set by QApplication.ParseArguments
+ // Runtime flags, set by TQApplication.ParseArguments
internal static bool enableDebug;
internal static bool disableTracking;
internal static bool traceObjects;
@@ -141,7 +141,7 @@ namespace Qt {
internal bool IsQObject ()
{
- return GetType ().IsSubclassOf (typeof (QObject));
+ return GetType ().IsSubclassOf (typeof (TQObject));
}
internal static void WarnMsg (string format, params object[] arg)
@@ -165,7 +165,7 @@ namespace Qt {
Console.WriteLine (format, arg);
}
- public static string SIGNAL (string signal)
+ public static string TQT_SIGNAL (string signal)
{
return "2"+
Regex.Replace (signal, @"\s*\(\s*\)", "()");
@@ -173,7 +173,7 @@ namespace Qt {
}
- public static string SLOT (string slot)
+ public static string TQT_SLOT (string slot)
{
return "1" +
Regex.Replace (slot, @"\s*\(\s*\)", "()");
@@ -283,7 +283,7 @@ namespace Qt {
new object[] {ptr},
null);
- // FIXME Must handle cases where qtsObj is a QObject root
+ // FIXME Must handle cases where qtsObj is a TQObject root
// or child. Should we box the entire object tree in
// C#? Also, RegisterObject will only track this object
// if it is a root node. Child nodes are assumed to be
@@ -335,15 +335,15 @@ namespace Qt {
private static void DispatchEvent (IntPtr instance, string eventname, IntPtr eventinstance, string eventclass)
{
ArrayList array;
- QObject obj;
- QEvent ev;
+ TQObject obj;
+ TQEvent ev;
Type evtype = Type.GetType ("Qt."+eventclass+",Qt");
- if ((obj = (QObject)LookupObject (instance)) == null) return;
+ if ((obj = (TQObject)LookupObject (instance)) == null) return;
try
{
- if ((ev = (QEvent)LookupObject (eventinstance)) == null) {
+ if ((ev = (TQEvent)LookupObject (eventinstance)) == null) {
object[] args = new object[] { eventinstance };
BindingFlags bflags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public;
ev = Activator.CreateInstance (evtype, bflags, null, args, null) as QEvent;
@@ -375,92 +375,92 @@ namespace Qt {
// Global events.
public static event QChildHandler childHandler {
- add { EventList.Add ("QChildEvent", value); }
- remove { EventList.Remove ("QChildEvent", value); }
+ add { EventList.Add ("TQChildEvent", value); }
+ remove { EventList.Remove ("TQChildEvent", value); }
}
public static event QDragEnterHandler dragEnterHandler {
- add { EventList.Add ("QDragEnterEvent", value); }
- remove { EventList.Remove ("QDragEnterEvent", value); }
+ add { EventList.Add ("TQDragEnterEvent", value); }
+ remove { EventList.Remove ("TQDragEnterEvent", value); }
}
public static event QDropHandler dropHandler {
- add { EventList.Add ("QDropEvent", value); }
- remove { EventList.Remove ("QDropEvent", value); }
+ add { EventList.Add ("TQDropEvent", value); }
+ remove { EventList.Remove ("TQDropEvent", value); }
}
public static event QIMHandler imHandler {
- add { EventList.Add ("QIMEvent", value); }
- remove { EventList.Remove ("QIMEvent", value); }
+ add { EventList.Add ("TQIMEvent", value); }
+ remove { EventList.Remove ("TQIMEvent", value); }
}
public static event QPaintHandler paintHandler {
- add { EventList.Add ("QPaintEvent", value); }
- remove { EventList.Remove ("QPaintEvent", value); }
+ add { EventList.Add ("TQPaintEvent", value); }
+ remove { EventList.Remove ("TQPaintEvent", value); }
}
public static event QTimerHandler timerHandler {
- add { EventList.Add ("QTimerEvent", value); }
- remove { EventList.Remove ("QTimerEvent", value); }
+ add { EventList.Add ("TQTimerEvent", value); }
+ remove { EventList.Remove ("TQTimerEvent", value); }
}
public static event QCloseHandler closeHandler {
- add { EventList.Add ("QCloseEvent", value); }
- remove { EventList.Remove ("QCloseEvent", value); }
+ add { EventList.Add ("TQCloseEvent", value); }
+ remove { EventList.Remove ("TQCloseEvent", value); }
}
public static event QDragLeaveHandler dragLeaveHandler {
- add { EventList.Add ("QDragLeaveEvent", value); }
- remove { EventList.Remove ("QDragLeaveEvent", value); }
+ add { EventList.Add ("TQDragLeaveEvent", value); }
+ remove { EventList.Remove ("TQDragLeaveEvent", value); }
}
public static event QEventHandler eventHandler {
add { EventList.Add ("QEventEvent", value); }
remove { EventList.Remove ("QEventEvent", value); }
}
public static event QKeyHandler keyHandler {
- add { EventList.Add ("QKeyEvent", value); }
- remove { EventList.Remove ("QKeyEvent", value); }
+ add { EventList.Add ("TQKeyEvent", value); }
+ remove { EventList.Remove ("TQKeyEvent", value); }
}
public static event QResizeHandler resizeHandler {
- add { EventList.Add ("QResizeEvent", value); }
- remove { EventList.Remove ("QResizeEvent", value); }
+ add { EventList.Add ("TQResizeEvent", value); }
+ remove { EventList.Remove ("TQResizeEvent", value); }
}
public static event QWheelHandler wheelHandler {
- add { EventList.Add ("QWheelEvent", value); }
- remove { EventList.Remove ("QWheelEvent", value); }
+ add { EventList.Add ("TQWheelEvent", value); }
+ remove { EventList.Remove ("TQWheelEvent", value); }
}
public static event QContextMenuHandler contextMenuHandler {
- add { EventList.Add ("QContextMenuEvent", value); }
- remove { EventList.Remove ("QContextMenuEvent", value); }
+ add { EventList.Add ("TQContextMenuEvent", value); }
+ remove { EventList.Remove ("TQContextMenuEvent", value); }
}
public static event QDragMoveHandler dragMoveHandler {
- add { EventList.Add ("QDragMoveEvent", value); }
- remove { EventList.Remove ("QDragMoveEvent", value); }
+ add { EventList.Add ("TQDragMoveEvent", value); }
+ remove { EventList.Remove ("TQDragMoveEvent", value); }
}
public static event QFocusHandler focusHandler {
- add { EventList.Add ("QFocusEvent", value); }
- remove { EventList.Remove ("QFocusEvent", value); }
+ add { EventList.Add ("TQFocusEvent", value); }
+ remove { EventList.Remove ("TQFocusEvent", value); }
}
public static event QMouseHandler mouseHandler {
- add { EventList.Add ("QMouseEvent", value); }
- remove { EventList.Remove ("QMouseEvent", value); }
+ add { EventList.Add ("TQMouseEvent", value); }
+ remove { EventList.Remove ("TQMouseEvent", value); }
}
public static event QShowHandler showHandler {
- add { EventList.Add ("QShowEvent", value); }
- remove { EventList.Remove ("QShowEvent", value); }
+ add { EventList.Add ("TQShowEvent", value); }
+ remove { EventList.Remove ("TQShowEvent", value); }
}
public static event QCustomHandler customHandler {
- add { EventList.Add ("QCustomEvent", value); }
- remove { EventList.Remove ("QCustomEvent", value); }
+ add { EventList.Add ("TQCustomEvent", value); }
+ remove { EventList.Remove ("TQCustomEvent", value); }
}
public static event QDragResponseHandler dragResponseHandler {
- add { EventList.Add ("QDragResponseEvent", value); }
- remove { EventList.Remove ("QDragResponseEvent", value); }
+ add { EventList.Add ("TQDragResponseEvent", value); }
+ remove { EventList.Remove ("TQDragResponseEvent", value); }
}
public static event QHideHandler hideHandler {
- add { EventList.Add ("QHideEvent", value); }
- remove { EventList.Remove ("QHideEvent", value); }
+ add { EventList.Add ("TQHideEvent", value); }
+ remove { EventList.Remove ("TQHideEvent", value); }
}
public static event QMoveHandler moveHandler {
- add { EventList.Add ("QMoveEvent", value); }
- remove { EventList.Remove ("QMoveEvent", value); }
+ add { EventList.Add ("TQMoveEvent", value); }
+ remove { EventList.Remove ("TQMoveEvent", value); }
}
public static event QTabletHandler tabletHandler {
- add { EventList.Add ("QTabletEvent", value); }
- remove { EventList.Remove ("QTabletEvent", value); }
+ add { EventList.Add ("TQTabletEvent", value); }
+ remove { EventList.Remove ("TQTabletEvent", value); }
}
// Local events.
@@ -670,81 +670,81 @@ namespace Qt {
}
// The local event delegates.
- protected delegate void ChildEvent (QChildEvent e);
- protected delegate void CloseEvent (QCloseEvent e);
- protected delegate void ContentsContextMenuEvent (QContextMenuEvent e);
- protected delegate void ContentsDragEnterEvent (QDragEnterEvent e);
- protected delegate void ContentsDragLeaveEvent (QDragLeaveEvent e);
- protected delegate void ContentsDragMoveEvent (QDragMoveEvent e);
- protected delegate void ContentsDropEvent (QDropEvent e);
- protected delegate void ContentsMouseDoubleClickEvent (QMouseEvent e);
- protected delegate void ContentsMouseMoveEvent (QMouseEvent e);
- protected delegate void ContentsMousePressEvent (QMouseEvent e);
- protected delegate void ContentsMouseReleaseEvent (QMouseEvent e);
- protected delegate void ContentsWheelEvent (QWheelEvent e);
- protected delegate void ContextMenuEvent (QContextMenuEvent e);
- protected delegate void CustomEvent (QCustomEvent e);
- protected delegate void DragEnterEvent (QDragEnterEvent e);
- protected delegate void DragLeaveEvent (QDragLeaveEvent e);
- protected delegate void DragMoveEvent (QDragMoveEvent e);
- protected delegate void DropEvent (QDropEvent e);
- protected delegate void EnterEvent (QEvent e);
- protected delegate void FocusInEvent (QFocusEvent e);
- protected delegate void FocusOutEvent (QFocusEvent e);
- protected delegate void HideEvent (QHideEvent e);
- protected delegate void IMComposeEvent (QIMEvent e);
- protected delegate void IMEndEvent (QIMEvent e);
- protected delegate void IMStartEvent (QIMEvent e);
- protected delegate void KeyPressEvent (QKeyEvent e);
- protected delegate void KeyReleaseEvent (QKeyEvent e);
- protected delegate void LeaveEvent (QEvent e);
- protected delegate void MouseDoubleClickEvent (QMouseEvent e);
- protected delegate void MouseMoveEvent (QMouseEvent e);
- protected delegate void MousePressEvent (QMouseEvent e);
- protected delegate void MouseReleaseEvent (QMouseEvent e);
- protected delegate void MoveEvent (QMoveEvent e);
- protected delegate void PaintEvent (QPaintEvent e);
- protected delegate void ResizeEvent (QResizeEvent e);
- protected delegate void ShowEvent (QShowEvent e);
- protected delegate void TabletEvent (QTabletEvent e);
- protected delegate void TimerEvent (QTimerEvent e);
- protected delegate void ViewportContextMenuEvent (QContextMenuEvent e);
- protected delegate void ViewportDragEnterEvent (QDragEnterEvent e);
- protected delegate void ViewportDragLeaveEvent (QDragLeaveEvent e);
- protected delegate void ViewportDragMoveEvent (QDragMoveEvent e);
- protected delegate void ViewportDropEvent (QDropEvent e);
- protected delegate void ViewportMouseDoubleClickEvent (QMouseEvent e);
- protected delegate void ViewportMouseMoveEvent (QMouseEvent e);
- protected delegate void ViewportMousePressEvent (QMouseEvent e);
- protected delegate void ViewportMouseReleaseEvent (QMouseEvent e);
- protected delegate void ViewportPaintEvent (QPaintEvent e);
- protected delegate void ViewportResizeEvent (QResizeEvent e);
- protected delegate void ViewportWheelEvent (QWheelEvent e);
- protected delegate void WheelEvent (QWheelEvent e);
+ protected delegate void ChildEvent (TQChildEvent e);
+ protected delegate void CloseEvent (TQCloseEvent e);
+ protected delegate void ContentsContextMenuEvent (TQContextMenuEvent e);
+ protected delegate void ContentsDragEnterEvent (TQDragEnterEvent e);
+ protected delegate void ContentsDragLeaveEvent (TQDragLeaveEvent e);
+ protected delegate void ContentsDragMoveEvent (TQDragMoveEvent e);
+ protected delegate void ContentsDropEvent (TQDropEvent e);
+ protected delegate void ContentsMouseDoubleClickEvent (TQMouseEvent e);
+ protected delegate void ContentsMouseMoveEvent (TQMouseEvent e);
+ protected delegate void ContentsMousePressEvent (TQMouseEvent e);
+ protected delegate void ContentsMouseReleaseEvent (TQMouseEvent e);
+ protected delegate void ContentsWheelEvent (TQWheelEvent e);
+ protected delegate void ContextMenuEvent (TQContextMenuEvent e);
+ protected delegate void CustomEvent (TQCustomEvent e);
+ protected delegate void DragEnterEvent (TQDragEnterEvent e);
+ protected delegate void DragLeaveEvent (TQDragLeaveEvent e);
+ protected delegate void DragMoveEvent (TQDragMoveEvent e);
+ protected delegate void DropEvent (TQDropEvent e);
+ protected delegate void EnterEvent (TQEvent e);
+ protected delegate void FocusInEvent (TQFocusEvent e);
+ protected delegate void FocusOutEvent (TQFocusEvent e);
+ protected delegate void HideEvent (TQHideEvent e);
+ protected delegate void IMComposeEvent (TQIMEvent e);
+ protected delegate void IMEndEvent (TQIMEvent e);
+ protected delegate void IMStartEvent (TQIMEvent e);
+ protected delegate void KeyPressEvent (TQKeyEvent e);
+ protected delegate void KeyReleaseEvent (TQKeyEvent e);
+ protected delegate void LeaveEvent (TQEvent e);
+ protected delegate void MouseDoubleClickEvent (TQMouseEvent e);
+ protected delegate void MouseMoveEvent (TQMouseEvent e);
+ protected delegate void MousePressEvent (TQMouseEvent e);
+ protected delegate void MouseReleaseEvent (TQMouseEvent e);
+ protected delegate void MoveEvent (TQMoveEvent e);
+ protected delegate void PaintEvent (TQPaintEvent e);
+ protected delegate void ResizeEvent (TQResizeEvent e);
+ protected delegate void ShowEvent (TQShowEvent e);
+ protected delegate void TabletEvent (TQTabletEvent e);
+ protected delegate void TimerEvent (TQTimerEvent e);
+ protected delegate void ViewportContextMenuEvent (TQContextMenuEvent e);
+ protected delegate void ViewportDragEnterEvent (TQDragEnterEvent e);
+ protected delegate void ViewportDragLeaveEvent (TQDragLeaveEvent e);
+ protected delegate void ViewportDragMoveEvent (TQDragMoveEvent e);
+ protected delegate void ViewportDropEvent (TQDropEvent e);
+ protected delegate void ViewportMouseDoubleClickEvent (TQMouseEvent e);
+ protected delegate void ViewportMouseMoveEvent (TQMouseEvent e);
+ protected delegate void ViewportMousePressEvent (TQMouseEvent e);
+ protected delegate void ViewportMouseReleaseEvent (TQMouseEvent e);
+ protected delegate void ViewportPaintEvent (TQPaintEvent e);
+ protected delegate void ViewportResizeEvent (TQResizeEvent e);
+ protected delegate void ViewportWheelEvent (TQWheelEvent e);
+ protected delegate void WheelEvent (TQWheelEvent e);
}
// The global event delegates.
- public delegate void QChildHandler (QObject sender, QEventArgs e);
- public delegate void QDragEnterHandler (QObject sender, QEventArgs e);
- public delegate void QDropHandler (QObject sender, QEventArgs e);
- public delegate void QIMHandler (QObject sender, QEventArgs e);
- public delegate void QPaintHandler (QObject sender, QEventArgs e);
- public delegate void QTimerHandler (QObject sender, QEventArgs e);
- public delegate void QCloseHandler (QObject sender, QEventArgs e);
- public delegate void QDragLeaveHandler (QObject sender, QEventArgs e);
- public delegate void QEventHandler (QObject sender, QEventArgs e);
- public delegate void QKeyHandler (QObject sender, QEventArgs e);
- public delegate void QResizeHandler (QObject sender, QEventArgs e);
- public delegate void QWheelHandler (QObject sender, QEventArgs e);
- public delegate void QContextMenuHandler (QObject sender, QEventArgs e);
- public delegate void QDragMoveHandler (QObject sender, QEventArgs e);
- public delegate void QFocusHandler (QObject sender, QEventArgs e);
- public delegate void QMouseHandler (QObject sender, QEventArgs e);
- public delegate void QShowHandler (QObject sender, QEventArgs e);
- public delegate void QCustomHandler (QObject sender, QEventArgs e);
- public delegate void QDragResponseHandler (QObject sender, QEventArgs e);
- public delegate void QHideHandler (QObject sender, QEventArgs e);
- public delegate void QMoveHandler (QObject sender, QEventArgs e);
- public delegate void QTabletHandler (QObject sender, QEventArgs e);
+ public delegate void QChildHandler (TQObject sender, QEventArgs e);
+ public delegate void QDragEnterHandler (TQObject sender, QEventArgs e);
+ public delegate void QDropHandler (TQObject sender, QEventArgs e);
+ public delegate void QIMHandler (TQObject sender, QEventArgs e);
+ public delegate void QPaintHandler (TQObject sender, QEventArgs e);
+ public delegate void QTimerHandler (TQObject sender, QEventArgs e);
+ public delegate void QCloseHandler (TQObject sender, QEventArgs e);
+ public delegate void QDragLeaveHandler (TQObject sender, QEventArgs e);
+ public delegate void QEventHandler (TQObject sender, QEventArgs e);
+ public delegate void QKeyHandler (TQObject sender, QEventArgs e);
+ public delegate void QResizeHandler (TQObject sender, QEventArgs e);
+ public delegate void QWheelHandler (TQObject sender, QEventArgs e);
+ public delegate void QContextMenuHandler (TQObject sender, QEventArgs e);
+ public delegate void QDragMoveHandler (TQObject sender, QEventArgs e);
+ public delegate void QFocusHandler (TQObject sender, QEventArgs e);
+ public delegate void QMouseHandler (TQObject sender, QEventArgs e);
+ public delegate void QShowHandler (TQObject sender, QEventArgs e);
+ public delegate void QCustomHandler (TQObject sender, QEventArgs e);
+ public delegate void QDragResponseHandler (TQObject sender, QEventArgs e);
+ public delegate void QHideHandler (TQObject sender, QEventArgs e);
+ public delegate void QMoveHandler (TQObject sender, QEventArgs e);
+ public delegate void QTabletHandler (TQObject sender, QEventArgs e);
}