diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /qtsharp/src/bindings/static/QWidgetStack.cs | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtsharp/src/bindings/static/QWidgetStack.cs')
-rw-r--r-- | qtsharp/src/bindings/static/QWidgetStack.cs | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/qtsharp/src/bindings/static/QWidgetStack.cs b/qtsharp/src/bindings/static/QWidgetStack.cs index f48da641..fea0944c 100644 --- a/qtsharp/src/bindings/static/QWidgetStack.cs +++ b/qtsharp/src/bindings/static/QWidgetStack.cs @@ -1,4 +1,4 @@ -// QWidgetStack.cs - A Qt to C# binding. +// TQWidgetStack.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -25,13 +25,13 @@ namespace Qt { using System.Collections; using System.Runtime.InteropServices; - public class QWidgetStack : QFrame, IDisposable { + public class TQWidgetStack : TQFrame, IDisposable { private ArrayList widgets; [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QWidgetStack (IntPtr parent, string name); - public QWidgetStack (QWidget parent, string name) : this (QNull.Instance) + public TQWidgetStack (TQWidget parent, string name) : this (QNull.Instance) { if ((qparent = parent) != null) qparent.AddChild (this); @@ -39,22 +39,22 @@ namespace Qt { RegisterObject (this); } - public QWidgetStack () : this (new QWidget ()) {} + public TQWidgetStack () : this (new TQWidget ()) {} - public QWidgetStack (QWidget parent) : this (parent, "") {} + public TQWidgetStack (TQWidget parent) : this (parent, "") {} - internal QWidgetStack (IntPtr ptr) : this (QNull.Instance) + internal TQWidgetStack (IntPtr ptr) : this (QNull.Instance) { rawObject = ptr; RegisterObject(this); } - internal QWidgetStack (QNull dummy) : base (QNull.Instance) + internal TQWidgetStack (QNull dummy) : base (QNull.Instance) { widgets = new ArrayList (); } - ~QWidgetStack () + ~TQWidgetStack () { Dispose (false); } @@ -71,7 +71,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QWidgetStack_addWidget (IntPtr raw, IntPtr arg1, int arg2); - public int AddWidget (QWidget arg1, int arg2) + public int AddWidget (TQWidget arg1, int arg2) { if (! widgets.Contains (arg1)) widgets.Add (arg1); return qt_QWidgetStack_addWidget (RawObject, arg1.RawObject, arg2); @@ -79,7 +79,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QWidgetStack_removeWidget (IntPtr raw, IntPtr arg1); - public void RemoveWidget (QWidget arg1) + public void RemoveWidget (TQWidget arg1) { widgets.Remove (arg1); qt_QWidgetStack_removeWidget (RawObject, arg1.RawObject); @@ -87,16 +87,16 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QWidgetStack_sizeHint (IntPtr raw); - public QSize SizeHint () + public TQSize SizeHint () { - return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(QSize)) as QSize; + return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(TQSize)) as QSize; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QWidgetStack_minimumSizeHint (IntPtr raw); - public QSize MinimumSizeHint () + public TQSize MinimumSizeHint () { - return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(QSize)) as QSize; + return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(TQSize)) as QSize; } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -108,28 +108,28 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QWidgetStack_widget (IntPtr raw, int arg1); - public QWidget Widget (int arg1) + public TQWidget Widget (int arg1) { - return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(QWidget)) as QWidget; + return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(TQWidget)) as QWidget; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QWidgetStack_id (IntPtr raw, IntPtr arg1); - public int Id (QWidget arg1) + public int Id (TQWidget arg1) { return qt_QWidgetStack_id (RawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QWidgetStack_visibleWidget (IntPtr raw); - public QWidget VisibleWidget () + public TQWidget VisibleWidget () { - return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(QWidget)) as QWidget; + return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(TQWidget)) as QWidget; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QWidgetStack_setFrameRect (IntPtr raw, IntPtr arg1); - public void SetFrameRect (QRect arg1) + public void SetFrameRect (TQRect arg1) { qt_QWidgetStack_setFrameRect (RawObject, arg1.RawObject); } @@ -143,7 +143,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QWidgetStack_raiseWidget1 (IntPtr raw, IntPtr arg1); - public void RaiseWidget (QWidget arg1) + public void RaiseWidget (TQWidget arg1) { qt_QWidgetStack_raiseWidget1 (RawObject, arg1.RawObject); } @@ -162,7 +162,7 @@ namespace Qt { qt_QWidgetStack_setChildGeometries (RawObject); } - public int AddWidget (QWidget arg1) + public int AddWidget (TQWidget arg1) { return AddWidget(arg1, (int) -1); } |