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.cs318
1 files changed, 159 insertions, 159 deletions
diff --git a/qtsharp/src/bindings/static/QtSupport.cs b/qtsharp/src/bindings/static/QtSupport.cs
index c0ad30ed..acb45de7 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 TQApplication.ParseArguments
+ // Runtime flags, set by TTQApplication.ParseArguments
internal static bool enableDebug;
internal static bool disableTracking;
internal static bool traceObjects;
@@ -66,16 +66,16 @@ namespace Qt {
get { return disposed; }
}
- public QtSupport QParent {
+ public QtSupport TQParent {
get { return qparent; }
}
- public ArrayList QChildren {
+ public ArrayList TQChildren {
get { return qchildren; }
}
// A dummy constructor for inherited classes
- internal QtSupport (QNull dummy) {
+ internal QtSupport (TQNull dummy) {
disposed = false;
deleted = false;
qchildren = new ArrayList ();
@@ -129,19 +129,19 @@ namespace Qt {
/************************** General Utility Methods *********************************/
- public static void QAssert (bool value)
+ public static void TQAssert (bool value)
{
if (!value) throw new ApplicationException ("Assertion failed");
}
- public static void QAssert (bool value, string message)
+ public static void TQAssert (bool value, string message)
{
if (!value) throw new ApplicationException ("Assertion failed: " + message);
}
- internal bool IsQObject ()
+ internal bool IsTQObject ()
{
- return GetType ().IsSubclassOf (typeof (TQObject));
+ return GetType ().IsSubclassOf (typeof (TTQObject));
}
internal static void WarnMsg (string format, params object[] arg)
@@ -196,7 +196,7 @@ namespace Qt {
if (QtObjects.ContainsKey (o.RawObject))
{
wref = QtObjects[o.RawObject] as WeakReference;
- QAssert (! wref.IsAlive,
+ TQAssert (! wref.IsAlive,
"New object "+o+" has same RawObject as "+(QtSupport)wref.Target+"! Please report this error!");
replacing = "(replacing)";
QtObjects.Remove (o.RawObject);
@@ -283,7 +283,7 @@ namespace Qt {
new object[] {ptr},
null);
- // FIXME Must handle cases where qtsObj is a TQObject root
+ // FIXME Must handle cases where qtsObj is a TTQObject 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
@@ -316,7 +316,7 @@ namespace Qt {
private delegate void QtEventHandler (IntPtr instance, string eventname, IntPtr eventinstance, string eventclass);
- private static QEventList eventList = new QEventList ();
+ private static TQEventList eventList = new TQEventList ();
[DllImport("libqtsharp", CharSet=CharSet.Ansi)]
private static extern void qtsharp_QObject_registerEventDelegate
@@ -328,37 +328,37 @@ namespace Qt {
qtsharp_QObject_registerEventDelegate (qtEventHandler);
}
- internal static QEventList EventList {
+ internal static TQEventList EventList {
get { return eventList; }
}
private static void DispatchEvent (IntPtr instance, string eventname, IntPtr eventinstance, string eventclass)
{
ArrayList array;
- TQObject obj;
- TQEvent ev;
+ TTQObject obj;
+ TTQEvent ev;
Type evtype = Type.GetType ("Qt."+eventclass+",Qt");
- if ((obj = (TQObject)LookupObject (instance)) == null) return;
+ if ((obj = (TTQObject)LookupObject (instance)) == null) return;
try
{
- if ((ev = (TQEvent)LookupObject (eventinstance)) == null) {
+ if ((ev = (TTQEvent)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 TQEvent;
+ ev = Activator.CreateInstance (evtype, bflags, null, args, null) as TTQEvent;
}
// Notify global event handlers first.
- if ((array = EventList.QEventHandlers (eventclass)) != null) {
+ if ((array = EventList.TQEventHandlers (eventclass)) != null) {
foreach (Delegate del in array) {
- QEventArgs evargs = new QEventArgs (eventname, ev);
+ TQEventArgs evargs = new TQEventArgs (eventname, ev);
del.DynamicInvoke (new object[] { obj, evargs });
}
}
// Notify local event handlers second.
- if ((array = EventList.QEventHandlers (eventname)) != null) {
+ if ((array = EventList.TQEventHandlers (eventname)) != null) {
foreach (Delegate del in array) {
if (ReferenceEquals (del.Target, obj))
del.DynamicInvoke (new object[] { ev });
@@ -374,93 +374,93 @@ namespace Qt {
}
// Global events.
- public static event QChildHandler childHandler {
- add { EventList.Add ("TQChildEvent", value); }
- remove { EventList.Remove ("TQChildEvent", value); }
+ public static event TQChildHandler childHandler {
+ add { EventList.Add ("TTQChildEvent", value); }
+ remove { EventList.Remove ("TTQChildEvent", value); }
}
- public static event QDragEnterHandler dragEnterHandler {
- add { EventList.Add ("TQDragEnterEvent", value); }
- remove { EventList.Remove ("TQDragEnterEvent", value); }
+ public static event TQDragEnterHandler dragEnterHandler {
+ add { EventList.Add ("TTQDragEnterEvent", value); }
+ remove { EventList.Remove ("TTQDragEnterEvent", value); }
}
- public static event QDropHandler dropHandler {
- add { EventList.Add ("TQDropEvent", value); }
- remove { EventList.Remove ("TQDropEvent", value); }
+ public static event TQDropHandler dropHandler {
+ add { EventList.Add ("TTQDropEvent", value); }
+ remove { EventList.Remove ("TTQDropEvent", value); }
}
- public static event QIMHandler imHandler {
- add { EventList.Add ("QIMEvent", value); }
- remove { EventList.Remove ("QIMEvent", value); }
+ public static event TQIMHandler imHandler {
+ add { EventList.Add ("TQIMEvent", value); }
+ remove { EventList.Remove ("TQIMEvent", value); }
}
- public static event QPaintHandler paintHandler {
- add { EventList.Add ("TQPaintEvent", value); }
- remove { EventList.Remove ("TQPaintEvent", value); }
+ public static event TQPaintHandler paintHandler {
+ add { EventList.Add ("TTQPaintEvent", value); }
+ remove { EventList.Remove ("TTQPaintEvent", value); }
}
- public static event QTimerHandler timerHandler {
- add { EventList.Add ("TQTimerEvent", value); }
- remove { EventList.Remove ("TQTimerEvent", value); }
+ public static event TQTimerHandler timerHandler {
+ add { EventList.Add ("TTQTimerEvent", value); }
+ remove { EventList.Remove ("TTQTimerEvent", value); }
}
- public static event QCloseHandler closeHandler {
- add { EventList.Add ("TQCloseEvent", value); }
- remove { EventList.Remove ("TQCloseEvent", value); }
+ public static event TQCloseHandler closeHandler {
+ add { EventList.Add ("TTQCloseEvent", value); }
+ remove { EventList.Remove ("TTQCloseEvent", value); }
}
- public static event QDragLeaveHandler dragLeaveHandler {
- add { EventList.Add ("TQDragLeaveEvent", value); }
- remove { EventList.Remove ("TQDragLeaveEvent", value); }
+ public static event TQDragLeaveHandler dragLeaveHandler {
+ add { EventList.Add ("TTQDragLeaveEvent", value); }
+ remove { EventList.Remove ("TTQDragLeaveEvent", value); }
}
- public static event QEventHandler eventHandler {
- add { EventList.Add ("QEventEvent", value); }
- remove { EventList.Remove ("QEventEvent", value); }
+ public static event TQEventHandler eventHandler {
+ add { EventList.Add ("TQEventEvent", value); }
+ remove { EventList.Remove ("TQEventEvent", value); }
}
- public static event QKeyHandler keyHandler {
- add { EventList.Add ("TQKeyEvent", value); }
- remove { EventList.Remove ("TQKeyEvent", value); }
+ public static event TQKeyHandler keyHandler {
+ add { EventList.Add ("TTQKeyEvent", value); }
+ remove { EventList.Remove ("TTQKeyEvent", value); }
}
- public static event QResizeHandler resizeHandler {
- add { EventList.Add ("TQResizeEvent", value); }
- remove { EventList.Remove ("TQResizeEvent", value); }
+ public static event TQResizeHandler resizeHandler {
+ add { EventList.Add ("TTQResizeEvent", value); }
+ remove { EventList.Remove ("TTQResizeEvent", value); }
}
- public static event QWheelHandler wheelHandler {
- add { EventList.Add ("TQWheelEvent", value); }
- remove { EventList.Remove ("TQWheelEvent", value); }
+ public static event TQWheelHandler wheelHandler {
+ add { EventList.Add ("TTQWheelEvent", value); }
+ remove { EventList.Remove ("TTQWheelEvent", value); }
}
- public static event QContextMenuHandler contextMenuHandler {
- add { EventList.Add ("TQContextMenuEvent", value); }
- remove { EventList.Remove ("TQContextMenuEvent", value); }
+ public static event TQContextMenuHandler contextMenuHandler {
+ add { EventList.Add ("TTQContextMenuEvent", value); }
+ remove { EventList.Remove ("TTQContextMenuEvent", value); }
}
- public static event QDragMoveHandler dragMoveHandler {
- add { EventList.Add ("TQDragMoveEvent", value); }
- remove { EventList.Remove ("TQDragMoveEvent", value); }
+ public static event TQDragMoveHandler dragMoveHandler {
+ add { EventList.Add ("TTQDragMoveEvent", value); }
+ remove { EventList.Remove ("TTQDragMoveEvent", value); }
}
- public static event QFocusHandler focusHandler {
- add { EventList.Add ("TQFocusEvent", value); }
- remove { EventList.Remove ("TQFocusEvent", value); }
+ public static event TQFocusHandler focusHandler {
+ add { EventList.Add ("TTQFocusEvent", value); }
+ remove { EventList.Remove ("TTQFocusEvent", value); }
}
- public static event QMouseHandler mouseHandler {
- add { EventList.Add ("TQMouseEvent", value); }
- remove { EventList.Remove ("TQMouseEvent", value); }
+ public static event TQMouseHandler mouseHandler {
+ add { EventList.Add ("TTQMouseEvent", value); }
+ remove { EventList.Remove ("TTQMouseEvent", value); }
}
- public static event QShowHandler showHandler {
- add { EventList.Add ("TQShowEvent", value); }
- remove { EventList.Remove ("TQShowEvent", value); }
+ public static event TQShowHandler showHandler {
+ add { EventList.Add ("TTQShowEvent", value); }
+ remove { EventList.Remove ("TTQShowEvent", value); }
}
- public static event QCustomHandler customHandler {
- add { EventList.Add ("TQCustomEvent", value); }
- remove { EventList.Remove ("TQCustomEvent", value); }
+ public static event TQCustomHandler customHandler {
+ add { EventList.Add ("TTQCustomEvent", value); }
+ remove { EventList.Remove ("TTQCustomEvent", value); }
}
- public static event QDragResponseHandler dragResponseHandler {
- add { EventList.Add ("TQDragResponseEvent", value); }
- remove { EventList.Remove ("TQDragResponseEvent", value); }
+ public static event TQDragResponseHandler dragResponseHandler {
+ add { EventList.Add ("TTQDragResponseEvent", value); }
+ remove { EventList.Remove ("TTQDragResponseEvent", value); }
}
- public static event QHideHandler hideHandler {
- add { EventList.Add ("TQHideEvent", value); }
- remove { EventList.Remove ("TQHideEvent", value); }
+ public static event TQHideHandler hideHandler {
+ add { EventList.Add ("TTQHideEvent", value); }
+ remove { EventList.Remove ("TTQHideEvent", value); }
}
- public static event QMoveHandler moveHandler {
- add { EventList.Add ("TQMoveEvent", value); }
- remove { EventList.Remove ("TQMoveEvent", value); }
+ public static event TQMoveHandler moveHandler {
+ add { EventList.Add ("TTQMoveEvent", value); }
+ remove { EventList.Remove ("TTQMoveEvent", value); }
}
- public static event QTabletHandler tabletHandler {
- add { EventList.Add ("TQTabletEvent", value); }
- remove { EventList.Remove ("TQTabletEvent", value); }
+ public static event TQTabletHandler tabletHandler {
+ add { EventList.Add ("TTQTabletEvent", value); }
+ remove { EventList.Remove ("TTQTabletEvent", value); }
}
// Local events.
@@ -670,81 +670,81 @@ namespace Qt {
}
// The local event delegates.
- 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);
+ 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);
}
// The global event delegates.
- 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);
+ 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);
}