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.cs242
1 files changed, 121 insertions, 121 deletions
diff --git a/qtsharp/src/bindings/static/QtSupport.cs b/qtsharp/src/bindings/static/QtSupport.cs
index acb45de7..f9740f7f 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 TTQApplication.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 IsTQObject ()
{
- return GetType ().IsSubclassOf (typeof (TTQObject));
+ return GetType ().IsSubclassOf (typeof (TQObject));
}
internal static void WarnMsg (string format, params object[] arg)
@@ -283,7 +283,7 @@ namespace Qt {
new object[] {ptr},
null);
- // FIXME Must handle cases where qtsObj is a TTQObject 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,18 +335,18 @@ namespace Qt {
private static void DispatchEvent (IntPtr instance, string eventname, IntPtr eventinstance, string eventclass)
{
ArrayList array;
- TTQObject obj;
- TTQEvent ev;
+ TQObject obj;
+ TQEvent ev;
Type evtype = Type.GetType ("Qt."+eventclass+",Qt");
- if ((obj = (TTQObject)LookupObject (instance)) == null) return;
+ if ((obj = (TQObject)LookupObject (instance)) == null) return;
try
{
- if ((ev = (TTQEvent)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 TTQEvent;
+ ev = Activator.CreateInstance (evtype, bflags, null, args, null) as TQEvent;
}
// Notify global event handlers first.
@@ -375,92 +375,92 @@ namespace Qt {
// Global events.
public static event TQChildHandler childHandler {
- add { EventList.Add ("TTQChildEvent", value); }
- remove { EventList.Remove ("TTQChildEvent", value); }
+ add { EventList.Add ("TQChildEvent", value); }
+ remove { EventList.Remove ("TQChildEvent", value); }
}
public static event TQDragEnterHandler dragEnterHandler {
- add { EventList.Add ("TTQDragEnterEvent", value); }
- remove { EventList.Remove ("TTQDragEnterEvent", value); }
+ add { EventList.Add ("TQDragEnterEvent", value); }
+ remove { EventList.Remove ("TQDragEnterEvent", value); }
}
public static event TQDropHandler dropHandler {
- add { EventList.Add ("TTQDropEvent", value); }
- remove { EventList.Remove ("TTQDropEvent", value); }
+ add { EventList.Add ("TQDropEvent", value); }
+ remove { EventList.Remove ("TQDropEvent", value); }
}
public static event TQIMHandler imHandler {
add { EventList.Add ("TQIMEvent", value); }
remove { EventList.Remove ("TQIMEvent", value); }
}
public static event TQPaintHandler paintHandler {
- add { EventList.Add ("TTQPaintEvent", value); }
- remove { EventList.Remove ("TTQPaintEvent", value); }
+ add { EventList.Add ("TQPaintEvent", value); }
+ remove { EventList.Remove ("TQPaintEvent", value); }
}
public static event TQTimerHandler timerHandler {
- add { EventList.Add ("TTQTimerEvent", value); }
- remove { EventList.Remove ("TTQTimerEvent", value); }
+ add { EventList.Add ("TQTimerEvent", value); }
+ remove { EventList.Remove ("TQTimerEvent", value); }
}
public static event TQCloseHandler closeHandler {
- add { EventList.Add ("TTQCloseEvent", value); }
- remove { EventList.Remove ("TTQCloseEvent", value); }
+ add { EventList.Add ("TQCloseEvent", value); }
+ remove { EventList.Remove ("TQCloseEvent", value); }
}
public static event TQDragLeaveHandler dragLeaveHandler {
- add { EventList.Add ("TTQDragLeaveEvent", value); }
- remove { EventList.Remove ("TTQDragLeaveEvent", value); }
+ add { EventList.Add ("TQDragLeaveEvent", value); }
+ remove { EventList.Remove ("TQDragLeaveEvent", value); }
}
public static event TQEventHandler eventHandler {
add { EventList.Add ("TQEventEvent", value); }
remove { EventList.Remove ("TQEventEvent", value); }
}
public static event TQKeyHandler keyHandler {
- add { EventList.Add ("TTQKeyEvent", value); }
- remove { EventList.Remove ("TTQKeyEvent", value); }
+ add { EventList.Add ("TQKeyEvent", value); }
+ remove { EventList.Remove ("TQKeyEvent", value); }
}
public static event TQResizeHandler resizeHandler {
- add { EventList.Add ("TTQResizeEvent", value); }
- remove { EventList.Remove ("TTQResizeEvent", value); }
+ add { EventList.Add ("TQResizeEvent", value); }
+ remove { EventList.Remove ("TQResizeEvent", value); }
}
public static event TQWheelHandler wheelHandler {
- add { EventList.Add ("TTQWheelEvent", value); }
- remove { EventList.Remove ("TTQWheelEvent", value); }
+ add { EventList.Add ("TQWheelEvent", value); }
+ remove { EventList.Remove ("TQWheelEvent", value); }
}
public static event TQContextMenuHandler contextMenuHandler {
- add { EventList.Add ("TTQContextMenuEvent", value); }
- remove { EventList.Remove ("TTQContextMenuEvent", value); }
+ add { EventList.Add ("TQContextMenuEvent", value); }
+ remove { EventList.Remove ("TQContextMenuEvent", value); }
}
public static event TQDragMoveHandler dragMoveHandler {
- add { EventList.Add ("TTQDragMoveEvent", value); }
- remove { EventList.Remove ("TTQDragMoveEvent", value); }
+ add { EventList.Add ("TQDragMoveEvent", value); }
+ remove { EventList.Remove ("TQDragMoveEvent", value); }
}
public static event TQFocusHandler focusHandler {
- add { EventList.Add ("TTQFocusEvent", value); }
- remove { EventList.Remove ("TTQFocusEvent", value); }
+ add { EventList.Add ("TQFocusEvent", value); }
+ remove { EventList.Remove ("TQFocusEvent", value); }
}
public static event TQMouseHandler mouseHandler {
- add { EventList.Add ("TTQMouseEvent", value); }
- remove { EventList.Remove ("TTQMouseEvent", value); }
+ add { EventList.Add ("TQMouseEvent", value); }
+ remove { EventList.Remove ("TQMouseEvent", value); }
}
public static event TQShowHandler showHandler {
- add { EventList.Add ("TTQShowEvent", value); }
- remove { EventList.Remove ("TTQShowEvent", value); }
+ add { EventList.Add ("TQShowEvent", value); }
+ remove { EventList.Remove ("TQShowEvent", value); }
}
public static event TQCustomHandler customHandler {
- add { EventList.Add ("TTQCustomEvent", value); }
- remove { EventList.Remove ("TTQCustomEvent", value); }
+ add { EventList.Add ("TQCustomEvent", value); }
+ remove { EventList.Remove ("TQCustomEvent", value); }
}
public static event TQDragResponseHandler dragResponseHandler {
- add { EventList.Add ("TTQDragResponseEvent", value); }
- remove { EventList.Remove ("TTQDragResponseEvent", value); }
+ add { EventList.Add ("TQDragResponseEvent", value); }
+ remove { EventList.Remove ("TQDragResponseEvent", value); }
}
public static event TQHideHandler hideHandler {
- add { EventList.Add ("TTQHideEvent", value); }
- remove { EventList.Remove ("TTQHideEvent", value); }
+ add { EventList.Add ("TQHideEvent", value); }
+ remove { EventList.Remove ("TQHideEvent", value); }
}
public static event TQMoveHandler moveHandler {
- add { EventList.Add ("TTQMoveEvent", value); }
- remove { EventList.Remove ("TTQMoveEvent", value); }
+ add { EventList.Add ("TQMoveEvent", value); }
+ remove { EventList.Remove ("TQMoveEvent", value); }
}
public static event TQTabletHandler tabletHandler {
- add { EventList.Add ("TTQTabletEvent", value); }
- remove { EventList.Remove ("TTQTabletEvent", 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 (TTQChildEvent e);
- protected delegate void CloseEvent (TTQCloseEvent e);
- protected delegate void ContentsContextMenuEvent (TTQContextMenuEvent e);
- protected delegate void ContentsDragEnterEvent (TTQDragEnterEvent e);
- protected delegate void ContentsDragLeaveEvent (TTQDragLeaveEvent e);
- protected delegate void ContentsDragMoveEvent (TTQDragMoveEvent e);
- protected delegate void ContentsDropEvent (TTQDropEvent e);
- protected delegate void ContentsMouseDoubleClickEvent (TTQMouseEvent e);
- protected delegate void ContentsMouseMoveEvent (TTQMouseEvent e);
- protected delegate void ContentsMousePressEvent (TTQMouseEvent e);
- protected delegate void ContentsMouseReleaseEvent (TTQMouseEvent e);
- protected delegate void ContentsWheelEvent (TTQWheelEvent e);
- protected delegate void ContextMenuEvent (TTQContextMenuEvent e);
- protected delegate void CustomEvent (TTQCustomEvent e);
- protected delegate void DragEnterEvent (TTQDragEnterEvent e);
- protected delegate void DragLeaveEvent (TTQDragLeaveEvent e);
- protected delegate void DragMoveEvent (TTQDragMoveEvent e);
- protected delegate void DropEvent (TTQDropEvent e);
- protected delegate void EnterEvent (TTQEvent e);
- protected delegate void FocusInEvent (TTQFocusEvent e);
- protected delegate void FocusOutEvent (TTQFocusEvent e);
- protected delegate void HideEvent (TTQHideEvent e);
- protected delegate void IMComposeEvent (TTQIMEvent e);
- protected delegate void IMEndEvent (TTQIMEvent e);
- protected delegate void IMStartEvent (TTQIMEvent e);
- protected delegate void KeyPressEvent (TTQKeyEvent e);
- protected delegate void KeyReleaseEvent (TTQKeyEvent e);
- protected delegate void LeaveEvent (TTQEvent e);
- protected delegate void MouseDoubleClickEvent (TTQMouseEvent e);
- protected delegate void MouseMoveEvent (TTQMouseEvent e);
- protected delegate void MousePressEvent (TTQMouseEvent e);
- protected delegate void MouseReleaseEvent (TTQMouseEvent e);
- protected delegate void MoveEvent (TTQMoveEvent e);
- protected delegate void PaintEvent (TTQPaintEvent e);
- protected delegate void ResizeEvent (TTQResizeEvent e);
- protected delegate void ShowEvent (TTQShowEvent e);
- protected delegate void TabletEvent (TTQTabletEvent e);
- protected delegate void TimerEvent (TTQTimerEvent e);
- protected delegate void ViewportContextMenuEvent (TTQContextMenuEvent e);
- protected delegate void ViewportDragEnterEvent (TTQDragEnterEvent e);
- protected delegate void ViewportDragLeaveEvent (TTQDragLeaveEvent e);
- protected delegate void ViewportDragMoveEvent (TTQDragMoveEvent e);
- protected delegate void ViewportDropEvent (TTQDropEvent e);
- protected delegate void ViewportMouseDoubleClickEvent (TTQMouseEvent e);
- protected delegate void ViewportMouseMoveEvent (TTQMouseEvent e);
- protected delegate void ViewportMousePressEvent (TTQMouseEvent e);
- protected delegate void ViewportMouseReleaseEvent (TTQMouseEvent e);
- protected delegate void ViewportPaintEvent (TTQPaintEvent e);
- protected delegate void ViewportResizeEvent (TTQResizeEvent e);
- protected delegate void ViewportWheelEvent (TTQWheelEvent e);
- protected delegate void WheelEvent (TTQWheelEvent 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 TQChildHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQDragEnterHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQDropHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQIMHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQPaintHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQTimerHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQCloseHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQDragLeaveHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQEventHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQKeyHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQResizeHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQWheelHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQContextMenuHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQDragMoveHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQFocusHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQMouseHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQShowHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQCustomHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQDragResponseHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQHideHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQMoveHandler (TTQObject sender, TQEventArgs e);
- public delegate void TQTabletHandler (TTQObject sender, TQEventArgs e);
+ public delegate void TQChildHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQDragEnterHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQDropHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQIMHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQPaintHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQTimerHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQCloseHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQDragLeaveHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQEventHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQKeyHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQResizeHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQWheelHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQContextMenuHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQDragMoveHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQFocusHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQMouseHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQShowHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQCustomHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQDragResponseHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQHideHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQMoveHandler (TQObject sender, TQEventArgs e);
+ public delegate void TQTabletHandler (TQObject sender, TQEventArgs e);
}