diff options
Diffstat (limited to 'qtsharp/src/bindings')
44 files changed, 1197 insertions, 1197 deletions
diff --git a/qtsharp/src/bindings/Makefile.am b/qtsharp/src/bindings/Makefile.am index 9fffe16d..e787a487 100644 --- a/qtsharp/src/bindings/Makefile.am +++ b/qtsharp/src/bindings/Makefile.am @@ -1,6 +1,6 @@ all: Qt.dll -TTQWidget.cs: +TQWidget.cs: $(CLI) ../generator/generator.exe -f ../api/qt.xml -d . Qt.dll: TQWidget.cs $(wildcard *.cs) $(wildcard static/*.cs) diff --git a/qtsharp/src/bindings/static/AlignmentFlags.cs b/qtsharp/src/bindings/static/AlignmentFlags.cs index 7f02b873..520c7ad0 100644 --- a/qtsharp/src/bindings/static/AlignmentFlags.cs +++ b/qtsharp/src/bindings/static/AlignmentFlags.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/ArrowType.cs b/qtsharp/src/bindings/static/ArrowType.cs index e7e924ac..d11bbf45 100644 --- a/qtsharp/src/bindings/static/ArrowType.cs +++ b/qtsharp/src/bindings/static/ArrowType.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/BGMode.cs b/qtsharp/src/bindings/static/BGMode.cs index 1b6d879b..c92a54bf 100644 --- a/qtsharp/src/bindings/static/BGMode.cs +++ b/qtsharp/src/bindings/static/BGMode.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/BackgroundMode.cs b/qtsharp/src/bindings/static/BackgroundMode.cs index 16c57a3e..81c80a59 100644 --- a/qtsharp/src/bindings/static/BackgroundMode.cs +++ b/qtsharp/src/bindings/static/BackgroundMode.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/BrushStyle.cs b/qtsharp/src/bindings/static/BrushStyle.cs index 7431cc4d..7fb5831a 100644 --- a/qtsharp/src/bindings/static/BrushStyle.cs +++ b/qtsharp/src/bindings/static/BrushStyle.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/ButtonState.cs b/qtsharp/src/bindings/static/ButtonState.cs index 7a8eff58..3cca899f 100644 --- a/qtsharp/src/bindings/static/ButtonState.cs +++ b/qtsharp/src/bindings/static/ButtonState.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/CursorShape.cs b/qtsharp/src/bindings/static/CursorShape.cs index 857f8782..5d73d689 100644 --- a/qtsharp/src/bindings/static/CursorShape.cs +++ b/qtsharp/src/bindings/static/CursorShape.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/DateFormat.cs b/qtsharp/src/bindings/static/DateFormat.cs index 75d90ef1..1b2e93c2 100644 --- a/qtsharp/src/bindings/static/DateFormat.cs +++ b/qtsharp/src/bindings/static/DateFormat.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/Dock.cs b/qtsharp/src/bindings/static/Dock.cs index ec6c0dcd..34875514 100644 --- a/qtsharp/src/bindings/static/Dock.cs +++ b/qtsharp/src/bindings/static/Dock.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/GUIStyle.cs b/qtsharp/src/bindings/static/GUIStyle.cs index a3aca26e..6fe4a287 100644 --- a/qtsharp/src/bindings/static/GUIStyle.cs +++ b/qtsharp/src/bindings/static/GUIStyle.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/IQMenuData.cs b/qtsharp/src/bindings/static/IQMenuData.cs index f4653547..92df1941 100644 --- a/qtsharp/src/bindings/static/IQMenuData.cs +++ b/qtsharp/src/bindings/static/IQMenuData.cs @@ -1,4 +1,4 @@ -// TTQMenuData.cs - A Qt to C# binding. +// TQMenuData.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -27,39 +27,39 @@ namespace Qt { public interface ITQMenuData { Hashtable MenuConnections { get; } uint Count (); - int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index); - int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index); - int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index); + int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index); + int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index); + int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index); + int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index); int InsertItem (string text, int identifier, int index); - int InsertItem (TTQIconSet icon, string text, int identifier, int index); - int InsertItem (string text, TTQPopupMenu popup, int identifier, int index); - int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier, int index); - int InsertItem (TTQPixmap pixmap, int identifier, int index); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier, int index); - int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index); - int InsertItem (TTQWidget widget, int identifier, int index); - int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier, int index); - int InsertItem (TTQCustomMenuItem custom, int identifier, int index); + int InsertItem (TQIconSet icon, string text, int identifier, int index); + int InsertItem (string text, TQPopupMenu popup, int identifier, int index); + int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier, int index); + int InsertItem (TQPixmap pixmap, int identifier, int index); + int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier, int index); + int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier, int index); + int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier, int index); + int InsertItem (TQWidget widget, int identifier, int index); + int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier, int index); + int InsertItem (TQCustomMenuItem custom, int identifier, int index); int InsertSeparator (int index); void RemoveItem (int identifier); void RemoveItemAt (int index); void Clear (); - TTQKeySequence Accel (int identifier); - void SetAccel (TTQKeySequence key, int identifier); - TTQIconSet IconSet (int identifier); + TQKeySequence Accel (int identifier); + void SetAccel (TQKeySequence key, int identifier); + TQIconSet IconSet (int identifier); string Text (int identifier); - TTQPixmap Pixmap (int identifier); + TQPixmap Pixmap (int identifier); void SetWhatsThis (int identifier, string arg1); string WhatsThis (int identifier); void ChangeItem (int identifier, string text); - void ChangeItem (int identifier, TTQPixmap pixmap); - void ChangeItem (int identifier, TTQIconSet icon, string text); - void ChangeItem (int identifier, TTQIconSet icon, TTQPixmap pixmap); + void ChangeItem (int identifier, TQPixmap pixmap); + void ChangeItem (int identifier, TQIconSet icon, string text); + void ChangeItem (int identifier, TQIconSet icon, TQPixmap pixmap); void ChangeItem (string text, int identifier); - void ChangeItem (TTQPixmap pixmap, int identifier); - void ChangeItem (TTQIconSet icon, string text, int identifier); + void ChangeItem (TQPixmap pixmap, int identifier); + void ChangeItem (TQIconSet icon, string text, int identifier); bool IsItemActive (int identifier); bool IsItemEnabled (int identifier); void SetItemEnabled (int identifier, bool enable); @@ -67,49 +67,49 @@ namespace Qt { void SetItemChecked (int identifier, bool check); int IndexOf (int identifier); void SetId (int index, int identifier); - bool ConnectItem (int identifier, TTQObject receiver, string member); - bool DisconnectItem (int identifier, TTQObject receiver, string member); + bool ConnectItem (int identifier, TQObject receiver, string member); + bool DisconnectItem (int identifier, TQObject receiver, string member); bool SetItemParameter (int identifier, int param); int ItemParameter (int identifier); - TTQMenuItem FindItem (int identifier); - TTQMenuItem FindItem (int identifier, TTQMenuData parent); - TTQMenuItem FindPopup (TTQPopupMenu arg1, int[] index); - int InsertItem (string text, TTQObject receiver, string member); - int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel); - int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier); - int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member); - int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel); - int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier); - int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member); - int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel); - int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier); + TQMenuItem FindItem (int identifier); + TQMenuItem FindItem (int identifier, TQMenuData parent); + TQMenuItem FindPopup (TQPopupMenu arg1, int[] index); + int InsertItem (string text, TQObject receiver, string member); + int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel); + int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier); + int InsertItem (TQIconSet icon, string text, TQObject receiver, string member); + int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel); + int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier); + int InsertItem (TQPixmap pixmap, TQObject receiver, string member); + int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel); + int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier); + int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member); + int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel); + int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier); int InsertItem (string text); int InsertItem (string text, int identifier); - int InsertItem (TTQIconSet icon, string text); - int InsertItem (TTQIconSet icon, string text, int identifier); - int InsertItem (string text, TTQPopupMenu popup); - int InsertItem (string text, TTQPopupMenu popup, int identifier); - int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup); - int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier); - int InsertItem (TTQPixmap pixmap); - int InsertItem (TTQPixmap pixmap, int identifier); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier); - int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup); - int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup); - int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier); - int InsertItem (TTQWidget widget); - int InsertItem (TTQWidget widget, int identifier); - int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom); - int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier); - int InsertItem (TTQCustomMenuItem custom); - int InsertItem (TTQCustomMenuItem custom, int identifier); + int InsertItem (TQIconSet icon, string text); + int InsertItem (TQIconSet icon, string text, int identifier); + int InsertItem (string text, TQPopupMenu popup); + int InsertItem (string text, TQPopupMenu popup, int identifier); + int InsertItem (TQIconSet icon, string text, TQPopupMenu popup); + int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier); + int InsertItem (TQPixmap pixmap); + int InsertItem (TQPixmap pixmap, int identifier); + int InsertItem (TQIconSet icon, TQPixmap pixmap); + int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier); + int InsertItem (TQPixmap pixmap, TQPopupMenu popup); + int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier); + int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup); + int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier); + int InsertItem (TQWidget widget); + int InsertItem (TQWidget widget, int identifier); + int InsertItem (TQIconSet icon, TQCustomMenuItem custom); + int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier); + int InsertItem (TQCustomMenuItem custom); + int InsertItem (TQCustomMenuItem custom, int identifier); int InsertSeparator (); - TTQMenuItem FindPopup (TTQPopupMenu arg1); - //IntPtr TTQMenuData (); + TQMenuItem FindPopup (TQPopupMenu arg1); + //IntPtr TQMenuData (); } } diff --git a/qtsharp/src/bindings/static/ImageConversionFlags.cs b/qtsharp/src/bindings/static/ImageConversionFlags.cs index e8da5314..349b4e7a 100644 --- a/qtsharp/src/bindings/static/ImageConversionFlags.cs +++ b/qtsharp/src/bindings/static/ImageConversionFlags.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/Key.cs b/qtsharp/src/bindings/static/Key.cs index eb17cd6e..a1b0883b 100644 --- a/qtsharp/src/bindings/static/Key.cs +++ b/qtsharp/src/bindings/static/Key.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/Modifier.cs b/qtsharp/src/bindings/static/Modifier.cs index ed6765ba..722bb37b 100644 --- a/qtsharp/src/bindings/static/Modifier.cs +++ b/qtsharp/src/bindings/static/Modifier.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/Orientation.cs b/qtsharp/src/bindings/static/Orientation.cs index c943cbcb..757adef7 100644 --- a/qtsharp/src/bindings/static/Orientation.cs +++ b/qtsharp/src/bindings/static/Orientation.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/PaintUnit.cs b/qtsharp/src/bindings/static/PaintUnit.cs index 97e6e665..92ffd012 100644 --- a/qtsharp/src/bindings/static/PaintUnit.cs +++ b/qtsharp/src/bindings/static/PaintUnit.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/PenCapStyle.cs b/qtsharp/src/bindings/static/PenCapStyle.cs index b7bdb6d5..c7898c03 100644 --- a/qtsharp/src/bindings/static/PenCapStyle.cs +++ b/qtsharp/src/bindings/static/PenCapStyle.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/PenJoinStyle.cs b/qtsharp/src/bindings/static/PenJoinStyle.cs index 7aaef279..ee8906f0 100644 --- a/qtsharp/src/bindings/static/PenJoinStyle.cs +++ b/qtsharp/src/bindings/static/PenJoinStyle.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/PenStyle.cs b/qtsharp/src/bindings/static/PenStyle.cs index 6fcd7690..1ed224b2 100644 --- a/qtsharp/src/bindings/static/PenStyle.cs +++ b/qtsharp/src/bindings/static/PenStyle.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/QApplication.cs b/qtsharp/src/bindings/static/QApplication.cs index 6d8accd4..5b78ab9e 100644 --- a/qtsharp/src/bindings/static/QApplication.cs +++ b/qtsharp/src/bindings/static/QApplication.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -25,7 +25,7 @@ namespace Qt { using System.Collections; using System.Runtime.InteropServices; - public class TTQApplication : TTQObject, IDisposable { + public class TQApplication : TQObject, IDisposable { public enum Type { Tty = 0, @@ -51,9 +51,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QApplication (int argc, string[] argv); - public TTQApplication (string[] argv) : this (TQNull.Instance) + public TQApplication (string[] argv) : this (TQNull.Instance) { - TTQObject.qApp = this; + TQObject.qApp = this; qparent = null; argv = ParseArguments (argv); rawObject = qt_new_QApplication (argv.Length, argv); @@ -63,9 +63,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QApplication1 (int argc, string[] argv, bool GUIenabled); - public TTQApplication (string[] argv, bool GUIenabled) : this (TQNull.Instance) + public TQApplication (string[] argv, bool GUIenabled) : this (TQNull.Instance) { - TTQObject.qApp = this; + TQObject.qApp = this; qparent = null; argv = ParseArguments (argv); rawObject = qt_new_QApplication1 (argv.Length, argv, GUIenabled); @@ -75,9 +75,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QApplication2 (int argc, string[] argv, Type arg1); - public TTQApplication (string[] argv, Type arg1) : this (TQNull.Instance) + public TQApplication (string[] argv, Type arg1) : this (TQNull.Instance) { - TTQObject.qApp = this; + TQObject.qApp = this; qparent = null; argv = ParseArguments (argv); rawObject = qt_new_QApplication2 (argv.Length, argv, arg1); @@ -87,9 +87,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QApplication3 (IntPtr dpy, uint visual, uint cmap); - public TTQApplication (IntPtr dpy, uint visual, uint cmap) : this (TQNull.Instance) + public TQApplication (IntPtr dpy, uint visual, uint cmap) : this (TQNull.Instance) { - TTQObject.qApp = this; + TQObject.qApp = this; qparent = null; rawObject = qt_new_QApplication3 (dpy, visual, cmap); RegisterObject (this); @@ -98,9 +98,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QApplication4 (IntPtr dpy, int argc, string[] argv, uint visual, uint cmap); - public TTQApplication (IntPtr dpy, string[] argv, uint visual, uint cmap) : this (TQNull.Instance) + public TQApplication (IntPtr dpy, string[] argv, uint visual, uint cmap) : this (TQNull.Instance) { - TTQObject.qApp = this; + TQObject.qApp = this; qparent = null; argv = ParseArguments (argv); rawObject = qt_new_QApplication4 (dpy, argv.Length, argv, visual, cmap); @@ -108,19 +108,19 @@ namespace Qt { RegisterEventDelegate (); } - public TTQApplication (IntPtr dpy) : this (dpy, (uint) 0) {} + public TQApplication (IntPtr dpy) : this (dpy, (uint) 0) {} - public TTQApplication (IntPtr dpy, uint visual) : this (dpy, visual, (uint) 0) {} + public TQApplication (IntPtr dpy, uint visual) : this (dpy, visual, (uint) 0) {} - public TTQApplication (IntPtr dpy, string[] argv) : this (dpy, argv, (uint) 0) {} + public TQApplication (IntPtr dpy, string[] argv) : this (dpy, argv, (uint) 0) {} - public TTQApplication (IntPtr dpy, string[] argv, uint visual) : this (dpy, argv, visual, (uint) 0) {} + public TQApplication (IntPtr dpy, string[] argv, uint visual) : this (dpy, argv, visual, (uint) 0) {} - internal TTQApplication () : this (TQNull.Instance) {} + internal TQApplication () : this (TQNull.Instance) {} - internal TTQApplication (TQNull dummy) : base (TQNull.Instance) {} + internal TQApplication (TQNull dummy) : base (TQNull.Instance) {} - ~TTQApplication () + ~TQApplication () { Dispose (false); } @@ -204,37 +204,37 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_mainWidget (IntPtr raw); - public TTQWidget MainWidget () + public TQWidget MainWidget () { - return (TTQWidget)LookupObject (qt_QApplication_mainWidget (rawObject), typeof(TTQWidget)); + return (TQWidget)LookupObject (qt_QApplication_mainWidget (rawObject), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setMainWidget (IntPtr raw, IntPtr arg1); - public void SetMainWidget (TTQWidget arg1) + public void SetMainWidget (TQWidget arg1) { qt_QApplication_setMainWidget (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_polish (IntPtr raw, IntPtr arg1); - public void Polish (TTQWidget arg1) + public void Polish (TQWidget arg1) { qt_QApplication_polish (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_focusWidget (IntPtr raw); - public TTQWidget FocusWidget () + public TQWidget FocusWidget () { - return (TTQWidget)LookupObject (qt_QApplication_focusWidget (rawObject), typeof(TTQWidget)); + return (TQWidget)LookupObject (qt_QApplication_focusWidget (rawObject), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_activeWindow (IntPtr raw); - public TTQWidget ActiveWindow () + public TQWidget ActiveWindow () { - return (TTQWidget)LookupObject (qt_QApplication_activeWindow (rawObject), typeof(TTQWidget)); + return (TQWidget)LookupObject (qt_QApplication_activeWindow (rawObject), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -288,23 +288,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QApplication_notify (IntPtr raw, IntPtr arg1, IntPtr arg2); - public bool Notify (TTQObject arg1, TTQEvent arg2) + public bool Notify (TQObject arg1, TQEvent arg2) { return qt_QApplication_notify (rawObject, arg1.RawObject, arg2.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setDefaultCodec (IntPtr raw, IntPtr arg1); - public void SetDefaultCodec (TTQTextCodec arg1) + public void SetDefaultCodec (TQTextCodec arg1) { qt_QApplication_setDefaultCodec (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_defaultCodec (IntPtr raw); - public TTQTextCodec DefaultCodec () + public TQTextCodec DefaultCodec () { - return (TTQTextCodec)LookupObject (qt_QApplication_defaultCodec (rawObject), typeof(TTQTextCodec)); + return (TQTextCodec)LookupObject (qt_QApplication_defaultCodec (rawObject), typeof(TQTextCodec)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -325,7 +325,7 @@ namespace Qt { private static extern IntPtr qt_QApplication_translate (IntPtr raw, string context, string key, string comment, Encoding encoding); public string Translate (string context, string key, string comment, Encoding encoding) { - TTQString qstr = new TTQString (qt_QApplication_translate (rawObject, context, key, comment, encoding)); + TQString qstr = new TQString (qt_QApplication_translate (rawObject, context, key, comment, encoding)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -354,7 +354,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QApplication_x11ClientMessage (IntPtr raw, IntPtr arg1, IntPtr arg2, bool passive_only); - public int X11ClientMessage (TTQWidget arg1, IntPtr arg2, bool passive_only) + public int X11ClientMessage (TQWidget arg1, IntPtr arg2, bool passive_only) { return qt_QApplication_x11ClientMessage (rawObject, arg1.RawObject, arg2, passive_only); } @@ -375,7 +375,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_winFocus (IntPtr raw, IntPtr arg1, bool arg2); - public void WinFocus (TTQWidget arg1, bool arg2) + public void WinFocus (TQWidget arg1, bool arg2) { qt_QApplication_winFocus (rawObject, arg1.RawObject, arg2); } @@ -391,7 +391,7 @@ namespace Qt { private static extern IntPtr qt_QApplication_sessionId (IntPtr raw); public string SessionId () { - TTQString qstr = new TTQString (qt_QApplication_sessionId (rawObject)); + TQString qstr = new TQString (qt_QApplication_sessionId (rawObject)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -483,23 +483,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_style (); - public static TTQStyle Style () + public static TQStyle Style () { - return (TTQStyle)LookupObject (qt_QApplication_style (), typeof(TTQStyle)); + return (TQStyle)LookupObject (qt_QApplication_style (), typeof(TQStyle)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setStyle (IntPtr arg1); - public static void SetStyle (TTQStyle arg1) + public static void SetStyle (TQStyle arg1) { qt_QApplication_setStyle (arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_setStyle1 (IntPtr arg1); - public static TTQStyle SetStyle (string arg1) + public static TQStyle SetStyle (string arg1) { - return (TTQStyle)LookupObject (qt_QApplication_setStyle1 (new TTQString (arg1).RawObject), typeof(TTQStyle)); + return (TQStyle)LookupObject (qt_QApplication_setStyle1 (new TQString (arg1).RawObject), typeof(TQStyle)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -510,8 +510,8 @@ namespace Qt { } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern void qt_QApplication_setColorMode (TTQApplication.ColorMode arg1); - public static void SetColorMode (TTQApplication.ColorMode arg1) + private static extern void qt_QApplication_setColorMode (TQApplication.ColorMode arg1); + public static void SetColorMode (TQApplication.ColorMode arg1) { qt_QApplication_setColorMode (arg1); } @@ -532,14 +532,14 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_overrideCursor (); - public static TTQCursor OverrideCursor () + public static TQCursor OverrideCursor () { - return (TTQCursor)LookupObject (qt_QApplication_overrideCursor (), typeof(TTQCursor)); + return (TQCursor)LookupObject (qt_QApplication_overrideCursor (), typeof(TQCursor)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setOverrideCursor (IntPtr arg1, bool replace); - public static void SetOverrideCursor (TTQCursor arg1, bool replace) + public static void SetOverrideCursor (TQCursor arg1, bool replace) { qt_QApplication_setOverrideCursor (arg1.RawObject, replace); } @@ -567,72 +567,72 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_palette (IntPtr arg1); - public static TTQPalette Palette (TTQWidget arg1) + public static TQPalette Palette (TQWidget arg1) { - return (TTQPalette)LookupObject (qt_QApplication_palette (arg1.RawObject), typeof(TTQPalette)); + return (TQPalette)LookupObject (qt_QApplication_palette (arg1.RawObject), typeof(TQPalette)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setPalette (IntPtr arg1, bool informWidgets, string className); - public static void SetPalette (TTQPalette arg1, bool informWidgets, string className) + public static void SetPalette (TQPalette arg1, bool informWidgets, string className) { qt_QApplication_setPalette (arg1.RawObject, informWidgets, className); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_font (IntPtr arg1); - public static TTQFont Font (TTQWidget arg1) + public static TQFont Font (TQWidget arg1) { - return (TTQFont)LookupObject (qt_QApplication_font (arg1.RawObject), typeof(TTQFont)); + return (TQFont)LookupObject (qt_QApplication_font (arg1.RawObject), typeof(TQFont)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setFont (IntPtr arg1, bool informWidgets, string className); - public static void SetFont (TTQFont arg1, bool informWidgets, string className) + public static void SetFont (TQFont arg1, bool informWidgets, string className) { qt_QApplication_setFont (arg1.RawObject, informWidgets, className); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_fontMetrics (); - public static TTQFontMetrics FontMetrics () + public static TQFontMetrics FontMetrics () { - return (TTQFontMetrics)LookupObject (qt_QApplication_fontMetrics (), typeof(TTQFontMetrics)); + return (TQFontMetrics)LookupObject (qt_QApplication_fontMetrics (), typeof(TQFontMetrics)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_allWidgets (); - public static TTQWidgetList AllWidgets () + public static TQWidgetList AllWidgets () { - return (TTQWidgetList)LookupObject (qt_QApplication_allWidgets (), typeof(TTQWidgetList)); + return (TQWidgetList)LookupObject (qt_QApplication_allWidgets (), typeof(TQWidgetList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_topLevelWidgets (); - public static TTQWidgetList TopLevelWidgets () + public static TQWidgetList TopLevelWidgets () { - return (TTQWidgetList)LookupObject (qt_QApplication_topLevelWidgets (), typeof(TTQWidgetList)); + return (TQWidgetList)LookupObject (qt_QApplication_topLevelWidgets (), typeof(TQWidgetList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_desktop (); - public static TTQDesktopWidget Desktop () + public static TQDesktopWidget Desktop () { - return (TTQDesktopWidget)LookupObject (qt_QApplication_desktop (), typeof(TTQDesktopWidget)); + return (TQDesktopWidget)LookupObject (qt_QApplication_desktop (), typeof(TQDesktopWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_activePopupWidget (); - public static TTQWidget ActivePopupWidget () + public static TQWidget ActivePopupWidget () { - return (TTQWidget)LookupObject (qt_QApplication_activePopupWidget (), typeof(TTQWidget)); + return (TQWidget)LookupObject (qt_QApplication_activePopupWidget (), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_activeModalWidget (); - public static TTQWidget ActiveModalWidget () + public static TQWidget ActiveModalWidget () { - return (TTQWidget)LookupObject (qt_QApplication_activeModalWidget (), typeof(TTQWidget)); + return (TQWidget)LookupObject (qt_QApplication_activeModalWidget (), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -644,16 +644,16 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_widgetAt (int x, int y, bool child); - public static TTQWidget WidgetAt (int x, int y, bool child) + public static TQWidget WidgetAt (int x, int y, bool child) { - return (TTQWidget)LookupObject (qt_QApplication_widgetAt (x, y, child), typeof(TTQWidget)); + return (TQWidget)LookupObject (qt_QApplication_widgetAt (x, y, child), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_widgetAt1 (IntPtr arg1, bool child); - public static TTQWidget WidgetAt (TTQPoint arg1, bool child) + public static TQWidget WidgetAt (TQPoint arg1, bool child) { - return (TTQWidget)LookupObject (qt_QApplication_widgetAt1 (arg1.RawObject, child), typeof(TTQWidget)); + return (TQWidget)LookupObject (qt_QApplication_widgetAt1 (arg1.RawObject, child), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -665,7 +665,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_sendPostedEvents (IntPtr receiver, int event_type); - public static void SendPostedEvents (TTQObject receiver, int event_type) + public static void SendPostedEvents (TQObject receiver, int event_type) { qt_QApplication_sendPostedEvents (receiver.RawObject, event_type); } @@ -679,7 +679,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_removePostedEvents (IntPtr receiver); - public static void RemovePostedEvents (TTQObject receiver) + public static void RemovePostedEvents (TQObject receiver) { qt_QApplication_removePostedEvents (receiver.RawObject); } @@ -728,16 +728,16 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setWinStyleHighlightColor (IntPtr c); - public static void SetWinStyleHighlightColor (TTQColor c) + public static void SetWinStyleHighlightColor (TQColor c) { qt_QApplication_setWinStyleHighlightColor (c.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_winStyleHighlightColor (); - public static TTQColor WinStyleHighlightColor () + public static TQColor WinStyleHighlightColor () { - return (TTQColor)LookupObject (qt_QApplication_winStyleHighlightColor (), typeof(TTQColor)); + return (TQColor)LookupObject (qt_QApplication_winStyleHighlightColor (), typeof(TQColor)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -798,44 +798,44 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setGlobalStrut (IntPtr arg1); - public static void SetGlobalStrut (TTQSize arg1) + public static void SetGlobalStrut (TQSize arg1) { qt_QApplication_setGlobalStrut (arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_globalStrut (); - public static TTQSize GlobalStrut () + public static TQSize GlobalStrut () { - return (TTQSize)LookupObject (qt_QApplication_globalStrut (), typeof(TTQSize)); + return (TQSize)LookupObject (qt_QApplication_globalStrut (), typeof(TQSize)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_setLibraryPaths (IntPtr arg1); - public static void SetLibraryPaths (TTQStringList arg1) + public static void SetLibraryPaths (TQStringList arg1) { qt_QApplication_setLibraryPaths (arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_libraryPaths (); - public static TTQStringList LibraryPaths () + public static TQStringList LibraryPaths () { - return (TTQStringList)LookupObject (qt_QApplication_libraryPaths (), typeof(TTQStringList)); + return (TQStringList)LookupObject (qt_QApplication_libraryPaths (), typeof(TQStringList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_addLibraryPath (IntPtr arg1); public static void AddLibraryPath (string arg1) { - qt_QApplication_addLibraryPath (new TTQString (arg1).RawObject); + qt_QApplication_addLibraryPath (new TQString (arg1).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QApplication_removeLibraryPath (IntPtr arg1); public static void RemoveLibraryPath (string arg1) { - qt_QApplication_removeLibraryPath (new TTQString (arg1).RawObject); + qt_QApplication_removeLibraryPath (new TQString (arg1).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -970,47 +970,47 @@ namespace Qt { SetEnableRemoteControl(enable, new TQUuid ()); } - public static void SetOverrideCursor (TTQCursor arg1) + public static void SetOverrideCursor (TQCursor arg1) { SetOverrideCursor(arg1, false); } - public static TTQPalette Palette () + public static TQPalette Palette () { - return Palette(new TTQWidget ()); + return Palette(new TQWidget ()); } - public static void SetPalette (TTQPalette arg1) + public static void SetPalette (TQPalette arg1) { SetPalette(arg1, false); } - public static void SetPalette (TTQPalette arg1, bool informWidgets) + public static void SetPalette (TQPalette arg1, bool informWidgets) { SetPalette(arg1, informWidgets, ""); } - public static TTQFont Font () + public static TQFont Font () { - return Font(new TTQWidget ()); + return Font(new TQWidget ()); } - public static void SetFont (TTQFont arg1) + public static void SetFont (TQFont arg1) { SetFont(arg1, false); } - public static void SetFont (TTQFont arg1, bool informWidgets) + public static void SetFont (TQFont arg1, bool informWidgets) { SetFont(arg1, informWidgets, ""); } - public static TTQWidget WidgetAt (int x, int y) + public static TQWidget WidgetAt (int x, int y) { return WidgetAt(x, y, false); } - public static TTQWidget WidgetAt (TTQPoint arg1) + public static TQWidget WidgetAt (TQPoint arg1) { return WidgetAt(arg1, false); } diff --git a/qtsharp/src/bindings/static/QByteArray.cs b/qtsharp/src/bindings/static/QByteArray.cs index 05f55be0..6fb2f1e7 100644 --- a/qtsharp/src/bindings/static/QByteArray.cs +++ b/qtsharp/src/bindings/static/QByteArray.cs @@ -1,4 +1,4 @@ -// TTQByteArray.cs - A Qt to C# binding. +// TQByteArray.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -24,11 +24,11 @@ namespace Qt { using System; using System.Runtime.InteropServices; - public class TTQByteArray : TTQMemArray, IDisposable { + public class TQByteArray : TQMemArray, IDisposable { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QByteArray (); - public TTQByteArray () : this (TQNull.Instance) + public TQByteArray () : this (TQNull.Instance) { rawObject = qt_new_QByteArray (); RegisterObject (this); @@ -36,21 +36,21 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QByteArray1 (int size); - public TTQByteArray (int size) : this (TQNull.Instance) + public TQByteArray (int size) : this (TQNull.Instance) { rawObject = qt_new_QByteArray1 (size); RegisterObject (this); } - internal TTQByteArray (IntPtr ptr) : this (TQNull.Instance) + internal TQByteArray (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject(this); } - internal TTQByteArray (TQNull dummy) : base (TQNull.Instance) {} + internal TQByteArray (TQNull dummy) : base (TQNull.Instance) {} - ~TTQByteArray () + ~TQByteArray () { Dispose (false); } @@ -69,9 +69,9 @@ namespace Qt { (IntPtr rawObject, [MarshalAs(UnmanagedType.LPArray)] byte[] b, uint length ); - public static implicit operator TTQByteArray (byte[] bArray) + public static implicit operator TQByteArray (byte[] bArray) { - TTQByteArray qbArray = new TTQByteArray (bArray.Length); + TQByteArray qbArray = new TQByteArray (bArray.Length); qbArray.rawObject = qt_QByteArray_assign1 (qbArray.rawObject, bArray, (uint) bArray.Length); GC.KeepAlive (bArray); diff --git a/qtsharp/src/bindings/static/QEventArgs.cs b/qtsharp/src/bindings/static/QEventArgs.cs index 89521be7..784f03b6 100644 --- a/qtsharp/src/bindings/static/QEventArgs.cs +++ b/qtsharp/src/bindings/static/QEventArgs.cs @@ -23,10 +23,10 @@ namespace Qt { using System; public class TQEventArgs : EventArgs { - private TTQEvent qevent; + private TQEvent qevent; private string name; - public TTQEvent Event { + public TQEvent Event { get { return qevent; } } @@ -34,7 +34,7 @@ namespace Qt { get { return name; } } - public TQEventArgs(string n, TTQEvent e) { + public TQEventArgs(string n, TQEvent e) { qevent = e; name = n; } diff --git a/qtsharp/src/bindings/static/QGL.cs b/qtsharp/src/bindings/static/QGL.cs index d43aebe2..6a994fb0 100644 --- a/qtsharp/src/bindings/static/QGL.cs +++ b/qtsharp/src/bindings/static/QGL.cs @@ -1,4 +1,4 @@ -// TTQGL.cs - A Qt to C# binding. +// TQGL.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -22,7 +22,7 @@ namespace Qt { using Qt; - public class TTQGL { + public class TQGL { public enum FormatOption { DoubleBuffer = 1, diff --git a/qtsharp/src/bindings/static/QMenuBar.cs b/qtsharp/src/bindings/static/QMenuBar.cs index 228cff7f..56d2bc8f 100644 --- a/qtsharp/src/bindings/static/QMenuBar.cs +++ b/qtsharp/src/bindings/static/QMenuBar.cs @@ -1,4 +1,4 @@ -// TTQMenuBar.cs - A Qt to C# binding. +// TQMenuBar.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -28,7 +28,7 @@ namespace Qt { using System.Collections; using System.Runtime.InteropServices; - public class TTQMenuBar : TTQFrame, ITQMenuData, IDisposable { + public class TQMenuBar : TQFrame, ITQMenuData, IDisposable { private Hashtable menuConnections; @@ -43,31 +43,31 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QMenuBar (IntPtr parent, string name); - public TTQMenuBar (TTQWidget parent, string name) : this (TQNull.Instance) + public TQMenuBar (TQWidget parent, string name) : this (TQNull.Instance) { qparent = parent; - if (qparent == null) parent = new TTQWidget (IntPtr.Zero); + if (qparent == null) parent = new TQWidget (IntPtr.Zero); rawObject = qt_new_QMenuBar (parent.RawObject, name); if (qparent == null) RegisterObject (this); else qparent.AddChild (this); } - public TTQMenuBar () : this (new TTQWidget ()) {} + public TQMenuBar () : this (new TQWidget ()) {} - public TTQMenuBar (TTQWidget parent) : this (parent, "") {} + public TQMenuBar (TQWidget parent) : this (parent, "") {} - internal TTQMenuBar (IntPtr ptr) : this (TQNull.Instance) + internal TQMenuBar (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject(this); } - internal TTQMenuBar (TQNull dummy) : base (TQNull.Instance) + internal TQMenuBar (TQNull dummy) : base (TQNull.Instance) { menuConnections = new Hashtable(); } - ~TTQMenuBar () + ~TQMenuBar () { Dispose (false); } @@ -105,7 +105,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuBar_eventFilter (IntPtr raw, IntPtr arg1, IntPtr arg2); - public bool EventFilter (TTQObject arg1, TTQEvent arg2) + public bool EventFilter (TQObject arg1, TQEvent arg2) { return qt_QMenuBar_eventFilter (rawObject, arg1.RawObject, arg2.RawObject); } @@ -118,15 +118,15 @@ namespace Qt { } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern TTQMenuBar.Separator qt_QMenuBar_separator (IntPtr raw); - public TTQMenuBar.Separator TheSeparator () + private static extern TQMenuBar.Separator qt_QMenuBar_separator (IntPtr raw); + public TQMenuBar.Separator TheSeparator () { return qt_QMenuBar_separator (rawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern void qt_QMenuBar_setSeparator (IntPtr raw, TTQMenuBar.Separator when); - public void SetSeparator (TTQMenuBar.Separator when) + private static extern void qt_QMenuBar_setSeparator (IntPtr raw, TQMenuBar.Separator when); + public void SetSeparator (TQMenuBar.Separator when) { qt_QMenuBar_setSeparator (rawObject, when); } @@ -154,23 +154,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuBar_sizeHint (IntPtr raw); - public TTQSize SizeHint () + public TQSize SizeHint () { - return (TTQSize)LookupObject (qt_QMenuBar_sizeHint (rawObject), typeof(TTQSize)); + return (TQSize)LookupObject (qt_QMenuBar_sizeHint (rawObject), typeof(TQSize)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuBar_minimumSize (IntPtr raw); - public TTQSize MinimumSize () + public TQSize MinimumSize () { - return (TTQSize)LookupObject (qt_QMenuBar_minimumSize (rawObject), typeof(TTQSize)); + return (TQSize)LookupObject (qt_QMenuBar_minimumSize (rawObject), typeof(TQSize)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuBar_minimumSizeHint (IntPtr raw); - public TTQSize MinimumSizeHint () + public TQSize MinimumSizeHint () { - return (TTQSize)LookupObject (qt_QMenuBar_minimumSizeHint (rawObject), typeof(TTQSize)); + return (TQSize)LookupObject (qt_QMenuBar_minimumSizeHint (rawObject), typeof(TQSize)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -196,14 +196,14 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuBar_drawContents (IntPtr raw, IntPtr arg1); - protected void DrawContents (TTQPainter arg1) + protected void DrawContents (TQPainter arg1) { qt_QMenuBar_drawContents (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuBar_fontChange (IntPtr raw, IntPtr arg1); - protected void FontChange (TTQFont arg1) + protected void FontChange (TQFont arg1) { qt_QMenuBar_fontChange (rawObject, arg1.RawObject); } @@ -224,14 +224,14 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuBar_styleChange (IntPtr raw, IntPtr arg1); - protected void StyleChange (TTQStyle arg1) + protected void StyleChange (TQStyle arg1) { qt_QMenuBar_styleChange (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuBar_itemAtPos (IntPtr raw, IntPtr arg1); - protected int ItemAtPos (TTQPoint arg1) + protected int ItemAtPos (TQPoint arg1) { return qt_QMenuBar_itemAtPos (rawObject, arg1.RawObject); } @@ -245,14 +245,14 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuBar_itemRect (IntPtr raw, int item); - protected TTQRect ItemRect (int item) + protected TQRect ItemRect (int item) { - return (TTQRect)LookupObject (qt_QMenuBar_itemRect (rawObject, item), typeof(TTQRect)); + return (TQRect)LookupObject (qt_QMenuBar_itemRect (rawObject, item), typeof(TQRect)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuBar_QMenuData (IntPtr raw); - public IntPtr TTQMenuData () + public IntPtr TQMenuData () { return qt_QMenuBar_QMenuData (rawObject); } @@ -265,7 +265,7 @@ namespace Qt { // This makes my brain hurt! // :-) Mine too! - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (text, identifier, index); SetAccel (accel, id); @@ -273,7 +273,7 @@ namespace Qt { return id; } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (icon, text, identifier, index); SetAccel (accel, id); @@ -281,7 +281,7 @@ namespace Qt { return id; } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (pixmap, identifier, index); SetAccel (accel, id); @@ -289,7 +289,7 @@ namespace Qt { return id; } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (icon, pixmap, identifier, index); SetAccel (accel, id); @@ -297,15 +297,15 @@ namespace Qt { return id; } - public bool ConnectItem (int identifier, TTQObject receiver, string member) + public bool ConnectItem (int identifier, TQObject receiver, string member) { - return Qt.TTQMenuData.ConnectItem (this, TTQMenuData (), identifier, receiver, member); + return Qt.TQMenuData.ConnectItem (this, TQMenuData (), identifier, receiver, member); } - public bool DisconnectItem (int identifier, TTQObject receiver, string member) + public bool DisconnectItem (int identifier, TQObject receiver, string member) { - return Qt.TTQMenuData.DisconnectItem (this, TTQMenuData (), identifier, receiver, member); + return Qt.TQMenuData.DisconnectItem (this, TQMenuData (), identifier, receiver, member); } //********************* A temporary hack to divert connections to CSharpConnect *****************// @@ -315,140 +315,140 @@ namespace Qt { private static extern uint qt_QMenuData_count (IntPtr raw); public uint Count () { - return qt_QMenuData_count (TTQMenuData ()); + return qt_QMenuData_count (TQMenuData ()); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem4 (IntPtr raw, IntPtr text, int identifier, int index); public int InsertItem (string text, int identifier, int index) { - return qt_QMenuData_insertItem4 (TTQMenuData (), new TTQString (text).RawObject, identifier, index); + return qt_QMenuData_insertItem4 (TQMenuData (), new TQString (text).RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem5 (IntPtr raw, IntPtr icon, IntPtr text, int identifier, int index); - public int InsertItem (TTQIconSet icon, string text, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, int identifier, int index) { - return qt_QMenuData_insertItem5 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, identifier, index); + return qt_QMenuData_insertItem5 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem6 (IntPtr raw, IntPtr text, IntPtr popup, int identifier, int index); - public int InsertItem (string text, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (string text, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem6 (TTQMenuData (), new TTQString (text).RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem6 (TQMenuData (), new TQString (text).RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem7 (IntPtr raw, IntPtr icon, IntPtr text, IntPtr popup, int identifier, int index); - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem7 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem7 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem8 (IntPtr raw, IntPtr pixmap, int identifier, int index); - public int InsertItem (TTQPixmap pixmap, int identifier, int index) + public int InsertItem (TQPixmap pixmap, int identifier, int index) { - return qt_QMenuData_insertItem8 (TTQMenuData (), pixmap.RawObject, identifier, index); + return qt_QMenuData_insertItem8 (TQMenuData (), pixmap.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem9 (IntPtr raw, IntPtr icon, IntPtr pixmap, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier, int index) { - return qt_QMenuData_insertItem9 (TTQMenuData (), icon.RawObject, pixmap.RawObject, identifier, index); + return qt_QMenuData_insertItem9 (TQMenuData (), icon.RawObject, pixmap.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem10 (IntPtr raw, IntPtr pixmap, IntPtr popup, int identifier, int index); - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem10 (TTQMenuData (), pixmap.RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem10 (TQMenuData (), pixmap.RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem11 (IntPtr raw, IntPtr icon, IntPtr pixmap, IntPtr popup, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem11 (TTQMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem11 (TQMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem12 (IntPtr raw, IntPtr widget, int identifier, int index); - public int InsertItem (TTQWidget widget, int identifier, int index) + public int InsertItem (TQWidget widget, int identifier, int index) { - return qt_QMenuData_insertItem12 (TTQMenuData (), widget.RawObject, identifier, index); + return qt_QMenuData_insertItem12 (TQMenuData (), widget.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem13 (IntPtr raw, IntPtr icon, IntPtr custom, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier, int index) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier, int index) { - return qt_QMenuData_insertItem13 (TTQMenuData (), icon.RawObject, custom.RawObject, identifier, index); + return qt_QMenuData_insertItem13 (TQMenuData (), icon.RawObject, custom.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem14 (IntPtr raw, IntPtr custom, int identifier, int index); - public int InsertItem (TTQCustomMenuItem custom, int identifier, int index) + public int InsertItem (TQCustomMenuItem custom, int identifier, int index) { - return qt_QMenuData_insertItem14 (TTQMenuData (), custom.RawObject, identifier, index); + return qt_QMenuData_insertItem14 (TQMenuData (), custom.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertSeparator (IntPtr raw, int index); public int InsertSeparator (int index) { - return qt_QMenuData_insertSeparator (TTQMenuData (), index); + return qt_QMenuData_insertSeparator (TQMenuData (), index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_removeItem (IntPtr raw, int identifier); public void RemoveItem (int identifier) { - qt_QMenuData_removeItem (TTQMenuData (), identifier); + qt_QMenuData_removeItem (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_removeItemAt (IntPtr raw, int index); public void RemoveItemAt (int index) { - qt_QMenuData_removeItemAt (TTQMenuData (), index); + qt_QMenuData_removeItemAt (TQMenuData (), index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_clear (IntPtr raw); public void Clear () { - qt_QMenuData_clear (TTQMenuData ()); + qt_QMenuData_clear (TQMenuData ()); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_accel (IntPtr raw, int identifier); - public TTQKeySequence Accel (int identifier) + public TQKeySequence Accel (int identifier) { - return (TTQKeySequence)LookupObject (qt_QMenuData_accel (TTQMenuData (), identifier), typeof(TTQKeySequence)); + return (TQKeySequence)LookupObject (qt_QMenuData_accel (TQMenuData (), identifier), typeof(TQKeySequence)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setAccel (IntPtr raw, IntPtr key, int identifier); - public void SetAccel (TTQKeySequence key, int identifier) + public void SetAccel (TQKeySequence key, int identifier) { - qt_QMenuData_setAccel (TTQMenuData (), key.RawObject, identifier); + qt_QMenuData_setAccel (TQMenuData (), key.RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_iconSet (IntPtr raw, int identifier); - public TTQIconSet IconSet (int identifier) + public TQIconSet IconSet (int identifier) { - return (TTQIconSet)LookupObject (qt_QMenuData_iconSet (TTQMenuData (), identifier), typeof(TTQIconSet)); + return (TQIconSet)LookupObject (qt_QMenuData_iconSet (TQMenuData (), identifier), typeof(TQIconSet)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_text (IntPtr raw, int identifier); public string Text (int identifier) { - TTQString qstr = new TTQString (qt_QMenuData_text (TTQMenuData (), identifier)); + TQString qstr = new TQString (qt_QMenuData_text (TQMenuData (), identifier)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -456,23 +456,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_pixmap (IntPtr raw, int identifier); - public TTQPixmap Pixmap (int identifier) + public TQPixmap Pixmap (int identifier) { - return (TTQPixmap)LookupObject (qt_QMenuData_pixmap (TTQMenuData (), identifier), typeof(TTQPixmap)); + return (TQPixmap)LookupObject (qt_QMenuData_pixmap (TQMenuData (), identifier), typeof(TQPixmap)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setWhatsThis (IntPtr raw, int identifier, IntPtr arg1); public void SetWhatsThis (int identifier, string arg1) { - qt_QMenuData_setWhatsThis (TTQMenuData (), identifier, new TTQString (arg1).RawObject); + qt_QMenuData_setWhatsThis (TQMenuData (), identifier, new TQString (arg1).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_whatsThis (IntPtr raw, int identifier); public string WhatsThis (int identifier) { - TTQString qstr = new TTQString (qt_QMenuData_whatsThis (TTQMenuData (), identifier)); + TQString qstr = new TQString (qt_QMenuData_whatsThis (TQMenuData (), identifier)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -482,212 +482,212 @@ namespace Qt { private static extern void qt_QMenuData_changeItem (IntPtr raw, int identifier, IntPtr text); public void ChangeItem (int identifier, string text) { - qt_QMenuData_changeItem (TTQMenuData (), identifier, new TTQString (text).RawObject); + qt_QMenuData_changeItem (TQMenuData (), identifier, new TQString (text).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem1 (IntPtr raw, int identifier, IntPtr pixmap); - public void ChangeItem (int identifier, TTQPixmap pixmap) + public void ChangeItem (int identifier, TQPixmap pixmap) { - qt_QMenuData_changeItem1 (TTQMenuData (), identifier, pixmap.RawObject); + qt_QMenuData_changeItem1 (TQMenuData (), identifier, pixmap.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem2 (IntPtr raw, int identifier, IntPtr icon, IntPtr text); - public void ChangeItem (int identifier, TTQIconSet icon, string text) + public void ChangeItem (int identifier, TQIconSet icon, string text) { - qt_QMenuData_changeItem2 (TTQMenuData (), identifier, icon.RawObject, new TTQString (text).RawObject); + qt_QMenuData_changeItem2 (TQMenuData (), identifier, icon.RawObject, new TQString (text).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem3 (IntPtr raw, int identifier, IntPtr icon, IntPtr pixmap); - public void ChangeItem (int identifier, TTQIconSet icon, TTQPixmap pixmap) + public void ChangeItem (int identifier, TQIconSet icon, TQPixmap pixmap) { - qt_QMenuData_changeItem3 (TTQMenuData (), identifier, icon.RawObject, pixmap.RawObject); + qt_QMenuData_changeItem3 (TQMenuData (), identifier, icon.RawObject, pixmap.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem4 (IntPtr raw, IntPtr text, int identifier); public void ChangeItem (string text, int identifier) { - qt_QMenuData_changeItem4 (TTQMenuData (), new TTQString (text).RawObject, identifier); + qt_QMenuData_changeItem4 (TQMenuData (), new TQString (text).RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem5 (IntPtr raw, IntPtr pixmap, int identifier); - public void ChangeItem (TTQPixmap pixmap, int identifier) + public void ChangeItem (TQPixmap pixmap, int identifier) { - qt_QMenuData_changeItem5 (TTQMenuData (), pixmap.RawObject, identifier); + qt_QMenuData_changeItem5 (TQMenuData (), pixmap.RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem6 (IntPtr raw, IntPtr icon, IntPtr text, int identifier); - public void ChangeItem (TTQIconSet icon, string text, int identifier) + public void ChangeItem (TQIconSet icon, string text, int identifier) { - qt_QMenuData_changeItem6 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, identifier); + qt_QMenuData_changeItem6 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_isItemActive (IntPtr raw, int identifier); public bool IsItemActive (int identifier) { - return qt_QMenuData_isItemActive (TTQMenuData (), identifier); + return qt_QMenuData_isItemActive (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_isItemEnabled (IntPtr raw, int identifier); public bool IsItemEnabled (int identifier) { - return qt_QMenuData_isItemEnabled (TTQMenuData (), identifier); + return qt_QMenuData_isItemEnabled (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setItemEnabled (IntPtr raw, int identifier, bool enable); public void SetItemEnabled (int identifier, bool enable) { - qt_QMenuData_setItemEnabled (TTQMenuData (), identifier, enable); + qt_QMenuData_setItemEnabled (TQMenuData (), identifier, enable); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_isItemChecked (IntPtr raw, int identifier); public bool IsItemChecked (int identifier) { - return qt_QMenuData_isItemChecked (TTQMenuData (), identifier); + return qt_QMenuData_isItemChecked (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setItemChecked (IntPtr raw, int identifier, bool check); public void SetItemChecked (int identifier, bool check) { - qt_QMenuData_setItemChecked (TTQMenuData (), identifier, check); + qt_QMenuData_setItemChecked (TQMenuData (), identifier, check); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_indexOf (IntPtr raw, int identifier); public int IndexOf (int identifier) { - return qt_QMenuData_indexOf (TTQMenuData (), identifier); + return qt_QMenuData_indexOf (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_idAt (IntPtr raw, int index); public int IdAt (int index) { - return qt_QMenuData_idAt (TTQMenuData (), index); + return qt_QMenuData_idAt (TQMenuData (), index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setId (IntPtr raw, int index, int identifier); public void SetId (int index, int identifier) { - qt_QMenuData_setId (TTQMenuData (), index, identifier); + qt_QMenuData_setId (TQMenuData (), index, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_setItemParameter (IntPtr raw, int identifier, int param); public bool SetItemParameter (int identifier, int param) { - return qt_QMenuData_setItemParameter (TTQMenuData (), identifier, param); + return qt_QMenuData_setItemParameter (TQMenuData (), identifier, param); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_itemParameter (IntPtr raw, int identifier); public int ItemParameter (int identifier) { - return qt_QMenuData_itemParameter (TTQMenuData (), identifier); + return qt_QMenuData_itemParameter (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findItem (IntPtr raw, int identifier); - public TTQMenuItem FindItem (int identifier) + public TQMenuItem FindItem (int identifier) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findItem (TTQMenuData (), identifier), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findItem (TQMenuData (), identifier), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findItem1 (IntPtr raw, int identifier, IntPtr parent); - public TTQMenuItem FindItem (int identifier, TTQMenuData parent) + public TQMenuItem FindItem (int identifier, TQMenuData parent) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findItem1 (TTQMenuData (), identifier, parent.RawObject), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findItem1 (TQMenuData (), identifier, parent.RawObject), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findPopup (IntPtr raw, IntPtr arg1, int[] index); - public TTQMenuItem FindPopup (TTQPopupMenu arg1, int[] index) + public TQMenuItem FindPopup (TQPopupMenu arg1, int[] index) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findPopup (TTQMenuData (), arg1.RawObject, index), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findPopup (TQMenuData (), arg1.RawObject, index), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_menuInsPopup (IntPtr raw, IntPtr arg1); - protected void MenuInsPopup (TTQPopupMenu arg1) + protected void MenuInsPopup (TQPopupMenu arg1) { - qt_QMenuData_menuInsPopup (TTQMenuData (), arg1.RawObject); + qt_QMenuData_menuInsPopup (TQMenuData (), arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_menuDelPopup (IntPtr raw, IntPtr arg1); - protected void MenuDelPopup (TTQPopupMenu arg1) + protected void MenuDelPopup (TQPopupMenu arg1) { - qt_QMenuData_menuDelPopup (TTQMenuData (), arg1.RawObject); + qt_QMenuData_menuDelPopup (TQMenuData (), arg1.RawObject); } - public int InsertItem (string text, TTQObject receiver, string member) + public int InsertItem (string text, TQObject receiver, string member) { - return InsertItem(text, receiver, member, new TTQKeySequence ()); + return InsertItem(text, receiver, member, new TQKeySequence ()); } - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(text, receiver, member, accel, (int) -1); } - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(text, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member) { - return InsertItem(icon, text, receiver, member, new TTQKeySequence ()); + return InsertItem(icon, text, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(icon, text, receiver, member, accel, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(icon, text, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member) { - return InsertItem(pixmap, receiver, member, new TTQKeySequence ()); + return InsertItem(pixmap, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(pixmap, receiver, member, accel, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(pixmap, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member) { - return InsertItem(icon, pixmap, receiver, member, new TTQKeySequence ()); + return InsertItem(icon, pixmap, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(icon, pixmap, receiver, member, accel, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(icon, pixmap, receiver, member, accel, identifier, (int) -1); } @@ -702,102 +702,102 @@ namespace Qt { return InsertItem(text, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text) + public int InsertItem (TQIconSet icon, string text) { return InsertItem(icon, text, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, int identifier) + public int InsertItem (TQIconSet icon, string text, int identifier) { return InsertItem(icon, text, identifier, (int) -1); } - public int InsertItem (string text, TTQPopupMenu popup) + public int InsertItem (string text, TQPopupMenu popup) { return InsertItem(text, popup, (int) -1); } - public int InsertItem (string text, TTQPopupMenu popup, int identifier) + public int InsertItem (string text, TQPopupMenu popup, int identifier) { return InsertItem(text, popup, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup) { return InsertItem(icon, text, popup, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier) { return InsertItem(icon, text, popup, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap) + public int InsertItem (TQPixmap pixmap) { return InsertItem(pixmap, (int) -1); } - public int InsertItem (TTQPixmap pixmap, int identifier) + public int InsertItem (TQPixmap pixmap, int identifier) { return InsertItem(pixmap, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap) + public int InsertItem (TQIconSet icon, TQPixmap pixmap) { return InsertItem(icon, pixmap, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier) { return InsertItem(icon, pixmap, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup) { return InsertItem(pixmap, popup, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier) { return InsertItem(pixmap, popup, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup) { return InsertItem(icon, pixmap, popup, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier) { return InsertItem(icon, pixmap, popup, identifier, (int) -1); } - public int InsertItem (TTQWidget widget) + public int InsertItem (TQWidget widget) { return InsertItem(widget, (int) -1); } - public int InsertItem (TTQWidget widget, int identifier) + public int InsertItem (TQWidget widget, int identifier) { return InsertItem(widget, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom) { return InsertItem(icon, custom, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier) { return InsertItem(icon, custom, identifier, (int) -1); } - public int InsertItem (TTQCustomMenuItem custom) + public int InsertItem (TQCustomMenuItem custom) { return InsertItem(custom, (int) -1); } - public int InsertItem (TTQCustomMenuItem custom, int identifier) + public int InsertItem (TQCustomMenuItem custom, int identifier) { return InsertItem(custom, identifier, (int) -1); } @@ -807,7 +807,7 @@ namespace Qt { return InsertSeparator((int) -1); } - public TTQMenuItem FindPopup (TTQPopupMenu arg1) + public TQMenuItem FindPopup (TQPopupMenu arg1) { return FindPopup(arg1, new int[]{0}); } diff --git a/qtsharp/src/bindings/static/QMenuData.cs b/qtsharp/src/bindings/static/QMenuData.cs index c83c91b7..ade3b8c4 100644 --- a/qtsharp/src/bindings/static/QMenuData.cs +++ b/qtsharp/src/bindings/static/QMenuData.cs @@ -1,4 +1,4 @@ -// TTQMenuData.cs - A Qt to C# binding. +// TQMenuData.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -19,7 +19,7 @@ // Regenerated by Adam Treat on August 03 2002 // // TODO -// o The TQMenu* and TTQPopupMenu classes need serious analysis. I've only added +// o The TQMenu* and TQPopupMenu classes need serious analysis. I've only added // functionality for C# slot support - I've not made sure its all working. :-) namespace Qt { @@ -29,7 +29,7 @@ namespace Qt { using System.Collections; using System.Runtime.InteropServices; - public class TTQMenuData : QtSupport, ITQMenuData, IDisposable { + public class TQMenuData : QtSupport, ITQMenuData, IDisposable { private Hashtable menuConnections; @@ -39,24 +39,24 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QMenuData (); - public TTQMenuData () : this (TQNull.Instance) + public TQMenuData () : this (TQNull.Instance) { rawObject = qt_new_QMenuData (); RegisterObject (this); } - internal TTQMenuData (IntPtr ptr) : this (TQNull.Instance) + internal TQMenuData (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject(this); } - internal TTQMenuData (TQNull dummy) : base (TQNull.Instance) + internal TQMenuData (TQNull dummy) : base (TQNull.Instance) { menuConnections = new Hashtable(); } - ~TTQMenuData () + ~TQMenuData () { Dispose(false); } @@ -76,7 +76,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_connectItem (IntPtr raw, int identifier, IntPtr receiver, string member); - internal static bool ConnectItem (ITQMenuData menu, IntPtr menudata, int id, TTQObject receiver, string slot) + internal static bool ConnectItem (ITQMenuData menu, IntPtr menudata, int id, TQObject receiver, string slot) { if (QtSignal.traceConnects) ErrMsg ("ConnectItem: ({0}) {1}, {2}, ({3}) {4}, {5}", menudata, menu, id, receiver.RawObject, receiver, slot); @@ -125,7 +125,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_del_QObject (IntPtr raw); - internal static bool DisconnectItem (ITQMenuData menu, IntPtr menudata, int id, TTQObject receiver, string slot) + internal static bool DisconnectItem (ITQMenuData menu, IntPtr menudata, int id, TQObject receiver, string slot) { if (QtSignal.traceConnects) ErrMsg ("DisconnectItem: ({0}) {1}, {2}, ({3}) {4}, {5}", menudata, menu, id, receiver.RawObject, receiver, slot); @@ -155,7 +155,7 @@ namespace Qt { } } - // Hack so TTQMenuData implements ITQMenuData... + // Hack so TQMenuData implements ITQMenuData... public bool setItemParameter (int identifier, int param) { @@ -173,75 +173,75 @@ namespace Qt { private static extern int qt_QMenuData_insertItem4 (IntPtr raw, IntPtr text, int identifier, int index); public int InsertItem (string text, int identifier, int index) { - return qt_QMenuData_insertItem4 (rawObject, new TTQString (text).RawObject, identifier, index); + return qt_QMenuData_insertItem4 (rawObject, new TQString (text).RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem5 (IntPtr raw, IntPtr icon, IntPtr text, int identifier, int index); - public int InsertItem (TTQIconSet icon, string text, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, int identifier, int index) { - return qt_QMenuData_insertItem5 (rawObject, icon.RawObject, new TTQString (text).RawObject, identifier, index); + return qt_QMenuData_insertItem5 (rawObject, icon.RawObject, new TQString (text).RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem6 (IntPtr raw, IntPtr text, IntPtr popup, int identifier, int index); - public int InsertItem (string text, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (string text, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem6 (rawObject, new TTQString (text).RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem6 (rawObject, new TQString (text).RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem7 (IntPtr raw, IntPtr icon, IntPtr text, IntPtr popup, int identifier, int index); - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem7 (rawObject, icon.RawObject, new TTQString (text).RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem7 (rawObject, icon.RawObject, new TQString (text).RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem8 (IntPtr raw, IntPtr pixmap, int identifier, int index); - public int InsertItem (TTQPixmap pixmap, int identifier, int index) + public int InsertItem (TQPixmap pixmap, int identifier, int index) { return qt_QMenuData_insertItem8 (rawObject, pixmap.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem9 (IntPtr raw, IntPtr icon, IntPtr pixmap, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier, int index) { return qt_QMenuData_insertItem9 (rawObject, icon.RawObject, pixmap.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem10 (IntPtr raw, IntPtr pixmap, IntPtr popup, int identifier, int index); - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier, int index) { return qt_QMenuData_insertItem10 (rawObject, pixmap.RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem11 (IntPtr raw, IntPtr icon, IntPtr pixmap, IntPtr popup, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier, int index) { return qt_QMenuData_insertItem11 (rawObject, icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem12 (IntPtr raw, IntPtr widget, int identifier, int index); - public int InsertItem (TTQWidget widget, int identifier, int index) + public int InsertItem (TQWidget widget, int identifier, int index) { return qt_QMenuData_insertItem12 (rawObject, widget.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem13 (IntPtr raw, IntPtr icon, IntPtr custom, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier, int index) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier, int index) { return qt_QMenuData_insertItem13 (rawObject, icon.RawObject, custom.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem14 (IntPtr raw, IntPtr custom, int identifier, int index); - public int InsertItem (TTQCustomMenuItem custom, int identifier, int index) + public int InsertItem (TQCustomMenuItem custom, int identifier, int index) { return qt_QMenuData_insertItem14 (rawObject, custom.RawObject, identifier, index); } @@ -276,30 +276,30 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_accel (IntPtr raw, int identifier); - public TTQKeySequence Accel (int identifier) + public TQKeySequence Accel (int identifier) { - return (TTQKeySequence)LookupObject (qt_QMenuData_accel (rawObject, identifier), typeof(TTQKeySequence)); + return (TQKeySequence)LookupObject (qt_QMenuData_accel (rawObject, identifier), typeof(TQKeySequence)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setAccel (IntPtr raw, IntPtr key, int identifier); - public void SetAccel (TTQKeySequence key, int identifier) + public void SetAccel (TQKeySequence key, int identifier) { qt_QMenuData_setAccel (rawObject, key.RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_iconSet (IntPtr raw, int identifier); - public TTQIconSet IconSet (int identifier) + public TQIconSet IconSet (int identifier) { - return (TTQIconSet)LookupObject (qt_QMenuData_iconSet (rawObject, identifier), typeof(TTQIconSet)); + return (TQIconSet)LookupObject (qt_QMenuData_iconSet (rawObject, identifier), typeof(TQIconSet)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_text (IntPtr raw, int identifier); public string Text (int identifier) { - TTQString qstr = new TTQString (qt_QMenuData_text (rawObject, identifier)); + TQString qstr = new TQString (qt_QMenuData_text (rawObject, identifier)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -307,23 +307,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_pixmap (IntPtr raw, int identifier); - public TTQPixmap Pixmap (int identifier) + public TQPixmap Pixmap (int identifier) { - return (TTQPixmap)LookupObject (qt_QMenuData_pixmap (rawObject, identifier), typeof(TTQPixmap)); + return (TQPixmap)LookupObject (qt_QMenuData_pixmap (rawObject, identifier), typeof(TQPixmap)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setWhatsThis (IntPtr raw, int identifier, IntPtr arg1); public void SetWhatsThis (int identifier, string arg1) { - qt_QMenuData_setWhatsThis (rawObject, identifier, new TTQString (arg1).RawObject); + qt_QMenuData_setWhatsThis (rawObject, identifier, new TQString (arg1).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_whatsThis (IntPtr raw, int identifier); public string WhatsThis (int identifier) { - TTQString qstr = new TTQString (qt_QMenuData_whatsThis (rawObject, identifier)); + TQString qstr = new TQString (qt_QMenuData_whatsThis (rawObject, identifier)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -333,26 +333,26 @@ namespace Qt { private static extern void qt_QMenuData_changeItem (IntPtr raw, int identifier, IntPtr text); public void ChangeItem (int identifier, string text) { - qt_QMenuData_changeItem (rawObject, identifier, new TTQString (text).RawObject); + qt_QMenuData_changeItem (rawObject, identifier, new TQString (text).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem1 (IntPtr raw, int identifier, IntPtr pixmap); - public void ChangeItem (int identifier, TTQPixmap pixmap) + public void ChangeItem (int identifier, TQPixmap pixmap) { qt_QMenuData_changeItem1 (rawObject, identifier, pixmap.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem2 (IntPtr raw, int identifier, IntPtr icon, IntPtr text); - public void ChangeItem (int identifier, TTQIconSet icon, string text) + public void ChangeItem (int identifier, TQIconSet icon, string text) { - qt_QMenuData_changeItem2 (rawObject, identifier, icon.RawObject, new TTQString (text).RawObject); + qt_QMenuData_changeItem2 (rawObject, identifier, icon.RawObject, new TQString (text).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem3 (IntPtr raw, int identifier, IntPtr icon, IntPtr pixmap); - public void ChangeItem (int identifier, TTQIconSet icon, TTQPixmap pixmap) + public void ChangeItem (int identifier, TQIconSet icon, TQPixmap pixmap) { qt_QMenuData_changeItem3 (rawObject, identifier, icon.RawObject, pixmap.RawObject); } @@ -361,21 +361,21 @@ namespace Qt { private static extern void qt_QMenuData_changeItem4 (IntPtr raw, IntPtr text, int identifier); public void ChangeItem (string text, int identifier) { - qt_QMenuData_changeItem4 (rawObject, new TTQString (text).RawObject, identifier); + qt_QMenuData_changeItem4 (rawObject, new TQString (text).RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem5 (IntPtr raw, IntPtr pixmap, int identifier); - public void ChangeItem (TTQPixmap pixmap, int identifier) + public void ChangeItem (TQPixmap pixmap, int identifier) { qt_QMenuData_changeItem5 (rawObject, pixmap.RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem6 (IntPtr raw, IntPtr icon, IntPtr text, int identifier); - public void ChangeItem (TTQIconSet icon, string text, int identifier) + public void ChangeItem (TQIconSet icon, string text, int identifier) { - qt_QMenuData_changeItem6 (rawObject, icon.RawObject, new TTQString (text).RawObject, identifier); + qt_QMenuData_changeItem6 (rawObject, icon.RawObject, new TQString (text).RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -436,17 +436,17 @@ namespace Qt { //********************* A temporary hack to divert connections to CSharpConnect *****************// - public bool ConnectItem (int identifier, TTQObject receiver, string slot) + public bool ConnectItem (int identifier, TQObject receiver, string slot) { return ConnectItem (this, this.RawObject, identifier, receiver, slot); } - public bool DisconnectItem (int identifier, TTQObject receiver, string slot) + public bool DisconnectItem (int identifier, TQObject receiver, string slot) { return DisconnectItem (this, this.RawObject, identifier, receiver, slot); } - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (text, identifier, index); SetAccel (accel, id); @@ -454,7 +454,7 @@ namespace Qt { return id; } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (icon, text, identifier, index); SetAccel (accel, id); @@ -462,7 +462,7 @@ namespace Qt { return id; } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (pixmap, identifier, index); SetAccel (accel, id); @@ -470,7 +470,7 @@ namespace Qt { return id; } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (icon, pixmap, identifier, index); SetAccel (accel, id); @@ -496,95 +496,95 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findItem (IntPtr raw, int identifier); - public TTQMenuItem FindItem (int identifier) + public TQMenuItem FindItem (int identifier) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findItem (rawObject, identifier), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findItem (rawObject, identifier), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findItem1 (IntPtr raw, int identifier, IntPtr parent); - public TTQMenuItem FindItem (int identifier, TTQMenuData parent) + public TQMenuItem FindItem (int identifier, TQMenuData parent) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findItem1 (rawObject, identifier, parent.RawObject), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findItem1 (rawObject, identifier, parent.RawObject), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findPopup (IntPtr raw, IntPtr arg1, int[] index); - public TTQMenuItem FindPopup (TTQPopupMenu arg1, int[] index) + public TQMenuItem FindPopup (TQPopupMenu arg1, int[] index) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findPopup (rawObject, arg1.RawObject, index), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findPopup (rawObject, arg1.RawObject, index), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_menuInsPopup (IntPtr raw, IntPtr arg1); - protected void MenuInsPopup (TTQPopupMenu arg1) + protected void MenuInsPopup (TQPopupMenu arg1) { qt_QMenuData_menuInsPopup (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_menuDelPopup (IntPtr raw, IntPtr arg1); - protected void MenuDelPopup (TTQPopupMenu arg1) + protected void MenuDelPopup (TQPopupMenu arg1) { qt_QMenuData_menuDelPopup (rawObject, arg1.RawObject); } - public int InsertItem (string text, TTQObject receiver, string member) + public int InsertItem (string text, TQObject receiver, string member) { - return InsertItem(text, receiver, member, new TTQKeySequence ()); + return InsertItem(text, receiver, member, new TQKeySequence ()); } - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(text, receiver, member, accel, (int) -1); } - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(text, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member) { - return InsertItem(icon, text, receiver, member, new TTQKeySequence ()); + return InsertItem(icon, text, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(icon, text, receiver, member, accel, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(icon, text, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member) { - return InsertItem(pixmap, receiver, member, new TTQKeySequence ()); + return InsertItem(pixmap, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(pixmap, receiver, member, accel, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(pixmap, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member) { - return InsertItem(icon, pixmap, receiver, member, new TTQKeySequence ()); + return InsertItem(icon, pixmap, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(icon, pixmap, receiver, member, accel, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(icon, pixmap, receiver, member, accel, identifier, (int) -1); } @@ -599,102 +599,102 @@ namespace Qt { return InsertItem(text, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text) + public int InsertItem (TQIconSet icon, string text) { return InsertItem(icon, text, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, int identifier) + public int InsertItem (TQIconSet icon, string text, int identifier) { return InsertItem(icon, text, identifier, (int) -1); } - public int InsertItem (string text, TTQPopupMenu popup) + public int InsertItem (string text, TQPopupMenu popup) { return InsertItem(text, popup, (int) -1); } - public int InsertItem (string text, TTQPopupMenu popup, int identifier) + public int InsertItem (string text, TQPopupMenu popup, int identifier) { return InsertItem(text, popup, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup) { return InsertItem(icon, text, popup, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier) { return InsertItem(icon, text, popup, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap) + public int InsertItem (TQPixmap pixmap) { return InsertItem(pixmap, (int) -1); } - public int InsertItem (TTQPixmap pixmap, int identifier) + public int InsertItem (TQPixmap pixmap, int identifier) { return InsertItem(pixmap, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap) + public int InsertItem (TQIconSet icon, TQPixmap pixmap) { return InsertItem(icon, pixmap, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier) { return InsertItem(icon, pixmap, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup) { return InsertItem(pixmap, popup, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier) { return InsertItem(pixmap, popup, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup) { return InsertItem(icon, pixmap, popup, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier) { return InsertItem(icon, pixmap, popup, identifier, (int) -1); } - public int InsertItem (TTQWidget widget) + public int InsertItem (TQWidget widget) { return InsertItem(widget, (int) -1); } - public int InsertItem (TTQWidget widget, int identifier) + public int InsertItem (TQWidget widget, int identifier) { return InsertItem(widget, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom) { return InsertItem(icon, custom, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier) { return InsertItem(icon, custom, identifier, (int) -1); } - public int InsertItem (TTQCustomMenuItem custom) + public int InsertItem (TQCustomMenuItem custom) { return InsertItem(custom, (int) -1); } - public int InsertItem (TTQCustomMenuItem custom, int identifier) + public int InsertItem (TQCustomMenuItem custom, int identifier) { return InsertItem(custom, identifier, (int) -1); } @@ -704,7 +704,7 @@ namespace Qt { return InsertSeparator((int) -1); } - public TTQMenuItem FindPopup (TTQPopupMenu arg1) + public TQMenuItem FindPopup (TQPopupMenu arg1) { return FindPopup(arg1, new int[]{0}); } diff --git a/qtsharp/src/bindings/static/QObject.cs b/qtsharp/src/bindings/static/QObject.cs index 351db720..2df22d50 100644 --- a/qtsharp/src/bindings/static/QObject.cs +++ b/qtsharp/src/bindings/static/QObject.cs @@ -1,4 +1,4 @@ -// TTQObject.cs - A Qt to C# binding. +// TQObject.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -35,15 +35,15 @@ namespace Qt { using System.Collections; using System.Runtime.InteropServices; - //[DeclareQtSignal ("ChildDestroyed(TTQObject)")] - public class TTQObject : QtSupport, IDisposable { + //[DeclareQtSignal ("ChildDestroyed(TQObject)")] + public class TQObject : QtSupport, IDisposable { - // Hold an instance of the TTQApplication object - private static TTQApplication qapp; + // Hold an instance of the TQApplication object + private static TQApplication qapp; private QtSignalMap csSignalMap; private QtSignalMap cppSignalMap; - public static TTQApplication qApp { + public static TQApplication qApp { get {return qapp;} set {qapp = value;} } @@ -58,12 +58,12 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QObject (IntPtr parent, string name); - public TTQObject (TTQObject parent, string name) : this (TQNull.Instance) + public TQObject (TQObject parent, string name) : this (TQNull.Instance) { qparent = parent; if (qparent == null) - parent = new TTQWidget (IntPtr.Zero); + parent = new TQWidget (IntPtr.Zero); else qparent.AddChild (this); @@ -71,29 +71,29 @@ namespace Qt { RegisterObject (this); } - public TTQObject (TTQObject parent) : this (parent, "") {} + public TQObject (TQObject parent) : this (parent, "") {} - internal TTQObject () : this (TQNull.Instance) {} + internal TQObject () : this (TQNull.Instance) {} - internal TTQObject (IntPtr ptr) : this (TQNull.Instance) + internal TQObject (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject (this); } - internal TTQObject (TQNull dummy) : base (TQNull.Instance) + internal TQObject (TQNull dummy) : base (TQNull.Instance) { InitSignals (); } // FIXME This ctor used only by QtSignal - internal TTQObject (NoSignalInit dummy) : base (TQNull.Instance) + internal TQObject (NoSignalInit dummy) : base (TQNull.Instance) { rawObject = qt_new_QObject (IntPtr.Zero, ""); RegisterObject (this); } - ~TTQObject () + ~TQObject () { Dispose(false); } @@ -172,25 +172,25 @@ namespace Qt { Dispose (); } - public TTQObject QtCast() + public TQObject QtCast() { string QtType = this.ClassName(); Type newType = Type.GetType( "Qt." + QtType ); object[] paramArray = { this.RawObject }; - return (TTQObject) Activator.CreateInstance( newType, paramArray ); + return (TQObject) Activator.CreateInstance( newType, paramArray ); } - public static bool Connect(TTQObject sender, string signal, TTQObject receiver, string slot) + public static bool Connect(TQObject sender, string signal, TQObject receiver, string slot) { return QtSignal.Connect(sender, signal, receiver, slot); } - public bool Connect (TTQObject sender, string signal, string member) + public bool Connect (TQObject sender, string signal, string member) { return Connect (sender, signal, this, member); } - public static bool Disconnect(TTQObject sender, string signal, TTQObject receiver, string slot) + public static bool Disconnect(TQObject sender, string signal, TQObject receiver, string slot) { return QtSignal.Disconnect(sender, signal, receiver, slot); } @@ -200,12 +200,12 @@ namespace Qt { return Disconnect (this, null, null, null); } - public bool Disconnect (string signal, TTQObject receiver, string member) + public bool Disconnect (string signal, TQObject receiver, string member) { return Disconnect(this, signal, receiver, member); } - public bool Disconnect (TTQObject receiver, string slot) + public bool Disconnect (TQObject receiver, string slot) { return Disconnect (this, null, receiver, slot); } @@ -240,7 +240,7 @@ namespace Qt { private static extern IntPtr qt_QObject_tr (IntPtr raw, string arg1, string arg2); public string Tr (string arg1, string arg2) { - TTQString qstr = new TTQString (qt_QObject_tr (rawObject, arg1, arg2)); + TQString qstr = new TQString (qt_QObject_tr (rawObject, arg1, arg2)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -250,7 +250,7 @@ namespace Qt { private static extern IntPtr qt_QObject_trUtf8 (IntPtr raw, string arg1, string arg2); public string TrUtf8 (string arg1, string arg2) { - TTQString qstr = new TTQString (qt_QObject_trUtf8 (rawObject, arg1, arg2)); + TQString qstr = new TQString (qt_QObject_trUtf8 (rawObject, arg1, arg2)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -258,21 +258,21 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_metaObject (IntPtr raw); - public TTQMetaObject MetaObject () + public TQMetaObject MetaObject () { - return (TTQMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(TTQMetaObject)); + return (TQMetaObject)LookupObject (qt_QObject_metaObject (rawObject), typeof(TQMetaObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_event (IntPtr raw, IntPtr arg1); - public bool Q_event (TTQEvent arg1) + public bool Q_event (TQEvent arg1) { return qt_QObject_event (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_eventFilter (IntPtr raw, IntPtr arg1, IntPtr arg2); - public bool EventFilter (TTQObject arg1, TTQEvent arg2) + public bool EventFilter (TQObject arg1, TQEvent arg2) { return qt_QObject_eventFilter (rawObject, arg1.RawObject, arg2.RawObject); } @@ -363,49 +363,49 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_child (IntPtr raw, string objName, string inheritsClass, bool recursiveSearch); - public TTQObject Child (string objName, string inheritsClass, bool recursiveSearch) + public TQObject Child (string objName, string inheritsClass, bool recursiveSearch) { - return (TTQObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(TTQObject)); + return (TQObject)LookupObject (qt_QObject_child (rawObject, objName, inheritsClass, recursiveSearch), typeof(TQObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_children (IntPtr raw); - public TTQObjectList Children () + public TQObjectList Children () { - return (TTQObjectList)LookupObject (qt_QObject_children (rawObject), typeof(TTQObjectList)); + return (TQObjectList)LookupObject (qt_QObject_children (rawObject), typeof(TQObjectList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_queryList (IntPtr raw, string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch); - public TTQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch) + public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch, bool recursiveSearch) { - return (TTQObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(TTQObjectList)); + return (TQObjectList)LookupObject (qt_QObject_queryList (rawObject, inheritsClass, objName, regexpMatch, recursiveSearch), typeof(TQObjectList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_insertChild (IntPtr raw, IntPtr arg1); - public void InsertChild (TTQObject arg1) + public void InsertChild (TQObject arg1) { qt_QObject_insertChild (rawObject, arg1.RawObject); } /*[DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_removeChild (IntPtr raw, IntPtr arg1); - public void RemoveChild (TTQObject arg1) + public void RemoveChild (TQObject arg1) { qt_QObject_removeChild (rawObject, arg1.RawObject); }*/ [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_installEventFilter (IntPtr raw, IntPtr arg1); - public void InstallEventFilter (TTQObject arg1) + public void InstallEventFilter (TQObject arg1) { qt_QObject_installEventFilter (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_removeEventFilter (IntPtr raw, IntPtr arg1); - public void RemoveEventFilter (TTQObject arg1) + public void RemoveEventFilter (TQObject arg1) { qt_QObject_removeEventFilter (rawObject, arg1.RawObject); } @@ -426,23 +426,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_setProperty (IntPtr raw, string name, IntPtr value); - public bool SetProperty (string name, TTQVariant value) + public bool SetProperty (string name, TQVariant value) { return qt_QObject_setProperty (rawObject, name, value.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_property (IntPtr raw, string name); - public TTQVariant Property (string name) + public TQVariant Property (string name) { - return (TTQVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(TTQVariant)); + return (TQVariant)LookupObject (qt_QObject_property (rawObject, name), typeof(TQVariant)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_parent (IntPtr raw); - public TTQObject Parent () + public TQObject Parent () { - return (TTQObject)LookupObject (qt_QObject_parent (rawObject), typeof(TTQObject)); + return (TQObject)LookupObject (qt_QObject_parent (rawObject), typeof(TQObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -454,15 +454,15 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_objectTrees (); - public static TTQObjectList ObjectTrees () + public static TQObjectList ObjectTrees () { - return (TTQObjectList)LookupObject (qt_QObject_objectTrees (), typeof(TTQObjectList)); + return (TQObjectList)LookupObject (qt_QObject_objectTrees (), typeof(TQObjectList)); } /*FIXME [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_connectInternal (IntPtr sender, int signal_index, IntPtr receiver, int membcode, int member_index); - public static void ConnectInternal (TTQObject sender, int signal_index, TTQObject receiver, int membcode, int member_index) + public static void ConnectInternal (TQObject sender, int signal_index, TQObject receiver, int membcode, int member_index) { qt_QObject_connectInternal (sender.RawObject, signal_index, receiver.RawObject, membcode, member_index); } @@ -470,23 +470,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_activate_filters (IntPtr raw, IntPtr arg1); - protected bool Activate_filters (TTQEvent arg1) + protected bool Activate_filters (TQEvent arg1) { return qt_QObject_activate_filters (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_receivers (IntPtr raw, string signal); - protected TTQConnectionList Receivers (string signal) + protected TQConnectionList Receivers (string signal) { - return (TTQConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(TTQConnectionList)); + return (TQConnectionList)LookupObject (qt_QObject_receivers (rawObject, signal), typeof(TQConnectionList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_receivers1 (IntPtr raw, int signal); - protected TTQConnectionList Receivers (int signal) + protected TQConnectionList Receivers (int signal) { - return (TTQConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(TTQConnectionList)); + return (TQConnectionList)LookupObject (qt_QObject_receivers1 (rawObject, signal), typeof(TQConnectionList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -514,7 +514,7 @@ namespace Qt { private static extern void qt_QObject_activate_signal3 (IntPtr raw, int signal, IntPtr arg1); protected void Activate_signal (int signal, string arg1) { - qt_QObject_activate_signal3 (rawObject, signal, new TTQString (arg1).RawObject); + qt_QObject_activate_signal3 (rawObject, signal, new TQString (arg1).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -527,7 +527,7 @@ namespace Qt { /* [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QObject_activate_signal4 (IntPtr raw, IntPtr clist, IntPtr o); - protected void Activate_signal (TTQConnectionList clist, IntPtr o) + protected void Activate_signal (TQConnectionList clist, IntPtr o) { qt_QObject_activate_signal4 (rawObject, clist.RawObject, o); } @@ -535,9 +535,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_sender (IntPtr raw); - protected TTQObject Sender () + protected TQObject Sender () { - return (TTQObject)LookupObject (qt_QObject_sender (rawObject), typeof(TTQObject)); + return (TQObject)LookupObject (qt_QObject_sender (rawObject), typeof(TQObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -556,7 +556,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QObject_checkConnectArgs (IntPtr raw, string signal, IntPtr receiver, string member); - protected bool CheckConnectArgs (string signal, TTQObject receiver, string member) + protected bool CheckConnectArgs (string signal, TQObject receiver, string member) { return qt_QObject_checkConnectArgs (rawObject, signal, receiver.RawObject, member); } @@ -564,38 +564,38 @@ namespace Qt { /* [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QObject_normalizeSignalSlot (string signalSlot); - protected static TTQCString NormalizeSignalSlot (string signalSlot) + protected static TQCString NormalizeSignalSlot (string signalSlot) { - return (TTQCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(TTQCString)); + return (TQCString)LookupObject (qt_QObject_normalizeSignalSlot (signalSlot), typeof(TQCString)); } */ - public TTQObject Child (string objName) + public TQObject Child (string objName) { return Child(objName, null); } - public TTQObject Child (string objName, string inheritsClass) + public TQObject Child (string objName, string inheritsClass) { return Child(objName, inheritsClass, true); } - public TTQObjectList QueryList () + public TQObjectList QueryList () { return QueryList(""); } - public TTQObjectList QueryList (string inheritsClass) + public TQObjectList QueryList (string inheritsClass) { return QueryList(inheritsClass, ""); } - public TTQObjectList QueryList (string inheritsClass, string objName) + public TQObjectList QueryList (string inheritsClass, string objName) { return QueryList(inheritsClass, objName, true); } - public TTQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch) + public TQObjectList QueryList (string inheritsClass, string objName, bool regexpMatch) { return QueryList(inheritsClass, objName, regexpMatch, true); } diff --git a/qtsharp/src/bindings/static/QPopupMenu.cs b/qtsharp/src/bindings/static/QPopupMenu.cs index 584d258e..4ded6a7f 100644 --- a/qtsharp/src/bindings/static/QPopupMenu.cs +++ b/qtsharp/src/bindings/static/QPopupMenu.cs @@ -1,4 +1,4 @@ -// TTQPopupMenu.cs - A Qt to C# binding. +// TQPopupMenu.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -28,7 +28,7 @@ namespace Qt { using System.Collections; using System.Runtime.InteropServices; - public class TTQPopupMenu : TTQFrame, ITQMenuData, IDisposable { + public class TQPopupMenu : TQFrame, ITQMenuData, IDisposable { private Hashtable menuConnections; @@ -38,31 +38,31 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QPopupMenu (IntPtr parent, string name); - public TTQPopupMenu (TTQWidget parent, string name) : this (TQNull.Instance) + public TQPopupMenu (TQWidget parent, string name) : this (TQNull.Instance) { qparent = parent; - if (qparent == null) parent = new TTQWidget (IntPtr.Zero); + if (qparent == null) parent = new TQWidget (IntPtr.Zero); rawObject = qt_new_QPopupMenu (parent.RawObject, name); if (qparent == null) RegisterObject (this); else qparent.AddChild (this); } - public TTQPopupMenu () : this (new TTQWidget ()) {} + public TQPopupMenu () : this (new TQWidget ()) {} - public TTQPopupMenu (TTQWidget parent) : this (parent, "") {} + public TQPopupMenu (TQWidget parent) : this (parent, "") {} - internal TTQPopupMenu (IntPtr ptr) : this (TQNull.Instance) + internal TQPopupMenu (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject(this); } - internal TTQPopupMenu (TQNull dummy) : base (TQNull.Instance) + internal TQPopupMenu (TQNull dummy) : base (TQNull.Instance) { menuConnections = new Hashtable(); } - ~TTQPopupMenu () + ~TQPopupMenu () { Dispose (false); } @@ -79,7 +79,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QPopupMenu_popup (IntPtr raw, IntPtr pos, int indexAtPoint); - public void Popup (TTQPoint pos, int indexAtPoint) + public void Popup (TQPoint pos, int indexAtPoint) { qt_QPopupMenu_popup (rawObject, pos.RawObject, indexAtPoint); } @@ -107,7 +107,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QPopupMenu_setFont (IntPtr raw, IntPtr arg1); - public void SetFont (TTQFont arg1) + public void SetFont (TQFont arg1) { qt_QPopupMenu_setFont (rawObject, arg1.RawObject); } @@ -135,7 +135,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QPopupMenu_exec1 (IntPtr raw, IntPtr pos, int indexAtPoint); - public int Exec (TTQPoint pos, int indexAtPoint) + public int Exec (TQPoint pos, int indexAtPoint) { return qt_QPopupMenu_exec1 (rawObject, pos.RawObject, indexAtPoint); } @@ -149,9 +149,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QPopupMenu_sizeHint (IntPtr raw); - public TTQSize SizeHint () + public TQSize SizeHint () { - return (TTQSize)LookupObject (qt_QPopupMenu_sizeHint (rawObject), typeof(TTQSize)); + return (TQSize)LookupObject (qt_QPopupMenu_sizeHint (rawObject), typeof(TQSize)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -163,7 +163,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QPopupMenu_idAt1 (IntPtr raw, IntPtr pos); - public int IdAt (TTQPoint pos) + public int IdAt (TQPoint pos) { return qt_QPopupMenu_idAt1 (rawObject, pos.RawObject); } @@ -191,9 +191,9 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QPopupMenu_itemGeometry (IntPtr raw, int index); - public TTQRect ItemGeometry (int index) + public TQRect ItemGeometry (int index) { - return (TTQRect)LookupObject (qt_QPopupMenu_itemGeometry (rawObject, index), typeof(TTQRect)); + return (TQRect)LookupObject (qt_QPopupMenu_itemGeometry (rawObject, index), typeof(TQRect)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -205,28 +205,28 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QPopupMenu_itemHeight1 (IntPtr raw, IntPtr mi); - protected int ItemHeight (TTQMenuItem mi) + protected int ItemHeight (TQMenuItem mi) { return qt_QPopupMenu_itemHeight1 (rawObject, mi.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QPopupMenu_drawItem (IntPtr raw, IntPtr p, int tab, IntPtr mi, bool act, int x, int y, int w, int h); - protected void DrawItem (TTQPainter p, int tab, TTQMenuItem mi, bool act, int x, int y, int w, int h) + protected void DrawItem (TQPainter p, int tab, TQMenuItem mi, bool act, int x, int y, int w, int h) { qt_QPopupMenu_drawItem (rawObject, p.RawObject, tab, mi.RawObject, act, x, y, w, h); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QPopupMenu_drawContents (IntPtr raw, IntPtr arg1); - protected void DrawContents (TTQPainter arg1) + protected void DrawContents (TQPainter arg1) { qt_QPopupMenu_drawContents (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QPopupMenu_styleChange (IntPtr raw, IntPtr arg1); - protected void StyleChange (TTQStyle arg1) + protected void StyleChange (TQStyle arg1) { qt_QPopupMenu_styleChange (rawObject, arg1.RawObject); } @@ -247,17 +247,17 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QPopupMenu_itemAtPos (IntPtr raw, IntPtr arg1, bool ignoreSeparator); - protected int ItemAtPos (TTQPoint arg1, bool ignoreSeparator) + protected int ItemAtPos (TQPoint arg1, bool ignoreSeparator) { return qt_QPopupMenu_itemAtPos (rawObject, arg1.RawObject, ignoreSeparator); } - public void Popup (TTQPoint pos) + public void Popup (TQPoint pos) { Popup(pos, (int) 0); } - public int Exec (TTQPoint pos) + public int Exec (TQPoint pos) { return Exec(pos, (int) 0); } @@ -272,14 +272,14 @@ namespace Qt { return InsertTearOffHandle(identifier, (int) -1); } - protected int ItemAtPos (TTQPoint arg1) + protected int ItemAtPos (TQPoint arg1) { return ItemAtPos(arg1, true); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QPopupMenu_QMenuData (IntPtr raw); - public IntPtr TTQMenuData () + public IntPtr TQMenuData () { return qt_QPopupMenu_QMenuData (rawObject); } @@ -289,7 +289,7 @@ namespace Qt { //********************* A temporary hack to divert connections to CSharpConnect *****************// - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (text, identifier, index); SetAccel (accel, id); @@ -297,7 +297,7 @@ namespace Qt { return id; } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (icon, text, identifier, index); SetAccel (accel, id); @@ -305,7 +305,7 @@ namespace Qt { return id; } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (pixmap, identifier, index); SetAccel (accel, id); @@ -313,7 +313,7 @@ namespace Qt { return id; } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier, int index) { int id = InsertItem (icon, pixmap, identifier, index); SetAccel (accel, id); @@ -321,14 +321,14 @@ namespace Qt { return id; } - public bool ConnectItem (int identifier, TTQObject receiver, string member) + public bool ConnectItem (int identifier, TQObject receiver, string member) { - return Qt.TTQMenuData.ConnectItem (this, TTQMenuData (), identifier, receiver, member); + return Qt.TQMenuData.ConnectItem (this, TQMenuData (), identifier, receiver, member); } - public bool DisconnectItem (int identifier, TTQObject receiver, string member) + public bool DisconnectItem (int identifier, TQObject receiver, string member) { - return Qt.TTQMenuData.DisconnectItem (this, TTQMenuData (), identifier, receiver, member); + return Qt.TQMenuData.DisconnectItem (this, TQMenuData (), identifier, receiver, member); } //********************* A temporary hack to divert connections to CSharpConnect *****************// @@ -337,140 +337,140 @@ namespace Qt { private static extern uint qt_QMenuData_count (IntPtr raw); public uint Count () { - return qt_QMenuData_count (TTQMenuData ()); + return qt_QMenuData_count (TQMenuData ()); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem4 (IntPtr raw, IntPtr text, int identifier, int index); public int InsertItem (string text, int identifier, int index) { - return qt_QMenuData_insertItem4 (TTQMenuData (), new TTQString (text).RawObject, identifier, index); + return qt_QMenuData_insertItem4 (TQMenuData (), new TQString (text).RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem5 (IntPtr raw, IntPtr icon, IntPtr text, int identifier, int index); - public int InsertItem (TTQIconSet icon, string text, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, int identifier, int index) { - return qt_QMenuData_insertItem5 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, identifier, index); + return qt_QMenuData_insertItem5 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem6 (IntPtr raw, IntPtr text, IntPtr popup, int identifier, int index); - public int InsertItem (string text, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (string text, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem6 (TTQMenuData (), new TTQString (text).RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem6 (TQMenuData (), new TQString (text).RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem7 (IntPtr raw, IntPtr icon, IntPtr text, IntPtr popup, int identifier, int index); - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem7 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem7 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem8 (IntPtr raw, IntPtr pixmap, int identifier, int index); - public int InsertItem (TTQPixmap pixmap, int identifier, int index) + public int InsertItem (TQPixmap pixmap, int identifier, int index) { - return qt_QMenuData_insertItem8 (TTQMenuData (), pixmap.RawObject, identifier, index); + return qt_QMenuData_insertItem8 (TQMenuData (), pixmap.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem9 (IntPtr raw, IntPtr icon, IntPtr pixmap, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier, int index) { - return qt_QMenuData_insertItem9 (TTQMenuData (), icon.RawObject, pixmap.RawObject, identifier, index); + return qt_QMenuData_insertItem9 (TQMenuData (), icon.RawObject, pixmap.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem10 (IntPtr raw, IntPtr pixmap, IntPtr popup, int identifier, int index); - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem10 (TTQMenuData (), pixmap.RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem10 (TQMenuData (), pixmap.RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem11 (IntPtr raw, IntPtr icon, IntPtr pixmap, IntPtr popup, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier, int index) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier, int index) { - return qt_QMenuData_insertItem11 (TTQMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index); + return qt_QMenuData_insertItem11 (TQMenuData (), icon.RawObject, pixmap.RawObject, popup.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem12 (IntPtr raw, IntPtr widget, int identifier, int index); - public int InsertItem (TTQWidget widget, int identifier, int index) + public int InsertItem (TQWidget widget, int identifier, int index) { - return qt_QMenuData_insertItem12 (TTQMenuData (), widget.RawObject, identifier, index); + return qt_QMenuData_insertItem12 (TQMenuData (), widget.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem13 (IntPtr raw, IntPtr icon, IntPtr custom, int identifier, int index); - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier, int index) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier, int index) { - return qt_QMenuData_insertItem13 (TTQMenuData (), icon.RawObject, custom.RawObject, identifier, index); + return qt_QMenuData_insertItem13 (TQMenuData (), icon.RawObject, custom.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertItem14 (IntPtr raw, IntPtr custom, int identifier, int index); - public int InsertItem (TTQCustomMenuItem custom, int identifier, int index) + public int InsertItem (TQCustomMenuItem custom, int identifier, int index) { - return qt_QMenuData_insertItem14 (TTQMenuData (), custom.RawObject, identifier, index); + return qt_QMenuData_insertItem14 (TQMenuData (), custom.RawObject, identifier, index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_insertSeparator (IntPtr raw, int index); public int InsertSeparator (int index) { - return qt_QMenuData_insertSeparator (TTQMenuData (), index); + return qt_QMenuData_insertSeparator (TQMenuData (), index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_removeItem (IntPtr raw, int identifier); public void RemoveItem (int identifier) { - qt_QMenuData_removeItem (TTQMenuData (), identifier); + qt_QMenuData_removeItem (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_removeItemAt (IntPtr raw, int index); public void RemoveItemAt (int index) { - qt_QMenuData_removeItemAt (TTQMenuData (), index); + qt_QMenuData_removeItemAt (TQMenuData (), index); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_clear (IntPtr raw); public void Clear () { - qt_QMenuData_clear (TTQMenuData ()); + qt_QMenuData_clear (TQMenuData ()); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_accel (IntPtr raw, int identifier); - public TTQKeySequence Accel (int identifier) + public TQKeySequence Accel (int identifier) { - return (TTQKeySequence)LookupObject (qt_QMenuData_accel (TTQMenuData (), identifier), typeof(TTQKeySequence)); + return (TQKeySequence)LookupObject (qt_QMenuData_accel (TQMenuData (), identifier), typeof(TQKeySequence)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setAccel (IntPtr raw, IntPtr key, int identifier); - public void SetAccel (TTQKeySequence key, int identifier) + public void SetAccel (TQKeySequence key, int identifier) { - qt_QMenuData_setAccel (TTQMenuData (), key.RawObject, identifier); + qt_QMenuData_setAccel (TQMenuData (), key.RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_iconSet (IntPtr raw, int identifier); - public TTQIconSet IconSet (int identifier) + public TQIconSet IconSet (int identifier) { - return (TTQIconSet)LookupObject (qt_QMenuData_iconSet (TTQMenuData (), identifier), typeof(TTQIconSet)); + return (TQIconSet)LookupObject (qt_QMenuData_iconSet (TQMenuData (), identifier), typeof(TQIconSet)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_text (IntPtr raw, int identifier); public string Text (int identifier) { - TTQString qstr = new TTQString (qt_QMenuData_text (TTQMenuData (), identifier)); + TQString qstr = new TQString (qt_QMenuData_text (TQMenuData (), identifier)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -478,23 +478,23 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_pixmap (IntPtr raw, int identifier); - public TTQPixmap Pixmap (int identifier) + public TQPixmap Pixmap (int identifier) { - return (TTQPixmap)LookupObject (qt_QMenuData_pixmap (TTQMenuData (), identifier), typeof(TTQPixmap)); + return (TQPixmap)LookupObject (qt_QMenuData_pixmap (TQMenuData (), identifier), typeof(TQPixmap)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setWhatsThis (IntPtr raw, int identifier, IntPtr arg1); public void SetWhatsThis (int identifier, string arg1) { - qt_QMenuData_setWhatsThis (TTQMenuData (), identifier, new TTQString (arg1).RawObject); + qt_QMenuData_setWhatsThis (TQMenuData (), identifier, new TQString (arg1).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_whatsThis (IntPtr raw, int identifier); public string WhatsThis (int identifier) { - TTQString qstr = new TTQString (qt_QMenuData_whatsThis (TTQMenuData (), identifier)); + TQString qstr = new TQString (qt_QMenuData_whatsThis (TQMenuData (), identifier)); string str = qstr.Latin1 (); qstr.Dispose (); return str; @@ -504,205 +504,205 @@ namespace Qt { private static extern void qt_QMenuData_changeItem (IntPtr raw, int identifier, IntPtr text); public void ChangeItem (int identifier, string text) { - qt_QMenuData_changeItem (TTQMenuData (), identifier, new TTQString (text).RawObject); + qt_QMenuData_changeItem (TQMenuData (), identifier, new TQString (text).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem1 (IntPtr raw, int identifier, IntPtr pixmap); - public void ChangeItem (int identifier, TTQPixmap pixmap) + public void ChangeItem (int identifier, TQPixmap pixmap) { - qt_QMenuData_changeItem1 (TTQMenuData (), identifier, pixmap.RawObject); + qt_QMenuData_changeItem1 (TQMenuData (), identifier, pixmap.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem2 (IntPtr raw, int identifier, IntPtr icon, IntPtr text); - public void ChangeItem (int identifier, TTQIconSet icon, string text) + public void ChangeItem (int identifier, TQIconSet icon, string text) { - qt_QMenuData_changeItem2 (TTQMenuData (), identifier, icon.RawObject, new TTQString (text).RawObject); + qt_QMenuData_changeItem2 (TQMenuData (), identifier, icon.RawObject, new TQString (text).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem3 (IntPtr raw, int identifier, IntPtr icon, IntPtr pixmap); - public void ChangeItem (int identifier, TTQIconSet icon, TTQPixmap pixmap) + public void ChangeItem (int identifier, TQIconSet icon, TQPixmap pixmap) { - qt_QMenuData_changeItem3 (TTQMenuData (), identifier, icon.RawObject, pixmap.RawObject); + qt_QMenuData_changeItem3 (TQMenuData (), identifier, icon.RawObject, pixmap.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem4 (IntPtr raw, IntPtr text, int identifier); public void ChangeItem (string text, int identifier) { - qt_QMenuData_changeItem4 (TTQMenuData (), new TTQString (text).RawObject, identifier); + qt_QMenuData_changeItem4 (TQMenuData (), new TQString (text).RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem5 (IntPtr raw, IntPtr pixmap, int identifier); - public void ChangeItem (TTQPixmap pixmap, int identifier) + public void ChangeItem (TQPixmap pixmap, int identifier) { - qt_QMenuData_changeItem5 (TTQMenuData (), pixmap.RawObject, identifier); + qt_QMenuData_changeItem5 (TQMenuData (), pixmap.RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_changeItem6 (IntPtr raw, IntPtr icon, IntPtr text, int identifier); - public void ChangeItem (TTQIconSet icon, string text, int identifier) + public void ChangeItem (TQIconSet icon, string text, int identifier) { - qt_QMenuData_changeItem6 (TTQMenuData (), icon.RawObject, new TTQString (text).RawObject, identifier); + qt_QMenuData_changeItem6 (TQMenuData (), icon.RawObject, new TQString (text).RawObject, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_isItemActive (IntPtr raw, int identifier); public bool IsItemActive (int identifier) { - return qt_QMenuData_isItemActive (TTQMenuData (), identifier); + return qt_QMenuData_isItemActive (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_isItemEnabled (IntPtr raw, int identifier); public bool IsItemEnabled (int identifier) { - return qt_QMenuData_isItemEnabled (TTQMenuData (), identifier); + return qt_QMenuData_isItemEnabled (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setItemEnabled (IntPtr raw, int identifier, bool enable); public void SetItemEnabled (int identifier, bool enable) { - qt_QMenuData_setItemEnabled (TTQMenuData (), identifier, enable); + qt_QMenuData_setItemEnabled (TQMenuData (), identifier, enable); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_isItemChecked (IntPtr raw, int identifier); public bool IsItemChecked (int identifier) { - return qt_QMenuData_isItemChecked (TTQMenuData (), identifier); + return qt_QMenuData_isItemChecked (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setItemChecked (IntPtr raw, int identifier, bool check); public void SetItemChecked (int identifier, bool check) { - qt_QMenuData_setItemChecked (TTQMenuData (), identifier, check); + qt_QMenuData_setItemChecked (TQMenuData (), identifier, check); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_indexOf (IntPtr raw, int identifier); public int IndexOf (int identifier) { - return qt_QMenuData_indexOf (TTQMenuData (), identifier); + return qt_QMenuData_indexOf (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_setId (IntPtr raw, int index, int identifier); public void SetId (int index, int identifier) { - qt_QMenuData_setId (TTQMenuData (), index, identifier); + qt_QMenuData_setId (TQMenuData (), index, identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QMenuData_setItemParameter (IntPtr raw, int identifier, int param); public bool SetItemParameter (int identifier, int param) { - return qt_QMenuData_setItemParameter (TTQMenuData (), identifier, param); + return qt_QMenuData_setItemParameter (TQMenuData (), identifier, param); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QMenuData_itemParameter (IntPtr raw, int identifier); public int ItemParameter (int identifier) { - return qt_QMenuData_itemParameter (TTQMenuData (), identifier); + return qt_QMenuData_itemParameter (TQMenuData (), identifier); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findItem (IntPtr raw, int identifier); - public TTQMenuItem FindItem (int identifier) + public TQMenuItem FindItem (int identifier) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findItem (TTQMenuData (), identifier), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findItem (TQMenuData (), identifier), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findItem1 (IntPtr raw, int identifier, IntPtr parent); - public TTQMenuItem FindItem (int identifier, TTQMenuData parent) + public TQMenuItem FindItem (int identifier, TQMenuData parent) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findItem1 (TTQMenuData (), identifier, parent.RawObject), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findItem1 (TQMenuData (), identifier, parent.RawObject), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QMenuData_findPopup (IntPtr raw, IntPtr arg1, int[] index); - public TTQMenuItem FindPopup (TTQPopupMenu arg1, int[] index) + public TQMenuItem FindPopup (TQPopupMenu arg1, int[] index) { - return (TTQMenuItem)LookupObject (qt_QMenuData_findPopup (TTQMenuData (), arg1.RawObject, index), typeof(TTQMenuItem)); + return (TQMenuItem)LookupObject (qt_QMenuData_findPopup (TQMenuData (), arg1.RawObject, index), typeof(TQMenuItem)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_menuInsPopup (IntPtr raw, IntPtr arg1); - protected void MenuInsPopup (TTQPopupMenu arg1) + protected void MenuInsPopup (TQPopupMenu arg1) { - qt_QMenuData_menuInsPopup (TTQMenuData (), arg1.RawObject); + qt_QMenuData_menuInsPopup (TQMenuData (), arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QMenuData_menuDelPopup (IntPtr raw, IntPtr arg1); - protected void MenuDelPopup (TTQPopupMenu arg1) + protected void MenuDelPopup (TQPopupMenu arg1) { - qt_QMenuData_menuDelPopup (TTQMenuData (), arg1.RawObject); + qt_QMenuData_menuDelPopup (TQMenuData (), arg1.RawObject); } - public int InsertItem (string text, TTQObject receiver, string member) + public int InsertItem (string text, TQObject receiver, string member) { - return InsertItem(text, receiver, member, new TTQKeySequence ()); + return InsertItem(text, receiver, member, new TQKeySequence ()); } - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(text, receiver, member, accel, (int) -1); } - public int InsertItem (string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (string text, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(text, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member) { - return InsertItem(icon, text, receiver, member, new TTQKeySequence ()); + return InsertItem(icon, text, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(icon, text, receiver, member, accel, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQIconSet icon, string text, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(icon, text, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member) { - return InsertItem(pixmap, receiver, member, new TTQKeySequence ()); + return InsertItem(pixmap, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(pixmap, receiver, member, accel, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(pixmap, receiver, member, accel, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member) { - return InsertItem(icon, pixmap, receiver, member, new TTQKeySequence ()); + return InsertItem(icon, pixmap, receiver, member, new TQKeySequence ()); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel) { return InsertItem(icon, pixmap, receiver, member, accel, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQObject receiver, string member, TTQKeySequence accel, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQObject receiver, string member, TQKeySequence accel, int identifier) { return InsertItem(icon, pixmap, receiver, member, accel, identifier, (int) -1); } @@ -717,102 +717,102 @@ namespace Qt { return InsertItem(text, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text) + public int InsertItem (TQIconSet icon, string text) { return InsertItem(icon, text, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, int identifier) + public int InsertItem (TQIconSet icon, string text, int identifier) { return InsertItem(icon, text, identifier, (int) -1); } - public int InsertItem (string text, TTQPopupMenu popup) + public int InsertItem (string text, TQPopupMenu popup) { return InsertItem(text, popup, (int) -1); } - public int InsertItem (string text, TTQPopupMenu popup, int identifier) + public int InsertItem (string text, TQPopupMenu popup, int identifier) { return InsertItem(text, popup, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup) { return InsertItem(icon, text, popup, (int) -1); } - public int InsertItem (TTQIconSet icon, string text, TTQPopupMenu popup, int identifier) + public int InsertItem (TQIconSet icon, string text, TQPopupMenu popup, int identifier) { return InsertItem(icon, text, popup, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap) + public int InsertItem (TQPixmap pixmap) { return InsertItem(pixmap, (int) -1); } - public int InsertItem (TTQPixmap pixmap, int identifier) + public int InsertItem (TQPixmap pixmap, int identifier) { return InsertItem(pixmap, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap) + public int InsertItem (TQIconSet icon, TQPixmap pixmap) { return InsertItem(icon, pixmap, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, int identifier) { return InsertItem(icon, pixmap, identifier, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup) { return InsertItem(pixmap, popup, (int) -1); } - public int InsertItem (TTQPixmap pixmap, TTQPopupMenu popup, int identifier) + public int InsertItem (TQPixmap pixmap, TQPopupMenu popup, int identifier) { return InsertItem(pixmap, popup, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup) { return InsertItem(icon, pixmap, popup, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQPixmap pixmap, TTQPopupMenu popup, int identifier) + public int InsertItem (TQIconSet icon, TQPixmap pixmap, TQPopupMenu popup, int identifier) { return InsertItem(icon, pixmap, popup, identifier, (int) -1); } - public int InsertItem (TTQWidget widget) + public int InsertItem (TQWidget widget) { return InsertItem(widget, (int) -1); } - public int InsertItem (TTQWidget widget, int identifier) + public int InsertItem (TQWidget widget, int identifier) { return InsertItem(widget, identifier, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom) { return InsertItem(icon, custom, (int) -1); } - public int InsertItem (TTQIconSet icon, TTQCustomMenuItem custom, int identifier) + public int InsertItem (TQIconSet icon, TQCustomMenuItem custom, int identifier) { return InsertItem(icon, custom, identifier, (int) -1); } - public int InsertItem (TTQCustomMenuItem custom) + public int InsertItem (TQCustomMenuItem custom) { return InsertItem(custom, (int) -1); } - public int InsertItem (TTQCustomMenuItem custom, int identifier) + public int InsertItem (TQCustomMenuItem custom, int identifier) { return InsertItem(custom, identifier, (int) -1); } @@ -822,7 +822,7 @@ namespace Qt { return InsertSeparator((int) -1); } - public TTQMenuItem FindPopup (TTQPopupMenu arg1) + public TQMenuItem FindPopup (TQPopupMenu arg1) { return FindPopup(arg1, new int[]{0}); } diff --git a/qtsharp/src/bindings/static/QString.cs b/qtsharp/src/bindings/static/QString.cs index e47c52ba..cd3ba3c0 100644 --- a/qtsharp/src/bindings/static/QString.cs +++ b/qtsharp/src/bindings/static/QString.cs @@ -1,4 +1,4 @@ -// TTQString.cs - A Qt to C# binding. +// TQString.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -26,7 +26,7 @@ namespace Qt { using System; using System.Runtime.InteropServices; - public class TTQString : QtSupport, IDisposable { + public class TQString : QtSupport, IDisposable { public enum SectionFlags { SectionDefault = 0, @@ -39,28 +39,28 @@ namespace Qt { [DllImport("libqtc")] private static extern IntPtr qt_QString_null (); - public static readonly TTQString Null = new TTQString (qt_QString_null ()); + public static readonly TQString Null = new TQString (qt_QString_null ()); // TODO: Is there a good reason why this C# constructor is public? [DllImport("libqtc")] private static extern IntPtr qt_new_QString (); - public TTQString () : this (TQNull.Instance) + public TQString () : this (TQNull.Instance) { rawObject = qt_new_QString (); } - // TODO: Make sure there is a TTQChar constructor that + // TODO: Make sure there is a TQChar constructor that // handles unicode conversion [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QString1 (IntPtr arg1); - public TTQString (TTQChar arg1) : this (TQNull.Instance) + public TQString (TQChar arg1) : this (TQNull.Instance) { rawObject = qt_new_QString1 (arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QString2 (IntPtr arg1); - public TTQString (TTQString arg1) : this (TQNull.Instance) + public TQString (TQString arg1) : this (TQNull.Instance) { rawObject = qt_new_QString2 (arg1.RawObject); } @@ -69,7 +69,7 @@ namespace Qt { // TQByteArray [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QString3 (IntPtr arg1); - public TTQString (TTQByteArray arg1) : this (TQNull.Instance) + public TQString (TQByteArray arg1) : this (TQNull.Instance) { rawObject = qt_new_QString3 (arg1.RawObject); } @@ -79,7 +79,7 @@ namespace Qt { // TQChar [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QString4 (IntPtr unicode, uint length); - public TTQString (TTQChar unicode, uint length) : this (TQNull.Instance) + public TQString (TQChar unicode, uint length) : this (TQNull.Instance) { rawObject = qt_new_QString4 (unicode.RawObject, length); @@ -91,25 +91,25 @@ namespace Qt { [MarshalAs(UnmanagedType.LPWStr)] string s, uint len); - public TTQString( string s ): this( TQNull.Instance ) + public TQString( string s ): this( TQNull.Instance ) { rawObject = qt_new_QString (); rawObject = qt_QString_setUnicodeCodes( rawObject, s, (uint) s.Length ); } - internal TTQString (IntPtr ptr) : this (TQNull.Instance) + internal TQString (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; } - internal TTQString (TQNull dummy) : base (TQNull.Instance) {} + internal TQString (TQNull dummy) : base (TQNull.Instance) {} [DllImport("libqtc")] private static extern void qt_del_QString (IntPtr str); - ~TTQString () + ~TQString () { qt_del_QString (rawObject); } @@ -127,7 +127,7 @@ namespace Qt { } } - public static implicit operator string ( TTQString s ) + public static implicit operator string ( TQString s ) { int length = (int) s.Length(); char[] t = new char[length]; @@ -138,9 +138,9 @@ namespace Qt { return new String(t); } - public static implicit operator TTQString ( string s ) + public static implicit operator TQString ( string s ) { - return new TTQString(s); + return new TQString(s); } public override string ToString () @@ -148,9 +148,9 @@ namespace Qt { return (string) this; } - public static TTQString operator + ( TTQString a, TTQString b ) + public static TQString operator + ( TQString a, TQString b ) { - TTQString result = new TTQString (qt_new_QString2( a.rawObject )); + TQString result = new TQString (qt_new_QString2( a.rawObject )); result.rawObject = qt_QString_append2( result.rawObject, b.rawObject ); return result; @@ -188,92 +188,92 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_fill (IntPtr raw, IntPtr c, int len); - public TTQString Fill (TTQChar c, int len) + public TQString Fill (TQChar c, int len) { - return new TTQString (qt_QString_fill (rawObject, c.RawObject, len)); + return new TQString (qt_QString_fill (rawObject, c.RawObject, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg (IntPtr raw, long a, int fieldwidth, int Q_base); - public TTQString Arg (long a, int fieldwidth, int Q_base) + public TQString Arg (long a, int fieldwidth, int Q_base) { - return new TTQString (qt_QString_arg (rawObject, a, fieldwidth, Q_base)); + return new TQString (qt_QString_arg (rawObject, a, fieldwidth, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg1 (IntPtr raw, ulong a, int fieldwidth, int Q_base); - public TTQString Arg (ulong a, int fieldwidth, int Q_base) + public TQString Arg (ulong a, int fieldwidth, int Q_base) { - return new TTQString (qt_QString_arg1 (rawObject, a, fieldwidth, Q_base)); + return new TQString (qt_QString_arg1 (rawObject, a, fieldwidth, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg2 (IntPtr raw, int a, int fieldwidth, int Q_base); - public TTQString Arg (int a, int fieldwidth, int Q_base) + public TQString Arg (int a, int fieldwidth, int Q_base) { - return new TTQString (qt_QString_arg2 (rawObject, a, fieldwidth, Q_base)); + return new TQString (qt_QString_arg2 (rawObject, a, fieldwidth, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg3 (IntPtr raw, uint a, int fieldwidth, int Q_base); - public TTQString Arg (uint a, int fieldwidth, int Q_base) + public TQString Arg (uint a, int fieldwidth, int Q_base) { - return new TTQString (qt_QString_arg3 (rawObject, a, fieldwidth, Q_base)); + return new TQString (qt_QString_arg3 (rawObject, a, fieldwidth, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg4 (IntPtr raw, short a, int fieldwidth, int Q_base); - public TTQString Arg (short a, int fieldwidth, int Q_base) + public TQString Arg (short a, int fieldwidth, int Q_base) { - return new TTQString (qt_QString_arg4 (rawObject, a, fieldwidth, Q_base)); + return new TQString (qt_QString_arg4 (rawObject, a, fieldwidth, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg5 (IntPtr raw, ushort a, int fieldwidth, int Q_base); - public TTQString Arg (ushort a, int fieldwidth, int Q_base) + public TQString Arg (ushort a, int fieldwidth, int Q_base) { - return new TTQString (qt_QString_arg5 (rawObject, a, fieldwidth, Q_base)); + return new TQString (qt_QString_arg5 (rawObject, a, fieldwidth, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg6 (IntPtr raw, char a, int fieldwidth); - public TTQString Arg (char a, int fieldwidth) + public TQString Arg (char a, int fieldwidth) { - return new TTQString (qt_QString_arg6 (rawObject, a, fieldwidth)); + return new TQString (qt_QString_arg6 (rawObject, a, fieldwidth)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg7 (IntPtr raw, IntPtr a, int fieldwidth); - public TTQString Arg (TTQChar a, int fieldwidth) + public TQString Arg (TQChar a, int fieldwidth) { - return new TTQString (qt_QString_arg7 (rawObject, a.RawObject, fieldwidth)); + return new TQString (qt_QString_arg7 (rawObject, a.RawObject, fieldwidth)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg8 (IntPtr raw, IntPtr a, int fieldwidth); - public TTQString Arg (TTQString a, int fieldwidth) + public TQString Arg (TQString a, int fieldwidth) { - return new TTQString (qt_QString_arg8 (rawObject, a.RawObject, fieldwidth)); + return new TQString (qt_QString_arg8 (rawObject, a.RawObject, fieldwidth)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_arg9 (IntPtr raw, double a, int fieldwidth, char fmt, int prec); - public TTQString Arg (double a, int fieldwidth, char fmt, int prec) + public TQString Arg (double a, int fieldwidth, char fmt, int prec) { - return new TTQString (qt_QString_arg9 (rawObject, a, fieldwidth, fmt, prec)); + return new TQString (qt_QString_arg9 (rawObject, a, fieldwidth, fmt, prec)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_find (IntPtr raw, IntPtr c, int index, bool cs); - public int Find (TTQChar c, int index, bool cs) + public int Find (TQChar c, int index, bool cs) { return qt_QString_find (rawObject, c.RawObject, index, cs); } @@ -287,14 +287,14 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_find2 (IntPtr raw, IntPtr str, int index, bool cs); - public int Find (TTQString str, int index, bool cs) + public int Find (TQString str, int index, bool cs) { return qt_QString_find2 (rawObject, str.RawObject, index, cs); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_find3 (IntPtr raw, IntPtr arg1, int index); - public int Find (TTQRegExp arg1, int index) + public int Find (TQRegExp arg1, int index) { return qt_QString_find3 (rawObject, arg1.RawObject, index); } @@ -308,7 +308,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_findRev (IntPtr raw, IntPtr c, int index, bool cs); - public int FindRev (TTQChar c, int index, bool cs) + public int FindRev (TQChar c, int index, bool cs) { return qt_QString_findRev (rawObject, c.RawObject, index, cs); } @@ -322,14 +322,14 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_findRev2 (IntPtr raw, IntPtr str, int index, bool cs); - public int FindRev (TTQString str, int index, bool cs) + public int FindRev (TQString str, int index, bool cs) { return qt_QString_findRev2 (rawObject, str.RawObject, index, cs); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_findRev3 (IntPtr raw, IntPtr arg1, int index); - public int FindRev (TTQRegExp arg1, int index) + public int FindRev (TQRegExp arg1, int index) { return qt_QString_findRev3 (rawObject, arg1.RawObject, index); } @@ -343,7 +343,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_contains (IntPtr raw, IntPtr c, bool cs); - public int Contains (TTQChar c, bool cs) + public int Contains (TQChar c, bool cs) { return qt_QString_contains (rawObject, c.RawObject, cs); } @@ -364,213 +364,213 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_contains3 (IntPtr raw, IntPtr str, bool cs); - public int Contains (TTQString str, bool cs) + public int Contains (TQString str, bool cs) { return qt_QString_contains3 (rawObject, str.RawObject, cs); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_contains4 (IntPtr raw, IntPtr arg1); - public int Contains (TTQRegExp arg1) + public int Contains (TQRegExp arg1) { return qt_QString_contains4 (rawObject, arg1.RawObject); } - // TODO: This is wrong. sep should be a TTQChar* in C++ terms + // TODO: This is wrong. sep should be a TQChar* in C++ terms [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QString_section (IntPtr raw, IntPtr sep, int start, int end, TTQString.SectionFlags SectionFlags); - public TTQString Section (TTQChar sep, int start, int end, TTQString.SectionFlags SectionFlags) + private static extern IntPtr qt_QString_section (IntPtr raw, IntPtr sep, int start, int end, TQString.SectionFlags SectionFlags); + public TQString Section (TQChar sep, int start, int end, TQString.SectionFlags SectionFlags) { - return new TTQString (qt_QString_section (rawObject, sep.RawObject, start, end, SectionFlags)); + return new TQString (qt_QString_section (rawObject, sep.RawObject, start, end, SectionFlags)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QString_section1 (IntPtr raw, char sep, int start, int end, TTQString.SectionFlags SectionFlags); - public TTQString Section (char sep, int start, int end, TTQString.SectionFlags SectionFlags) + private static extern IntPtr qt_QString_section1 (IntPtr raw, char sep, int start, int end, TQString.SectionFlags SectionFlags); + public TQString Section (char sep, int start, int end, TQString.SectionFlags SectionFlags) { - return new TTQString (qt_QString_section1 (rawObject, sep, start, end, SectionFlags)); + return new TQString (qt_QString_section1 (rawObject, sep, start, end, SectionFlags)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QString_section2 (IntPtr raw, string in_sep, int start, int end, TTQString.SectionFlags SectionFlags); - public TTQString Section (string in_sep, int start, int end, TTQString.SectionFlags SectionFlags) + private static extern IntPtr qt_QString_section2 (IntPtr raw, string in_sep, int start, int end, TQString.SectionFlags SectionFlags); + public TQString Section (string in_sep, int start, int end, TQString.SectionFlags SectionFlags) { - return new TTQString (qt_QString_section2 (rawObject, in_sep, start, end, SectionFlags)); + return new TQString (qt_QString_section2 (rawObject, in_sep, start, end, SectionFlags)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QString_section3 (IntPtr raw, IntPtr in_sep, int start, int end, TTQString.SectionFlags SectionFlags); - public TTQString Section (TTQString in_sep, int start, int end, TTQString.SectionFlags SectionFlags) + private static extern IntPtr qt_QString_section3 (IntPtr raw, IntPtr in_sep, int start, int end, TQString.SectionFlags SectionFlags); + public TQString Section (TQString in_sep, int start, int end, TQString.SectionFlags SectionFlags) { - return new TTQString (qt_QString_section3 (rawObject, in_sep.RawObject, start, end, SectionFlags)); + return new TQString (qt_QString_section3 (rawObject, in_sep.RawObject, start, end, SectionFlags)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QString_section4 (IntPtr raw, IntPtr reg, int start, int end, TTQString.SectionFlags SectionFlags); - public TTQString Section (TTQRegExp reg, int start, int end, TTQString.SectionFlags SectionFlags) + private static extern IntPtr qt_QString_section4 (IntPtr raw, IntPtr reg, int start, int end, TQString.SectionFlags SectionFlags); + public TQString Section (TQRegExp reg, int start, int end, TQString.SectionFlags SectionFlags) { - return new TTQString (qt_QString_section4 (rawObject, reg.RawObject, start, end, SectionFlags)); + return new TQString (qt_QString_section4 (rawObject, reg.RawObject, start, end, SectionFlags)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_left (IntPtr raw, uint len); - public TTQString Left (uint len) + public TQString Left (uint len) { - return new TTQString (qt_QString_left (rawObject, len)); + return new TQString (qt_QString_left (rawObject, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_right (IntPtr raw, uint len); - public TTQString Right (uint len) + public TQString Right (uint len) { - return new TTQString (qt_QString_right (rawObject, len)); + return new TQString (qt_QString_right (rawObject, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_mid (IntPtr raw, uint index, uint len); - public TTQString Mid (uint index, uint len) + public TQString Mid (uint index, uint len) { - return new TTQString (qt_QString_mid (rawObject, index, len)); + return new TQString (qt_QString_mid (rawObject, index, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_leftJustify (IntPtr raw, uint width, IntPtr fill, bool trunc); - public TTQString LeftJustify (uint width, TTQChar fill, bool trunc) + public TQString LeftJustify (uint width, TQChar fill, bool trunc) { - return new TTQString (qt_QString_leftJustify (rawObject, width, fill.RawObject, trunc)); + return new TQString (qt_QString_leftJustify (rawObject, width, fill.RawObject, trunc)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_rightJustify (IntPtr raw, uint width, IntPtr fill, bool trunc); - public TTQString RightJustify (uint width, TTQChar fill, bool trunc) + public TQString RightJustify (uint width, TQChar fill, bool trunc) { - return new TTQString (qt_QString_rightJustify (rawObject, width, fill.RawObject, trunc)); + return new TQString (qt_QString_rightJustify (rawObject, width, fill.RawObject, trunc)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_lower (IntPtr raw); - public TTQString Lower () + public TQString Lower () { - return new TTQString (qt_QString_lower (rawObject)); + return new TQString (qt_QString_lower (rawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_upper (IntPtr raw); - public TTQString Upper () + public TQString Upper () { - return new TTQString (qt_QString_upper (rawObject)); + return new TQString (qt_QString_upper (rawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_stripWhiteSpace (IntPtr raw); - public TTQString StripWhiteSpace () + public TQString StripWhiteSpace () { - return new TTQString (qt_QString_stripWhiteSpace (rawObject)); + return new TQString (qt_QString_stripWhiteSpace (rawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_simplifyWhiteSpace (IntPtr raw); - public TTQString SimplifyWhiteSpace () + public TQString SimplifyWhiteSpace () { - return new TTQString (qt_QString_simplifyWhiteSpace (rawObject)); + return new TQString (qt_QString_simplifyWhiteSpace (rawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_insert (IntPtr raw, uint index, IntPtr arg1); - public TTQString Insert (uint index, TTQString arg1) + public TQString Insert (uint index, TQString arg1) { - return new TTQString (qt_QString_insert (rawObject, index, arg1.RawObject)); + return new TQString (qt_QString_insert (rawObject, index, arg1.RawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_insert1 (IntPtr raw, uint index, IntPtr arg1, uint len); - public TTQString Insert (uint index, TTQChar arg1, uint len) + public TQString Insert (uint index, TQChar arg1, uint len) { - return new TTQString (qt_QString_insert1 (rawObject, index, arg1.RawObject, len)); + return new TQString (qt_QString_insert1 (rawObject, index, arg1.RawObject, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_insert2 (IntPtr raw, uint index, IntPtr arg1); - public TTQString Insert (uint index, TTQChar arg1) + public TQString Insert (uint index, TQChar arg1) { - return new TTQString (qt_QString_insert2 (rawObject, index, arg1.RawObject)); + return new TQString (qt_QString_insert2 (rawObject, index, arg1.RawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_insert3 (IntPtr raw, uint index, char c); - public TTQString Insert (uint index, char c) + public TQString Insert (uint index, char c) { - return new TTQString (qt_QString_insert3 (rawObject, index, c)); + return new TQString (qt_QString_insert3 (rawObject, index, c)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_append (IntPtr raw, char arg1); - public TTQString Append (char arg1) + public TQString Append (char arg1) { - return new TTQString (qt_QString_append (rawObject, arg1)); + return new TQString (qt_QString_append (rawObject, arg1)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_append1 (IntPtr raw, IntPtr arg1); - public TTQString Append (TTQChar arg1) + public TQString Append (TQChar arg1) { - return new TTQString (qt_QString_append1 (rawObject, arg1.RawObject)); + return new TQString (qt_QString_append1 (rawObject, arg1.RawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_append2 (IntPtr raw, IntPtr arg1); - public TTQString Append (TTQString arg1) + public TQString Append (TQString arg1) { - return new TTQString (qt_QString_append2 (rawObject, arg1.RawObject)); + return new TQString (qt_QString_append2 (rawObject, arg1.RawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_prepend (IntPtr raw, char arg1); - public TTQString Prepend (char arg1) + public TQString Prepend (char arg1) { - return new TTQString (qt_QString_prepend (rawObject, arg1)); + return new TQString (qt_QString_prepend (rawObject, arg1)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_prepend1 (IntPtr raw, IntPtr arg1); - public TTQString Prepend (TTQChar arg1) + public TQString Prepend (TQChar arg1) { - return new TTQString (qt_QString_prepend1 (rawObject, arg1.RawObject)); + return new TQString (qt_QString_prepend1 (rawObject, arg1.RawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_prepend2 (IntPtr raw, IntPtr arg1); - public TTQString Prepend (TTQString arg1) + public TQString Prepend (TQString arg1) { - return new TTQString (qt_QString_prepend2 (rawObject, arg1.RawObject)); + return new TQString (qt_QString_prepend2 (rawObject, arg1.RawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_remove (IntPtr raw, uint index, uint len); - public TTQString Remove (uint index, uint len) + public TQString Remove (uint index, uint len) { - return new TTQString (qt_QString_remove (rawObject, index, len)); + return new TQString (qt_QString_remove (rawObject, index, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_replace (IntPtr raw, uint index, uint len, IntPtr arg1); - public TTQString Replace (uint index, uint len, TTQString arg1) + public TQString Replace (uint index, uint len, TQString arg1) { - return new TTQString (qt_QString_replace (rawObject, index, len, arg1.RawObject)); + return new TQString (qt_QString_replace (rawObject, index, len, arg1.RawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_replace1 (IntPtr raw, uint index, uint len, IntPtr arg1, uint clen); - public TTQString Replace (uint index, uint len, TTQChar arg1, uint clen) + public TQString Replace (uint index, uint len, TQChar arg1, uint clen) { - return new TTQString (qt_QString_replace1 (rawObject, index, len, arg1.RawObject, clen)); + return new TQString (qt_QString_replace1 (rawObject, index, len, arg1.RawObject, clen)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_replace2 (IntPtr raw, IntPtr arg1, IntPtr arg2); - public TTQString Replace (TTQRegExp arg1, TTQString arg2) + public TQString Replace (TQRegExp arg1, TQString arg2) { - return new TTQString (qt_QString_replace2 (rawObject, arg1.RawObject, arg2.RawObject)); + return new TQString (qt_QString_replace2 (rawObject, arg1.RawObject, arg2.RawObject)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -631,95 +631,95 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setNum (IntPtr raw, short arg1, int Q_base); - public TTQString SetNum (short arg1, int Q_base) + public TQString SetNum (short arg1, int Q_base) { - return new TTQString (qt_QString_setNum (rawObject, arg1, Q_base)); + return new TQString (qt_QString_setNum (rawObject, arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setNum1 (IntPtr raw, ushort arg1, int Q_base); - public TTQString SetNum (ushort arg1, int Q_base) + public TQString SetNum (ushort arg1, int Q_base) { - return new TTQString (qt_QString_setNum1 (rawObject, arg1, Q_base)); + return new TQString (qt_QString_setNum1 (rawObject, arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setNum2 (IntPtr raw, int arg1, int Q_base); - public TTQString SetNum (int arg1, int Q_base) + public TQString SetNum (int arg1, int Q_base) { - return new TTQString (qt_QString_setNum2 (rawObject, arg1, Q_base)); + return new TQString (qt_QString_setNum2 (rawObject, arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setNum3 (IntPtr raw, uint arg1, int Q_base); - public TTQString SetNum (uint arg1, int Q_base) + public TQString SetNum (uint arg1, int Q_base) { - return new TTQString (qt_QString_setNum3 (rawObject, arg1, Q_base)); + return new TQString (qt_QString_setNum3 (rawObject, arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setNum4 (IntPtr raw, long arg1, int Q_base); - public TTQString SetNum (long arg1, int Q_base) + public TQString SetNum (long arg1, int Q_base) { - return new TTQString (qt_QString_setNum4 (rawObject, arg1, Q_base)); + return new TQString (qt_QString_setNum4 (rawObject, arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setNum5 (IntPtr raw, ulong arg1, int Q_base); - public TTQString SetNum (ulong arg1, int Q_base) + public TQString SetNum (ulong arg1, int Q_base) { - return new TTQString (qt_QString_setNum5 (rawObject, arg1, Q_base)); + return new TQString (qt_QString_setNum5 (rawObject, arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setNum6 (IntPtr raw, float arg1, char f, int prec); - public TTQString SetNum (float arg1, char f, int prec) + public TQString SetNum (float arg1, char f, int prec) { - return new TTQString (qt_QString_setNum6 (rawObject, arg1, f, prec)); + return new TQString (qt_QString_setNum6 (rawObject, arg1, f, prec)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setNum7 (IntPtr raw, double arg1, char f, int prec); - public TTQString SetNum (double arg1, char f, int prec) + public TQString SetNum (double arg1, char f, int prec) { - return new TTQString (qt_QString_setNum7 (rawObject, arg1, f, prec)); + return new TQString (qt_QString_setNum7 (rawObject, arg1, f, prec)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QString_setExpand (IntPtr raw, uint index, IntPtr c); - public void SetExpand (uint index, TTQChar c) + public void SetExpand (uint index, TQChar c) { qt_QString_setExpand (rawObject, index, c.RawObject); } - // TODO: The TTQChar functions need to get fixed + // TODO: The TQChar functions need to get fixed [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_at (IntPtr raw, uint i); - public TTQChar At (uint i) + public TQChar At (uint i) { - return LookupObject (qt_QString_at (rawObject, i), typeof (TTQChar)) as TTQChar; + return LookupObject (qt_QString_at (rawObject, i), typeof (TQChar)) as TQChar; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_constref (IntPtr raw, uint i); - public TTQChar Constref (uint i) + public TQChar Constref (uint i) { - return LookupObject (qt_QString_constref (rawObject, i), typeof (TTQChar)) as TTQChar; + return LookupObject (qt_QString_constref (rawObject, i), typeof (TQChar)) as TQChar; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_ref (IntPtr raw, uint i); - public TTQChar Q_ref (uint i) + public TQChar Q_ref (uint i) { - return LookupObject (qt_QString_ref (rawObject, i), typeof (TTQChar)) as TTQChar; + return LookupObject (qt_QString_ref (rawObject, i), typeof (TQChar)) as TQChar; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_unicode (IntPtr raw); - public TTQChar Unicode () + public TQChar Unicode () { - return LookupObject (qt_QString_unicode (rawObject), typeof (TTQChar)) as TTQChar; + return LookupObject (qt_QString_unicode (rawObject), typeof (TQChar)) as TQChar; } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -738,42 +738,42 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_utf8 (IntPtr raw); - public TTQCString Utf8 () + public TQCString Utf8 () { - return LookupObject (qt_QString_utf8 (rawObject), typeof (TTQCString)) as TTQCString; + return LookupObject (qt_QString_utf8 (rawObject), typeof (TQCString)) as TQCString; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_local8Bit (IntPtr raw); - public TTQCString Local8Bit () + public TQCString Local8Bit () { - return LookupObject (qt_QString_local8Bit (rawObject), typeof (TTQCString)) as TTQCString; + return LookupObject (qt_QString_local8Bit (rawObject), typeof (TQCString)) as TQCString; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setUnicode (IntPtr raw, IntPtr unicode, uint len); - public TTQString SetUnicode (TTQChar unicode, uint len) + public TQString SetUnicode (TQChar unicode, uint len) { - return new TTQString (qt_QString_setUnicode (rawObject, unicode.RawObject, len)); + return new TQString (qt_QString_setUnicode (rawObject, unicode.RawObject, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_setLatin1 (IntPtr raw, string arg1, int len); - public TTQString SetLatin1 (string arg1, int len) + public TQString SetLatin1 (string arg1, int len) { - return new TTQString (qt_QString_setLatin1 (rawObject, arg1, len)); + return new TQString (qt_QString_setLatin1 (rawObject, arg1, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_compare (IntPtr raw, IntPtr s); - public int Compare (TTQString s) + public int Compare (TQString s) { return qt_QString_compare (rawObject, s.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_localeAwareCompare (IntPtr raw, IntPtr s); - public int LocaleAwareCompare (TTQString s) + public int LocaleAwareCompare (TQString s) { return qt_QString_localeAwareCompare (rawObject, s.RawObject); } @@ -794,14 +794,14 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QString_startsWith (IntPtr raw, IntPtr arg1); - public bool StartsWith (TTQString arg1) + public bool StartsWith (TQString arg1) { return qt_QString_startsWith (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QString_endsWith (IntPtr raw, IntPtr arg1); - public bool EndsWith (TTQString arg1) + public bool EndsWith (TQString arg1) { return qt_QString_endsWith (rawObject, arg1.RawObject); } @@ -829,175 +829,175 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_number (long arg1, int Q_base); - public static TTQString Number (long arg1, int Q_base) + public static TQString Number (long arg1, int Q_base) { - return new TTQString (qt_QString_number (arg1, Q_base)); + return new TQString (qt_QString_number (arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_number1 (ulong arg1, int Q_base); - public static TTQString Number (ulong arg1, int Q_base) + public static TQString Number (ulong arg1, int Q_base) { - return new TTQString (qt_QString_number1 (arg1, Q_base)); + return new TQString (qt_QString_number1 (arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_number2 (int arg1, int Q_base); - public static TTQString Number (int arg1, int Q_base) + public static TQString Number (int arg1, int Q_base) { - return new TTQString (qt_QString_number2 (arg1, Q_base)); + return new TQString (qt_QString_number2 (arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_number3 (uint arg1, int Q_base); - public static TTQString Number (uint arg1, int Q_base) + public static TQString Number (uint arg1, int Q_base) { - return new TTQString (qt_QString_number3 (arg1, Q_base)); + return new TQString (qt_QString_number3 (arg1, Q_base)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_number4 (double arg1, char f, int prec); - public static TTQString Number (double arg1, char f, int prec) + public static TQString Number (double arg1, char f, int prec) { - return new TTQString (qt_QString_number4 (arg1, f, prec)); + return new TQString (qt_QString_number4 (arg1, f, prec)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QString_fromLatin1 (string arg1, int len); - public static TTQString FromLatin1 (string arg1, int len) + public static TQString FromLatin1 (string arg1, int len) { - return new TTQString (qt_QString_fromLatin1 (arg1, len)); + return new TQString (qt_QString_fromLatin1 (arg1, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QString_fromUtf8 (TTQString arg1, int len); - public static TTQString FromUtf8 (string arg1, int len) + private static extern IntPtr qt_QString_fromUtf8 (TQString arg1, int len); + public static TQString FromUtf8 (string arg1, int len) { - return new TTQString (qt_QString_fromUtf8 (arg1, len)); + return new TQString (qt_QString_fromUtf8 (arg1, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QString_fromLocal8Bit (TTQString arg1, int len); - public static TTQString FromLocal8Bit (string arg1, int len) + private static extern IntPtr qt_QString_fromLocal8Bit (TQString arg1, int len); + public static TQString FromLocal8Bit (string arg1, int len) { - return new TTQString (qt_QString_fromLocal8Bit (arg1, len)); + return new TQString (qt_QString_fromLocal8Bit (arg1, len)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_compare1 (IntPtr s1, IntPtr s2); - public static int Compare (TTQString s1, TTQString s2) + public static int Compare (TQString s1, TQString s2) { return qt_QString_compare1 (s1.RawObject, s2.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QString_localeAwareCompare1 (IntPtr s1, IntPtr s2); - public static int LocaleAwareCompare (TTQString s1, TTQString s2) + public static int LocaleAwareCompare (TQString s1, TQString s2) { return qt_QString_localeAwareCompare1 (s1.RawObject, s2.RawObject); } - public TTQString Fill (TTQChar c) + public TQString Fill (TQChar c) { return Fill(c, (int) -1); } - public TTQString Arg (long a) + public TQString Arg (long a) { return Arg(a, (int) 0); } - public TTQString Arg (long a, int fieldwidth) + public TQString Arg (long a, int fieldwidth) { return Arg(a, fieldwidth, (int) 10); } - public TTQString Arg (ulong a) + public TQString Arg (ulong a) { return Arg(a, (int) 0); } - public TTQString Arg (ulong a, int fieldwidth) + public TQString Arg (ulong a, int fieldwidth) { return Arg(a, fieldwidth, (int) 10); } - public TTQString Arg (int a) + public TQString Arg (int a) { return Arg(a, (int) 0); } - public TTQString Arg (int a, int fieldwidth) + public TQString Arg (int a, int fieldwidth) { return Arg(a, fieldwidth, (int) 10); } - public TTQString Arg (uint a) + public TQString Arg (uint a) { return Arg(a, (int) 0); } - public TTQString Arg (uint a, int fieldwidth) + public TQString Arg (uint a, int fieldwidth) { return Arg(a, fieldwidth, (int) 10); } - public TTQString Arg (short a) + public TQString Arg (short a) { return Arg(a, (int) 0); } - public TTQString Arg (short a, int fieldwidth) + public TQString Arg (short a, int fieldwidth) { return Arg(a, fieldwidth, (int) 10); } - public TTQString Arg (ushort a) + public TQString Arg (ushort a) { return Arg(a, (int) 0); } - public TTQString Arg (ushort a, int fieldwidth) + public TQString Arg (ushort a, int fieldwidth) { return Arg(a, fieldwidth, (int) 10); } - public TTQString Arg (char a) + public TQString Arg (char a) { return Arg(a, (int) 0); } - public TTQString Arg (TTQChar a) + public TQString Arg (TQChar a) { return Arg(a, (int) 0); } - public TTQString Arg (TTQString a) + public TQString Arg (TQString a) { return Arg(a, (int) 0); } - public TTQString Arg (double a) + public TQString Arg (double a) { return Arg(a, (int) 0); } - public TTQString Arg (double a, int fieldwidth) + public TQString Arg (double a, int fieldwidth) { return Arg(a, fieldwidth, (char) 'g'); } - public TTQString Arg (double a, int fieldwidth, char fmt) + public TQString Arg (double a, int fieldwidth, char fmt) { return Arg(a, fieldwidth, fmt, (int) -1); } - public int Find (TTQChar c) + public int Find (TQChar c) { return Find(c, (int) 0); } - public int Find (TTQChar c, int index) + public int Find (TQChar c, int index) { return Find(c, index, true); } @@ -1012,17 +1012,17 @@ namespace Qt { return Find(c, index, true); } - public int Find (TTQString str) + public int Find (TQString str) { return Find(str, (int) 0); } - public int Find (TTQString str, int index) + public int Find (TQString str, int index) { return Find(str, index, true); } - public int Find (TTQRegExp arg1) + public int Find (TQRegExp arg1) { return Find(arg1, (int) 0); } @@ -1032,12 +1032,12 @@ namespace Qt { return Find(str, (int) 0); } - public int FindRev (TTQChar c) + public int FindRev (TQChar c) { return FindRev(c, (int) -1); } - public int FindRev (TTQChar c, int index) + public int FindRev (TQChar c, int index) { return FindRev(c, index, true); } @@ -1052,17 +1052,17 @@ namespace Qt { return FindRev(c, index, true); } - public int FindRev (TTQString str) + public int FindRev (TQString str) { return FindRev(str, (int) -1); } - public int FindRev (TTQString str, int index) + public int FindRev (TQString str, int index) { return FindRev(str, index, true); } - public int FindRev (TTQRegExp arg1) + public int FindRev (TQRegExp arg1) { return FindRev(arg1, (int) -1); } @@ -1072,7 +1072,7 @@ namespace Qt { return FindRev(str, (int) -1); } - public int Contains (TTQChar c) + public int Contains (TQChar c) { return Contains(c, true); } @@ -1082,7 +1082,7 @@ namespace Qt { return Contains(c, true); } - public int Contains (TTQString str) + public int Contains (TQString str) { return Contains(str, true); } @@ -1092,77 +1092,77 @@ namespace Qt { return Contains(str, true); } - public TTQString Section (TTQChar sep, int start) + public TQString Section (TQChar sep, int start) { return Section(sep, start, (int) 1); } - public TTQString Section (TTQChar sep, int start, int end) + public TQString Section (TQChar sep, int start, int end) { - return Section(sep, start, end, TTQString.SectionFlags.SectionDefault); + return Section(sep, start, end, TQString.SectionFlags.SectionDefault); } - public TTQString Section (char sep, int start) + public TQString Section (char sep, int start) { return Section(sep, start, (int) 1); } - public TTQString Section (char sep, int start, int end) + public TQString Section (char sep, int start, int end) { - return Section(sep, start, end, TTQString.SectionFlags.SectionDefault); + return Section(sep, start, end, TQString.SectionFlags.SectionDefault); } - public TTQString Section (TTQString in_sep, int start) + public TQString Section (TQString in_sep, int start) { return Section(in_sep, start, (int) 1); } - public TTQString Section (TTQString in_sep, int start, int end) + public TQString Section (TQString in_sep, int start, int end) { - return Section(in_sep, start, end, TTQString.SectionFlags.SectionDefault); + return Section(in_sep, start, end, TQString.SectionFlags.SectionDefault); } - public TTQString Section (string in_sep, int start) + public TQString Section (string in_sep, int start) { return Section(in_sep, start, (int) 1); } - public TTQString Section (string in_sep, int start, int end) + public TQString Section (string in_sep, int start, int end) { - return Section(in_sep, start, end, TTQString.SectionFlags.SectionDefault); + return Section(in_sep, start, end, TQString.SectionFlags.SectionDefault); } - public TTQString Section (TTQRegExp reg, int start) + public TQString Section (TQRegExp reg, int start) { return Section(reg, start, (int) 1); } - public TTQString Section (TTQRegExp reg, int start, int end) + public TQString Section (TQRegExp reg, int start, int end) { - return Section(reg, start, end, TTQString.SectionFlags.SectionDefault); + return Section(reg, start, end, TQString.SectionFlags.SectionDefault); } - public TTQString Mid (uint index) + public TQString Mid (uint index) { return Mid(index, (uint) 1); } - public TTQString LeftJustify (uint width) + public TQString LeftJustify (uint width) { - return LeftJustify(width, new TTQChar ()); + return LeftJustify(width, new TQChar ()); } - public TTQString LeftJustify (uint width, TTQChar fill) + public TQString LeftJustify (uint width, TQChar fill) { return LeftJustify(width, fill, false); } - public TTQString RightJustify (uint width) + public TQString RightJustify (uint width) { - return RightJustify(width, new TTQChar ()); + return RightJustify(width, new TQChar ()); } - public TTQString RightJustify (uint width, TTQChar fill) + public TQString RightJustify (uint width, TQChar fill) { return RightJustify(width, fill, false); } @@ -1237,102 +1237,102 @@ namespace Qt { return ToDouble(false); } - public TTQString SetNum (short arg1) + public TQString SetNum (short arg1) { return SetNum(arg1, (int) 10); } - public TTQString SetNum (ushort arg1) + public TQString SetNum (ushort arg1) { return SetNum(arg1, (int) 10); } - public TTQString SetNum (int arg1) + public TQString SetNum (int arg1) { return SetNum(arg1, (int) 10); } - public TTQString SetNum (uint arg1) + public TQString SetNum (uint arg1) { return SetNum(arg1, (int) 10); } - public TTQString SetNum (long arg1) + public TQString SetNum (long arg1) { return SetNum(arg1, (int) 10); } - public TTQString SetNum (ulong arg1) + public TQString SetNum (ulong arg1) { return SetNum(arg1, (int) 10); } - public TTQString SetNum (float arg1) + public TQString SetNum (float arg1) { return SetNum(arg1, (char) 'g'); } - public TTQString SetNum (float arg1, char f) + public TQString SetNum (float arg1, char f) { return SetNum(arg1, f, (int) 6); } - public TTQString SetNum (double arg1) + public TQString SetNum (double arg1) { return SetNum(arg1, (char) 'g'); } - public TTQString SetNum (double arg1, char f) + public TQString SetNum (double arg1, char f) { return SetNum(arg1, f, (int) 6); } - public TTQString SetLatin1 (TTQString arg1) + public TQString SetLatin1 (TQString arg1) { return SetLatin1(arg1, (int) -1); } - public static TTQString Number (long arg1) + public static TQString Number (long arg1) { return Number(arg1, (int) 10); } - public static TTQString Number (ulong arg1) + public static TQString Number (ulong arg1) { return Number(arg1, (int) 10); } - public static TTQString Number (int arg1) + public static TQString Number (int arg1) { return Number(arg1, (int) 10); } - public static TTQString Number (uint arg1) + public static TQString Number (uint arg1) { return Number(arg1, (int) 10); } - public static TTQString Number (double arg1) + public static TQString Number (double arg1) { return Number(arg1, (char) 'g'); } - public static TTQString Number (double arg1, char f) + public static TQString Number (double arg1, char f) { return Number(arg1, f, (int) 6); } - public static TTQString FromLatin1 (TTQString arg1) + public static TQString FromLatin1 (TQString arg1) { return FromLatin1(arg1, (int) -1); } - public static TTQString FromUtf8 (TTQString arg1) + public static TQString FromUtf8 (TQString arg1) { return FromUtf8(arg1, (int) -1); } - public static TTQString FromLocal8Bit (TTQString arg1) + public static TQString FromLocal8Bit (TQString arg1) { return FromLocal8Bit(arg1, (int) -1); } diff --git a/qtsharp/src/bindings/static/QStyle.cs b/qtsharp/src/bindings/static/QStyle.cs index 8db46fd9..859b1efe 100644 --- a/qtsharp/src/bindings/static/QStyle.cs +++ b/qtsharp/src/bindings/static/QStyle.cs @@ -1,4 +1,4 @@ -// TTQStyle.cs - A Qt to C# binding. +// TQStyle.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -24,7 +24,7 @@ namespace Qt { using System; using System.Runtime.InteropServices; - public class TTQStyle : TTQObject, IDisposable { + public class TQStyle : TQObject, IDisposable { public enum PrimitiveElement: long { PE_ButtonCommand = 0, @@ -279,17 +279,17 @@ namespace Qt { SP_CustomBase = 4026531840 } - internal TTQStyle () : this (TQNull.Instance) {} + internal TQStyle () : this (TQNull.Instance) {} - internal TTQStyle (IntPtr ptr) : this (TQNull.Instance) + internal TQStyle (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject(this); } - internal TTQStyle (TQNull dummy) : base (TQNull.Instance) {} + internal TQStyle (TQNull dummy) : base (TQNull.Instance) {} - ~TTQStyle () + ~TQStyle () { Dispose(false); } @@ -306,142 +306,142 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QStyle_polish (IntPtr raw, IntPtr arg1); - public void polish (TTQWidget arg1) + public void polish (TQWidget arg1) { qt_QStyle_polish (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QStyle_unPolish (IntPtr raw, IntPtr arg1); - public void unPolish (TTQWidget arg1) + public void unPolish (TQWidget arg1) { qt_QStyle_unPolish (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QStyle_polish1 (IntPtr raw, IntPtr arg1); - public void polish (TTQApplication arg1) + public void polish (TQApplication arg1) { qt_QStyle_polish1 (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QStyle_unPolish1 (IntPtr raw, IntPtr arg1); - public void unPolish (TTQApplication arg1) + public void unPolish (TQApplication arg1) { qt_QStyle_unPolish1 (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QStyle_polish2 (IntPtr raw, IntPtr arg1); - public void polish (TTQPalette arg1) + public void polish (TQPalette arg1) { qt_QStyle_polish2 (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QStyle_polishPopupMenu (IntPtr raw, IntPtr arg1); - public void polishPopupMenu (TTQPopupMenu arg1) + public void polishPopupMenu (TQPopupMenu arg1) { qt_QStyle_polishPopupMenu (rawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QStyle_itemRect (IntPtr raw, IntPtr p, IntPtr r, int flags, bool enabled, IntPtr pixmap, IntPtr text, int len); - public TTQRect itemRect (TTQPainter p, TTQRect r, int flags, bool enabled, TTQPixmap pixmap, string text, int len) + public TQRect itemRect (TQPainter p, TQRect r, int flags, bool enabled, TQPixmap pixmap, string text, int len) { - return (TTQRect)LookupObject (qt_QStyle_itemRect (rawObject, p.RawObject, r.RawObject, flags, enabled, pixmap.RawObject, new TTQString (text).RawObject, len), typeof(TTQRect)); + return (TQRect)LookupObject (qt_QStyle_itemRect (rawObject, p.RawObject, r.RawObject, flags, enabled, pixmap.RawObject, new TQString (text).RawObject, len), typeof(TQRect)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QStyle_drawItem (IntPtr raw, IntPtr p, IntPtr r, int flags, IntPtr g, bool enabled, IntPtr pixmap, IntPtr text, int len, IntPtr penColor); - public void drawItem (TTQPainter p, TTQRect r, int flags, TTQColorGroup g, bool enabled, TTQPixmap pixmap, string text, int len, TTQColor penColor) + public void drawItem (TQPainter p, TQRect r, int flags, TQColorGroup g, bool enabled, TQPixmap pixmap, string text, int len, TQColor penColor) { - qt_QStyle_drawItem (rawObject, p.RawObject, r.RawObject, flags, g.RawObject, enabled, pixmap.RawObject, new TTQString (text).RawObject, len, penColor.RawObject); + qt_QStyle_drawItem (rawObject, p.RawObject, r.RawObject, flags, g.RawObject, enabled, pixmap.RawObject, new TQString (text).RawObject, len, penColor.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern void qt_QStyle_drawPrimitive (IntPtr raw, TTQStyle.PrimitiveElement pe, IntPtr p, IntPtr r, IntPtr cg, TTQStyle.StyleFlags flags, IntPtr arg1); - public void drawPrimitive (TTQStyle.PrimitiveElement pe, TTQPainter p, TTQRect r, TTQColorGroup cg, TTQStyle.StyleFlags flags, TTQStyleOption arg1) + private static extern void qt_QStyle_drawPrimitive (IntPtr raw, TQStyle.PrimitiveElement pe, IntPtr p, IntPtr r, IntPtr cg, TQStyle.StyleFlags flags, IntPtr arg1); + public void drawPrimitive (TQStyle.PrimitiveElement pe, TQPainter p, TQRect r, TQColorGroup cg, TQStyle.StyleFlags flags, TQStyleOption arg1) { qt_QStyle_drawPrimitive (rawObject, pe, p.RawObject, r.RawObject, cg.RawObject, flags, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern void qt_QStyle_drawControl (IntPtr raw, TTQStyle.ControlElement element, IntPtr p, IntPtr widget, IntPtr r, IntPtr cg, TTQStyle.StyleFlags how, IntPtr arg1); - public void drawControl (TTQStyle.ControlElement element, TTQPainter p, TTQWidget widget, TTQRect r, TTQColorGroup cg, TTQStyle.StyleFlags how, TTQStyleOption arg1) + private static extern void qt_QStyle_drawControl (IntPtr raw, TQStyle.ControlElement element, IntPtr p, IntPtr widget, IntPtr r, IntPtr cg, TQStyle.StyleFlags how, IntPtr arg1); + public void drawControl (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how, TQStyleOption arg1) { qt_QStyle_drawControl (rawObject, element, p.RawObject, widget.RawObject, r.RawObject, cg.RawObject, how, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern void qt_QStyle_drawControlMask (IntPtr raw, TTQStyle.ControlElement element, IntPtr p, IntPtr widget, IntPtr r, IntPtr arg1); - public void drawControlMask (TTQStyle.ControlElement element, TTQPainter p, TTQWidget widget, TTQRect r, TTQStyleOption arg1) + private static extern void qt_QStyle_drawControlMask (IntPtr raw, TQStyle.ControlElement element, IntPtr p, IntPtr widget, IntPtr r, IntPtr arg1); + public void drawControlMask (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r, TQStyleOption arg1) { qt_QStyle_drawControlMask (rawObject, element, p.RawObject, widget.RawObject, r.RawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QStyle_subRect (IntPtr raw, TTQStyle.SubRect r, IntPtr widget); - public TTQRect subRect (TTQStyle.SubRect r, TTQWidget widget) + private static extern IntPtr qt_QStyle_subRect (IntPtr raw, TQStyle.SubRect r, IntPtr widget); + public TQRect subRect (TQStyle.SubRect r, TQWidget widget) { - return (TTQRect)LookupObject (qt_QStyle_subRect (rawObject, r, widget.RawObject), typeof(TTQRect)); + return (TQRect)LookupObject (qt_QStyle_subRect (rawObject, r, widget.RawObject), typeof(TQRect)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern void qt_QStyle_drawComplexControl (IntPtr raw, TTQStyle.ComplexControl control, IntPtr p, IntPtr widget, IntPtr r, IntPtr cg, TTQStyle.StyleFlags how, TTQStyle.SubControl sub, TTQStyle.SubControl subActive, IntPtr arg1); - public void drawComplexControl (TTQStyle.ComplexControl control, TTQPainter p, TTQWidget widget, TTQRect r, TTQColorGroup cg, TTQStyle.StyleFlags how, TTQStyle.SubControl sub, TTQStyle.SubControl subActive, TTQStyleOption arg1) + private static extern void qt_QStyle_drawComplexControl (IntPtr raw, TQStyle.ComplexControl control, IntPtr p, IntPtr widget, IntPtr r, IntPtr cg, TQStyle.StyleFlags how, TQStyle.SubControl sub, TQStyle.SubControl subActive, IntPtr arg1); + public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how, TQStyle.SubControl sub, TQStyle.SubControl subActive, TQStyleOption arg1) { qt_QStyle_drawComplexControl (rawObject, control, p.RawObject, widget.RawObject, r.RawObject, cg.RawObject, how, sub, subActive, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern void qt_QStyle_drawComplexControlMask (IntPtr raw, TTQStyle.ComplexControl control, IntPtr p, IntPtr widget, IntPtr r, IntPtr arg1); - public void drawComplexControlMask (TTQStyle.ComplexControl control, TTQPainter p, TTQWidget widget, TTQRect r, TTQStyleOption arg1) + private static extern void qt_QStyle_drawComplexControlMask (IntPtr raw, TQStyle.ComplexControl control, IntPtr p, IntPtr widget, IntPtr r, IntPtr arg1); + public void drawComplexControlMask (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQStyleOption arg1) { qt_QStyle_drawComplexControlMask (rawObject, control, p.RawObject, widget.RawObject, r.RawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QStyle_querySubControlMetrics (IntPtr raw, TTQStyle.ComplexControl control, IntPtr widget, TTQStyle.SubControl sc, IntPtr arg1); - public TTQRect querySubControlMetrics (TTQStyle.ComplexControl control, TTQWidget widget, TTQStyle.SubControl sc, TTQStyleOption arg1) + private static extern IntPtr qt_QStyle_querySubControlMetrics (IntPtr raw, TQStyle.ComplexControl control, IntPtr widget, TQStyle.SubControl sc, IntPtr arg1); + public TQRect querySubControlMetrics (TQStyle.ComplexControl control, TQWidget widget, TQStyle.SubControl sc, TQStyleOption arg1) { - return (TTQRect)LookupObject (qt_QStyle_querySubControlMetrics (rawObject, control, widget.RawObject, sc, arg1.RawObject), typeof(TTQRect)); + return (TQRect)LookupObject (qt_QStyle_querySubControlMetrics (rawObject, control, widget.RawObject, sc, arg1.RawObject), typeof(TQRect)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern TTQStyle.SubControl qt_QStyle_querySubControl (IntPtr raw, TTQStyle.ComplexControl control, IntPtr widget, IntPtr pos, IntPtr arg1); - public TTQStyle.SubControl querySubControl (TTQStyle.ComplexControl control, TTQWidget widget, TTQPoint pos, TTQStyleOption arg1) + private static extern TQStyle.SubControl qt_QStyle_querySubControl (IntPtr raw, TQStyle.ComplexControl control, IntPtr widget, IntPtr pos, IntPtr arg1); + public TQStyle.SubControl querySubControl (TQStyle.ComplexControl control, TQWidget widget, TQPoint pos, TQStyleOption arg1) { return qt_QStyle_querySubControl (rawObject, control, widget.RawObject, pos.RawObject, arg1.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern int qt_QStyle_pixelMetric (IntPtr raw, TTQStyle.PixelMetric metric, IntPtr widget); - public int pixelMetric (TTQStyle.PixelMetric metric, TTQWidget widget) + private static extern int qt_QStyle_pixelMetric (IntPtr raw, TQStyle.PixelMetric metric, IntPtr widget); + public int pixelMetric (TQStyle.PixelMetric metric, TQWidget widget) { return qt_QStyle_pixelMetric (rawObject, metric, widget.RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QStyle_sizeFromContents (IntPtr raw, TTQStyle.ContentsType contents, IntPtr widget, IntPtr contentsSize, IntPtr arg1); - public TTQSize sizeFromContents (TTQStyle.ContentsType contents, TTQWidget widget, TTQSize contentsSize, TTQStyleOption arg1) + private static extern IntPtr qt_QStyle_sizeFromContents (IntPtr raw, TQStyle.ContentsType contents, IntPtr widget, IntPtr contentsSize, IntPtr arg1); + public TQSize sizeFromContents (TQStyle.ContentsType contents, TQWidget widget, TQSize contentsSize, TQStyleOption arg1) { - return (TTQSize)LookupObject (qt_QStyle_sizeFromContents (rawObject, contents, widget.RawObject, contentsSize.RawObject, arg1.RawObject), typeof(TTQSize)); + return (TQSize)LookupObject (qt_QStyle_sizeFromContents (rawObject, contents, widget.RawObject, contentsSize.RawObject, arg1.RawObject), typeof(TQSize)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QStyle_styleHint (IntPtr raw, StyleHint stylehint, IntPtr widget, IntPtr arg1, IntPtr returnData); - public int styleHint (StyleHint stylehint, TTQWidget widget, TTQStyleOption arg1, IntPtr returnData) + public int styleHint (StyleHint stylehint, TQWidget widget, TQStyleOption arg1, IntPtr returnData) { return qt_QStyle_styleHint (rawObject, stylehint, widget.RawObject, arg1.RawObject, returnData); } [DllImport("libqtc", CharSet=CharSet.Ansi)] - private static extern IntPtr qt_QStyle_stylePixmap (IntPtr raw, TTQStyle.StylePixmap stylepixmap, IntPtr widget, IntPtr arg1); - public TTQPixmap stylePixmap (TTQStyle.StylePixmap stylepixmap, TTQWidget widget, TTQStyleOption arg1) + private static extern IntPtr qt_QStyle_stylePixmap (IntPtr raw, TQStyle.StylePixmap stylepixmap, IntPtr widget, IntPtr arg1); + public TQPixmap stylePixmap (TQStyle.StylePixmap stylepixmap, TQWidget widget, TQStyleOption arg1) { - return (TTQPixmap)LookupObject (qt_QStyle_stylePixmap (rawObject, stylepixmap, widget.RawObject, arg1.RawObject), typeof(TTQPixmap)); + return (TQPixmap)LookupObject (qt_QStyle_stylePixmap (rawObject, stylepixmap, widget.RawObject, arg1.RawObject), typeof(TQPixmap)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -453,140 +453,140 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QStyle_tabbarMetrics (IntPtr raw, IntPtr t, int hf, int vf, int ov); - public void tabbarMetrics (TTQWidget t, int hf, int vf, int ov) + public void tabbarMetrics (TQWidget t, int hf, int vf, int ov) { qt_QStyle_tabbarMetrics (rawObject, t.RawObject, hf, vf, ov); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QStyle_scrollBarExtent (IntPtr raw); - public TTQSize scrollBarExtent () + public TQSize scrollBarExtent () { - return (TTQSize)LookupObject (qt_QStyle_scrollBarExtent (rawObject), typeof(TTQSize)); + return (TQSize)LookupObject (qt_QStyle_scrollBarExtent (rawObject), typeof(TQSize)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QStyle_visualRect (IntPtr logical, IntPtr w); - public static TTQRect visualRect (TTQRect logical, TTQWidget w) + public static TQRect visualRect (TQRect logical, TQWidget w) { - return (TTQRect)LookupObject (qt_QStyle_visualRect (logical.RawObject, w.RawObject), typeof(TTQRect)); + return (TQRect)LookupObject (qt_QStyle_visualRect (logical.RawObject, w.RawObject), typeof(TQRect)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QStyle_visualRect1 (IntPtr logical, IntPtr bounding); - public static TTQRect visualRect (TTQRect logical, TTQRect bounding) + public static TQRect visualRect (TQRect logical, TQRect bounding) { - return (TTQRect)LookupObject (qt_QStyle_visualRect1 (logical.RawObject, bounding.RawObject), typeof(TTQRect)); + return (TQRect)LookupObject (qt_QStyle_visualRect1 (logical.RawObject, bounding.RawObject), typeof(TQRect)); } - public TTQRect itemRect (TTQPainter p, TTQRect r, int flags, bool enabled, TTQPixmap pixmap, string text) + public TQRect itemRect (TQPainter p, TQRect r, int flags, bool enabled, TQPixmap pixmap, string text) { return itemRect(p, r, flags, enabled, pixmap, text, (int) -1); } - public void drawItem (TTQPainter p, TTQRect r, int flags, TTQColorGroup g, bool enabled, TTQPixmap pixmap, string text) + public void drawItem (TQPainter p, TQRect r, int flags, TQColorGroup g, bool enabled, TQPixmap pixmap, string text) { drawItem(p, r, flags, g, enabled, pixmap, text, (int) -1); } - public void drawItem (TTQPainter p, TTQRect r, int flags, TTQColorGroup g, bool enabled, TTQPixmap pixmap, string text, int len) + public void drawItem (TQPainter p, TQRect r, int flags, TQColorGroup g, bool enabled, TQPixmap pixmap, string text, int len) { - drawItem(p, r, flags, g, enabled, pixmap, text, len, new TTQColor ()); + drawItem(p, r, flags, g, enabled, pixmap, text, len, new TQColor ()); } - public void drawPrimitive (TTQStyle.PrimitiveElement pe, TTQPainter p, TTQRect r, TTQColorGroup cg) + public void drawPrimitive (TQStyle.PrimitiveElement pe, TQPainter p, TQRect r, TQColorGroup cg) { - drawPrimitive(pe, p, r, cg, TTQStyle.StyleFlags.Style_Default); + drawPrimitive(pe, p, r, cg, TQStyle.StyleFlags.Style_Default); } - public void drawPrimitive (TTQStyle.PrimitiveElement pe, TTQPainter p, TTQRect r, TTQColorGroup cg, TTQStyle.StyleFlags flags) + public void drawPrimitive (TQStyle.PrimitiveElement pe, TQPainter p, TQRect r, TQColorGroup cg, TQStyle.StyleFlags flags) { - drawPrimitive(pe, p, r, cg, flags, new TTQStyleOption ()); + drawPrimitive(pe, p, r, cg, flags, new TQStyleOption ()); } - public void drawControl (TTQStyle.ControlElement element, TTQPainter p, TTQWidget widget, TTQRect r, TTQColorGroup cg) + public void drawControl (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg) { - drawControl(element, p, widget, r, cg, TTQStyle.StyleFlags.Style_Default); + drawControl(element, p, widget, r, cg, TQStyle.StyleFlags.Style_Default); } - public void drawControl (TTQStyle.ControlElement element, TTQPainter p, TTQWidget widget, TTQRect r, TTQColorGroup cg, TTQStyle.StyleFlags how) + public void drawControl (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how) { - drawControl(element, p, widget, r, cg, how, new TTQStyleOption ()); + drawControl(element, p, widget, r, cg, how, new TQStyleOption ()); } - public void drawControlMask (TTQStyle.ControlElement element, TTQPainter p, TTQWidget widget, TTQRect r) + public void drawControlMask (TQStyle.ControlElement element, TQPainter p, TQWidget widget, TQRect r) { - drawControlMask(element, p, widget, r, new TTQStyleOption ()); + drawControlMask(element, p, widget, r, new TQStyleOption ()); } - public void drawComplexControl (TTQStyle.ComplexControl control, TTQPainter p, TTQWidget widget, TTQRect r, TTQColorGroup cg) + public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg) { - drawComplexControl(control, p, widget, r, cg, TTQStyle.StyleFlags.Style_Default); + drawComplexControl(control, p, widget, r, cg, TQStyle.StyleFlags.Style_Default); } - public void drawComplexControl (TTQStyle.ComplexControl control, TTQPainter p, TTQWidget widget, TTQRect r, TTQColorGroup cg, TTQStyle.StyleFlags how) + public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how) { - drawComplexControl(control, p, widget, r, cg, how, TTQStyle.SubControl.SC_All); + drawComplexControl(control, p, widget, r, cg, how, TQStyle.SubControl.SC_All); } - public void drawComplexControl (TTQStyle.ComplexControl control, TTQPainter p, TTQWidget widget, TTQRect r, TTQColorGroup cg, TTQStyle.StyleFlags how, TTQStyle.SubControl sub) + public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how, TQStyle.SubControl sub) { - drawComplexControl(control, p, widget, r, cg, how, sub, TTQStyle.SubControl.SC_None); + drawComplexControl(control, p, widget, r, cg, how, sub, TQStyle.SubControl.SC_None); } - public void drawComplexControl (TTQStyle.ComplexControl control, TTQPainter p, TTQWidget widget, TTQRect r, TTQColorGroup cg, TTQStyle.StyleFlags how, TTQStyle.SubControl sub, TTQStyle.SubControl subActive) + public void drawComplexControl (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r, TQColorGroup cg, TQStyle.StyleFlags how, TQStyle.SubControl sub, TQStyle.SubControl subActive) { - drawComplexControl(control, p, widget, r, cg, how, sub, subActive, new TTQStyleOption ()); + drawComplexControl(control, p, widget, r, cg, how, sub, subActive, new TQStyleOption ()); } - public void drawComplexControlMask (TTQStyle.ComplexControl control, TTQPainter p, TTQWidget widget, TTQRect r) + public void drawComplexControlMask (TQStyle.ComplexControl control, TQPainter p, TQWidget widget, TQRect r) { - drawComplexControlMask(control, p, widget, r, new TTQStyleOption ()); + drawComplexControlMask(control, p, widget, r, new TQStyleOption ()); } - public TTQRect querySubControlMetrics (TTQStyle.ComplexControl control, TTQWidget widget, TTQStyle.SubControl sc) + public TQRect querySubControlMetrics (TQStyle.ComplexControl control, TQWidget widget, TQStyle.SubControl sc) { - return querySubControlMetrics(control, widget, sc, new TTQStyleOption ()); + return querySubControlMetrics(control, widget, sc, new TQStyleOption ()); } - public TTQStyle.SubControl querySubControl (TTQStyle.ComplexControl control, TTQWidget widget, TTQPoint pos) + public TQStyle.SubControl querySubControl (TQStyle.ComplexControl control, TQWidget widget, TQPoint pos) { - return querySubControl(control, widget, pos, new TTQStyleOption ()); + return querySubControl(control, widget, pos, new TQStyleOption ()); } - public int pixelMetric (TTQStyle.PixelMetric metric) + public int pixelMetric (TQStyle.PixelMetric metric) { - return pixelMetric(metric, new TTQWidget ()); + return pixelMetric(metric, new TQWidget ()); } - public TTQSize sizeFromContents (TTQStyle.ContentsType contents, TTQWidget widget, TTQSize contentsSize) + public TQSize sizeFromContents (TQStyle.ContentsType contents, TQWidget widget, TQSize contentsSize) { - return sizeFromContents(contents, widget, contentsSize, new TTQStyleOption ()); + return sizeFromContents(contents, widget, contentsSize, new TQStyleOption ()); } public int styleHint (StyleHint stylehint) { - return styleHint(stylehint, new TTQWidget ()); + return styleHint(stylehint, new TQWidget ()); } - public int styleHint (StyleHint stylehint, TTQWidget widget) + public int styleHint (StyleHint stylehint, TQWidget widget) { - return styleHint(stylehint, widget, new TTQStyleOption ()); + return styleHint(stylehint, widget, new TQStyleOption ()); } - public int styleHint (StyleHint stylehint, TTQWidget widget, TTQStyleOption arg1) + public int styleHint (StyleHint stylehint, TQWidget widget, TQStyleOption arg1) { return styleHint(stylehint, widget, arg1, (IntPtr) 0); } - public TTQPixmap stylePixmap (TTQStyle.StylePixmap stylepixmap) + public TQPixmap stylePixmap (TQStyle.StylePixmap stylepixmap) { - return stylePixmap(stylepixmap, new TTQWidget ()); + return stylePixmap(stylepixmap, new TQWidget ()); } - public TTQPixmap stylePixmap (TTQStyle.StylePixmap stylepixmap, TTQWidget widget) + public TQPixmap stylePixmap (TQStyle.StylePixmap stylepixmap, TQWidget widget) { - return stylePixmap(stylepixmap, widget, new TTQStyleOption ()); + return stylePixmap(stylepixmap, widget, new TQStyleOption ()); } // Begin interface methods. diff --git a/qtsharp/src/bindings/static/QToolButton.cs b/qtsharp/src/bindings/static/QToolButton.cs index 200c0c99..596f6369 100644 --- a/qtsharp/src/bindings/static/QToolButton.cs +++ b/qtsharp/src/bindings/static/QToolButton.cs @@ -1,4 +1,4 @@ -// TTQToolButton.cs - A Qt to C# binding. +// TQToolButton.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // @@ -26,11 +26,11 @@ namespace Qt { using System; using System.Runtime.InteropServices; - public class TTQToolButton : TTQButton, IDisposable { + public class TQToolButton : TQButton, IDisposable { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QToolButton (IntPtr parent, string name); - public TTQToolButton (TTQWidget parent, string name) : this (TQNull.Instance) + public TQToolButton (TQWidget parent, string name) : this (TQNull.Instance) { rawObject = qt_new_QToolButton (parent != null ? parent.RawObject : IntPtr.Zero, name); @@ -43,7 +43,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QToolButton1 (IntPtr iconSet, IntPtr textLabel, IntPtr groupText, IntPtr receiver, string slot, IntPtr parent, string name); - public TTQToolButton (TTQIconSet iconSet, TTQString textLabel, TTQString groupText, TTQObject receiver, string slot, TTQToolBar parent, string name) : this (TQNull.Instance) + public TQToolButton (TQIconSet iconSet, TQString textLabel, TQString groupText, TQObject receiver, string slot, TQToolBar parent, string name) : this (TQNull.Instance) { rawObject = qt_new_QToolButton1 (iconSet.RawObject, textLabel.RawObject, groupText.RawObject, IntPtr.Zero, null, parent != null ? parent.RawObject : IntPtr.Zero, name); Connect( this, TQT_SIGNAL("clicked()"), receiver, slot ); @@ -58,7 +58,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_new_QToolButton2 (Qt.ArrowType type, IntPtr parent, string name); - public TTQToolButton (Qt.ArrowType type, TTQWidget parent, string name) : this (TQNull.Instance) + public TQToolButton (Qt.ArrowType type, TQWidget parent, string name) : this (TQNull.Instance) { rawObject = qt_new_QToolButton2 (type, parent != null ? parent.RawObject : IntPtr.Zero, name); @@ -69,19 +69,19 @@ namespace Qt { Connect (this, TQT_SIGNAL ("destroyed ()"), TQT_SLOT ("NativeDestroyed ()")); } - public TTQToolButton (TTQWidget parent) : this (parent, "") {} + public TQToolButton (TQWidget parent) : this (parent, "") {} - internal TTQToolButton () : this (TQNull.Instance) {} + internal TQToolButton () : this (TQNull.Instance) {} - internal TTQToolButton (IntPtr ptr) : this (TQNull.Instance) + internal TQToolButton (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject(this); } - internal TTQToolButton (TQNull dummy) : base (TQNull.Instance) {} + internal TQToolButton (TQNull dummy) : base (TQNull.Instance) {} - ~TTQToolButton () + ~TQToolButton () { Dispose (false); } @@ -116,7 +116,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QToolButton_setTextLabel (IntPtr raw, IntPtr arg1, bool arg2); - public void SetTextLabel (TTQString arg1, bool arg2) + public void SetTextLabel (TQString arg1, bool arg2) { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); @@ -156,7 +156,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QToolButton_setTextLabel1 (IntPtr raw, IntPtr arg1); - public void SetTextLabel (TTQString arg1) + public void SetTextLabel (TQString arg1) { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); @@ -166,7 +166,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QToolButton_setIconSet (IntPtr raw, IntPtr set); - public void SetIconSet (TTQIconSet set) + public void SetIconSet (TQIconSet set) { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); @@ -176,7 +176,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QToolButton_setIconSet1 (IntPtr raw, IntPtr set, bool on); - public void SetIconSet (TTQIconSet set, bool on) + public void SetIconSet (TQIconSet set, bool on) { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); @@ -186,12 +186,12 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QToolButton_iconSet (IntPtr raw, bool on); - public TTQIconSet IconSet (bool on) + public TQIconSet IconSet (bool on) { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); - return LookupObject (qt_QToolButton_iconSet (rawObject, on), typeof (TTQIconSet)) as TTQIconSet; + return LookupObject (qt_QToolButton_iconSet (rawObject, on), typeof (TQIconSet)) as TQIconSet; } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -246,7 +246,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QToolButton_drawButtonLabel (IntPtr raw, IntPtr arg1); - protected void DrawButtonLabel (TTQPainter arg1) + protected void DrawButtonLabel (TQPainter arg1) { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); @@ -266,7 +266,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern bool qt_QToolButton_eventFilter (IntPtr raw, IntPtr o, IntPtr e); - protected bool EventFilter (TTQObject o, TTQEvent e) + protected bool EventFilter (TQObject o, TQEvent e) { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); @@ -276,7 +276,7 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QToolButton_paletteChange (IntPtr raw, IntPtr arg1); - protected void PaletteChange (TTQPalette arg1) + protected void PaletteChange (TQPalette arg1) { if (disposed) throw new ObjectDisposedException (this+": Attempted use of disposed object"); diff --git a/qtsharp/src/bindings/static/QWidgetStack.cs b/qtsharp/src/bindings/static/QWidgetStack.cs index 417731ef..04de573f 100644 --- a/qtsharp/src/bindings/static/QWidgetStack.cs +++ b/qtsharp/src/bindings/static/QWidgetStack.cs @@ -1,4 +1,4 @@ -// TTQWidgetStack.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 TTQWidgetStack : TTQFrame, 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 TTQWidgetStack (TTQWidget parent, string name) : this (TQNull.Instance) + public TQWidgetStack (TQWidget parent, string name) : this (TQNull.Instance) { if ((qparent = parent) != null) qparent.AddChild (this); @@ -39,22 +39,22 @@ namespace Qt { RegisterObject (this); } - public TTQWidgetStack () : this (new TTQWidget ()) {} + public TQWidgetStack () : this (new TQWidget ()) {} - public TTQWidgetStack (TTQWidget parent) : this (parent, "") {} + public TQWidgetStack (TQWidget parent) : this (parent, "") {} - internal TTQWidgetStack (IntPtr ptr) : this (TQNull.Instance) + internal TQWidgetStack (IntPtr ptr) : this (TQNull.Instance) { rawObject = ptr; RegisterObject(this); } - internal TTQWidgetStack (TQNull dummy) : base (TQNull.Instance) + internal TQWidgetStack (TQNull dummy) : base (TQNull.Instance) { widgets = new ArrayList (); } - ~TTQWidgetStack () + ~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 (TTQWidget 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 (TTQWidget 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 TTQSize SizeHint () + public TQSize SizeHint () { - return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(TTQSize)) as TTQSize; + return LookupObject (qt_QWidgetStack_sizeHint (RawObject), typeof(TQSize)) as TQSize; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QWidgetStack_minimumSizeHint (IntPtr raw); - public TTQSize MinimumSizeHint () + public TQSize MinimumSizeHint () { - return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(TTQSize)) as TTQSize; + return LookupObject (qt_QWidgetStack_minimumSizeHint (RawObject), typeof(TQSize)) as TQSize; } [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 TTQWidget Widget (int arg1) + public TQWidget Widget (int arg1) { - return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(TTQWidget)) as TTQWidget; + return LookupObject (qt_QWidgetStack_widget (RawObject, arg1), typeof(TQWidget)) as TQWidget; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern int qt_QWidgetStack_id (IntPtr raw, IntPtr arg1); - public int Id (TTQWidget 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 TTQWidget VisibleWidget () + public TQWidget VisibleWidget () { - return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(TTQWidget)) as TTQWidget; + return LookupObject (qt_QWidgetStack_visibleWidget (RawObject), typeof(TQWidget)) as TQWidget; } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern void qt_QWidgetStack_setFrameRect (IntPtr raw, IntPtr arg1); - public void SetFrameRect (TTQRect 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 (TTQWidget 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 (TTQWidget arg1) + public int AddWidget (TQWidget arg1) { return AddWidget(arg1, (int) -1); } diff --git a/qtsharp/src/bindings/static/QtSignal.cs b/qtsharp/src/bindings/static/QtSignal.cs index b48bcf97..1237a7bf 100644 --- a/qtsharp/src/bindings/static/QtSignal.cs +++ b/qtsharp/src/bindings/static/QtSignal.cs @@ -28,7 +28,7 @@ namespace Qt { using System.Runtime.InteropServices; using System.Reflection; - internal class QtSignal: TTQObject, IDisposable { + internal class QtSignal: TQObject, IDisposable { internal static bool traceConnects; static QtSignal () @@ -36,7 +36,7 @@ namespace Qt { traceConnects = false; } - private TTQObject sender; + private TQObject sender; private string signal; private string name; private string args; @@ -47,7 +47,7 @@ namespace Qt { get { return MakeSigId(sender, signal); } } - public TTQObject Sender { + public TQObject Sender { get { return sender; } } @@ -75,7 +75,7 @@ namespace Qt { get { return slots; } } - public QtSignal (TTQObject sender, string signal): base (NoSignalInit.Instance) + public QtSignal (TQObject sender, string signal): base (NoSignalInit.Instance) { this.sender = sender; this.signal = signal; @@ -101,7 +101,7 @@ namespace Qt { return sender.CsSignalMap.Contains(signal); } - internal static bool Connect(TTQObject sender, string signal, TTQObject receiver, string slot) + internal static bool Connect(TQObject sender, string signal, TQObject receiver, string slot) { if (IsSlot(signal)) { return false; @@ -114,7 +114,7 @@ namespace Qt { return ConnectSignalToSlot(sender, NormalizeParam(signal), receiver, NormalizeParam(slot)); } - private static bool ConnectSignalToSlot(TTQObject sender, string signal, TTQObject receiver, string slot) + private static bool ConnectSignalToSlot(TQObject sender, string signal, TQObject receiver, string slot) { QtSignal sigobj; QtSlot slotobj = new QtSlot(receiver, slot); @@ -188,80 +188,80 @@ namespace Qt { del = Delegate.CreateDelegate (typeof (del_double), receiver, slotobj.Name); slotobj.WrapperPtr = csharp_connect_double (sender.RawObject, TQT_SIGNAL (signal), receiver.RawObject, del); break; - case "(TTQString)": - realsignal = sigobj.Name + "(const TTQString&)"; + case "(TQString)": + realsignal = sigobj.Name + "(const TQString&)"; Console.WriteLine("Connecting signal, sigobj.Name = {0}, realsignal = {1}", sigobj.Name, realsignal); del = Delegate.CreateDelegate (typeof (del_QString), slotobj, "SlotBridge_QString"); slotobj.WrapperPtr = csharp_connect_QString (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQDockWindow)": - realsignal = sigobj.Name + "(TTQDockWindow*)"; + case "(TQDockWindow)": + realsignal = sigobj.Name + "(TQDockWindow*)"; del = Delegate.CreateDelegate (typeof (del_QDockWindow), slotobj, "SlotBridge_QDockWindow"); slotobj.WrapperPtr = csharp_connect_QDockWindow (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQDropEvent)": - realsignal = sigobj.Name + "(TTQDropEvent*)"; + case "(TQDropEvent)": + realsignal = sigobj.Name + "(TQDropEvent*)"; del = Delegate.CreateDelegate (typeof (del_QDropEvent), slotobj, "SlotBridge_QDropEvent"); slotobj.WrapperPtr = csharp_connect_QDropEvent (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQDropEvent,TTQListViewItem)": - realsignal = sigobj.Name + "(TTQDropEvent*,TTQListViewItem*)"; + case "(TQDropEvent,TQListViewItem)": + realsignal = sigobj.Name + "(TQDropEvent*,TQListViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QDropEventTQListViewItem), slotobj, "SlotBridge_QDropEventTQListViewItem"); slotobj.WrapperPtr = csharp_connect_QDropEventTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQIconViewItem)": - realsignal = sigobj.Name + "(TTQIconViewItem*)"; + case "(TQIconViewItem)": + realsignal = sigobj.Name + "(TQIconViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QIconViewItem), slotobj, "SlotBridge_QIconViewItem"); slotobj.WrapperPtr = csharp_connect_QIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQListBoxItem)": - realsignal = sigobj.Name + "(TTQListBoxItem*)"; + case "(TQListBoxItem)": + realsignal = sigobj.Name + "(TQListBoxItem*)"; del = Delegate.CreateDelegate (typeof (del_QListBoxItem), slotobj, "SlotBridge_QListBoxItem"); slotobj.WrapperPtr = csharp_connect_QListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQListViewItem)": - realsignal = sigobj.Name + "(TTQListViewItem*)"; + case "(TQListViewItem)": + realsignal = sigobj.Name + "(TQListViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QListViewItem), slotobj, "SlotBridge_QListViewItem"); slotobj.WrapperPtr = csharp_connect_QListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQListViewItem,TTQListViewItem)": - realsignal = sigobj.Name + "(TTQListViewItem*,TTQListViewItem*)"; + case "(TQListViewItem,TQListViewItem)": + realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItem"); slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQListViewItem,TTQListViewItem,TTQListViewItem)": - realsignal = sigobj.Name + "(TTQListViewItem*,TTQListViewItem*,TTQListViewItem*)"; + case "(TQListViewItem,TQListViewItem,TQListViewItem)": + realsignal = sigobj.Name + "(TQListViewItem*,TQListViewItem*,TQListViewItem*)"; del = Delegate.CreateDelegate (typeof (del_QListViewItemTQListViewItemTQListViewItem), slotobj, "SlotBridge_QListViewItemTQListViewItemTQListViewItem"); slotobj.WrapperPtr = csharp_connect_QListViewItemTQListViewItemTQListViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQNetworkOperation)": - realsignal = sigobj.Name + "(TTQNetworkOperation*)"; + case "(TQNetworkOperation)": + realsignal = sigobj.Name + "(TQNetworkOperation*)"; del = Delegate.CreateDelegate (typeof (del_QNetworkOperation), slotobj, "SlotBridge_QNetworkOperation"); slotobj.WrapperPtr = csharp_connect_QNetworkOperation (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQObject)": - realsignal = sigobj.Name + "(TTQObject*)"; + case "(TQObject)": + realsignal = sigobj.Name + "(TQObject*)"; del = Delegate.CreateDelegate (typeof (del_QObject), slotobj, "SlotBridge_QObject"); slotobj.WrapperPtr = csharp_connect_QObject (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQToolBar)": - realsignal = sigobj.Name + "(TTQToolBar*)"; + case "(TQToolBar)": + realsignal = sigobj.Name + "(TQToolBar*)"; del = Delegate.CreateDelegate (typeof (del_QToolBar), slotobj, "SlotBridge_QToolBar"); slotobj.WrapperPtr = csharp_connect_QToolBar (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(TTQWidget)": - realsignal = sigobj.Name + "(TTQWidget*)"; + case "(TQWidget)": + realsignal = sigobj.Name + "(TQWidget*)"; del = Delegate.CreateDelegate (typeof (del_QWidget), slotobj, "SlotBridge_QWidget"); slotobj.WrapperPtr = csharp_connect_QWidget (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(int,TTQIconViewItem)": - realsignal = sigobj.Name + "(int,TTQIconViewItem*)"; + case "(int,TQIconViewItem)": + realsignal = sigobj.Name + "(int,TQIconViewItem*)"; del = Delegate.CreateDelegate (typeof (del_intTQIconViewItem), slotobj, "SlotBridge_intTQIconViewItem"); slotobj.WrapperPtr = csharp_connect_intTQIconViewItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; - case "(int,TTQListBoxItem)": - realsignal = sigobj.Name + "(int,TTQListBoxItem*)"; + case "(int,TQListBoxItem)": + realsignal = sigobj.Name + "(int,TQListBoxItem*)"; del = Delegate.CreateDelegate (typeof (del_intTQListBoxItem), slotobj, "SlotBridge_intTQListBoxItem"); slotobj.WrapperPtr = csharp_connect_intTQListBoxItem (sender.RawObject, TQT_SIGNAL (realsignal), receiver.RawObject, del); break; @@ -297,7 +297,7 @@ namespace Qt { } } - private static bool ConnectSignalToSignal(TTQObject sender, string signal, TTQObject receiver, string target) + private static bool ConnectSignalToSignal(TQObject sender, string signal, TQObject receiver, string target) { if (traceConnects) ErrMsg ("ConnectSignalToSlot: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal, @@ -338,7 +338,7 @@ namespace Qt { } } - internal static bool Disconnect(TTQObject sender, string signal, TTQObject receiver, string slot) + internal static bool Disconnect(TQObject sender, string signal, TQObject receiver, string slot) { if (signal == null && receiver == null && slot == null) return DisconnectAll(sender); @@ -356,7 +356,7 @@ namespace Qt { return DisconnectSignalFromSlot(sender, NormalizeParam(signal), receiver, NormalizeParam(slot)); } - private static bool DisconnectSignalFromSlot(TTQObject sender, string signal, TTQObject receiver, string slot) + private static bool DisconnectSignalFromSlot(TQObject sender, string signal, TQObject receiver, string slot) { if (traceConnects) ErrMsg ("DisconnectSignalFromSlot: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal, @@ -415,7 +415,7 @@ namespace Qt { } } - private static bool DisconnectSignalFromSignal(TTQObject sender, string signal, TTQObject receiver, string target) + private static bool DisconnectSignalFromSignal(TQObject sender, string signal, TQObject receiver, string target) { if (traceConnects) ErrMsg ("DisconnectSignalFromSignal: ({0}) {1}, {2}, ({3}) {4}, {5}", sender.RawObject, sender, signal, @@ -458,7 +458,7 @@ namespace Qt { } } - private static bool DisconnectAll(TTQObject sender) + private static bool DisconnectAll(TQObject sender) { if (traceConnects) ErrMsg ("DisconnectAll: ({0}) {1}", sender.RawObject, sender); @@ -479,7 +479,7 @@ namespace Qt { return true; } - private static bool DisconnectReceiver(TTQObject sender, TTQObject receiver) + private static bool DisconnectReceiver(TQObject sender, TQObject receiver) { if (traceConnects) ErrMsg ("DisconnectReceiver: ({0}) {1}, ({2}) {3}", sender.RawObject, sender, receiver.RawObject, receiver); @@ -500,7 +500,7 @@ namespace Qt { return true; } - private static bool DisconnectSignal(TTQObject sender, string signal) + private static bool DisconnectSignal(TQObject sender, string signal) { if (traceConnects) ErrMsg ("DisconnectSignal: ({0}) {1}, {2}", sender.RawObject, sender, signal); @@ -516,7 +516,7 @@ namespace Qt { return true; } - private static bool DisconnectSignalFromReceiver (TTQObject sender, string signal, TTQObject receiver) + private static bool DisconnectSignalFromReceiver (TQObject sender, string signal, TQObject receiver) { if (traceConnects) ErrMsg ("DisconnectSignalFromReceiver: ({0}) {1}, {2}, ({3}), {4}", sender.RawObject, sender, @@ -561,7 +561,7 @@ namespace Qt { */ } - private static string MakeSigId(TTQObject sender, string signal) + private static string MakeSigId(TQObject sender, string signal) { return sender.RawObject.ToString()+signal; } diff --git a/qtsharp/src/bindings/static/QtSignalMap.cs b/qtsharp/src/bindings/static/QtSignalMap.cs index d2f9575a..7472c86f 100644 --- a/qtsharp/src/bindings/static/QtSignalMap.cs +++ b/qtsharp/src/bindings/static/QtSignalMap.cs @@ -17,7 +17,7 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // // NOTES -// o By inheriting from TTQObject, we can use the child tracking features to +// o By inheriting from TQObject, we can use the child tracking features to // ensure that instances of signal maps are deleted by their parents when // the parent Dispose()es. // @@ -37,9 +37,9 @@ namespace Qt { get { return name; } } - public QtSignalMap (TTQObject parent): this (parent, "QtSignalMap") {} + public QtSignalMap (TQObject parent): this (parent, "QtSignalMap") {} - public QtSignalMap (TTQObject parent, string name): base (TQNull.Instance) + public QtSignalMap (TQObject parent, string name): base (TQNull.Instance) { this.name = name; signalMap = new Hashtable (); diff --git a/qtsharp/src/bindings/static/QtSlot.cs b/qtsharp/src/bindings/static/QtSlot.cs index 0467bc13..e8ced65c 100644 --- a/qtsharp/src/bindings/static/QtSlot.cs +++ b/qtsharp/src/bindings/static/QtSlot.cs @@ -22,7 +22,7 @@ namespace Qt { using System.Text; internal class QtSlot { - protected TTQObject receiver; + protected TQObject receiver; protected string slot; private string name; private string args; @@ -30,7 +30,7 @@ namespace Qt { private IntPtr wrapperPtr; private Delegate callback; - public TTQObject Receiver { + public TQObject Receiver { get { return receiver; } } @@ -74,7 +74,7 @@ namespace Qt { public QtSlot() {} - public QtSlot(TTQObject receiver, string slot) + public QtSlot(TQObject receiver, string slot) { this.receiver = receiver; this.slot = slot; @@ -95,109 +95,109 @@ namespace Qt { public void SlotBridge_QString (IntPtr value0) { - TTQString csvalue0 = QtSupport.LookupObject (value0, typeof (TTQString)) as TTQString; + TQString csvalue0 = QtSupport.LookupObject (value0, typeof (TQString)) as TQString; Invoke (new object[] {csvalue0}); } public void SlotBridge_QDockWindow (IntPtr value0) { - TTQDockWindow csvalue0 = QtSupport.LookupObject (value0, typeof (TTQDockWindow)) as TTQDockWindow; + TQDockWindow csvalue0 = QtSupport.LookupObject (value0, typeof (TQDockWindow)) as TQDockWindow; Invoke (new object[] {csvalue0}); } public void SlotBridge_QDropEvent (IntPtr value0) { - TTQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TTQDropEvent)) as TTQDropEvent; + TQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TQDropEvent)) as TQDropEvent; Invoke (new object[] {csvalue0}); } public void SlotBridge_QDropEventTQListViewItem (IntPtr value0, IntPtr value1) { - TTQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TTQDropEvent)) as TTQDropEvent; - TTQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TTQListViewItem)) as TTQListViewItem; + TQDropEvent csvalue0 = QtSupport.LookupObject (value0, typeof (TQDropEvent)) as TQDropEvent; + TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as TQListViewItem; Invoke (new object[] {csvalue0, csvalue1}); } public void SlotBridge_QIconViewItem (IntPtr value0) { - TTQIconViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TTQIconViewItem)) as TTQIconViewItem; + TQIconViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQIconViewItem)) as TQIconViewItem; Invoke (new object[] {csvalue0}); } public void SlotBridge_QListBoxItem (IntPtr value0) { - TTQListBoxItem csvalue0 = QtSupport.LookupObject (value0, typeof (TTQListBoxItem)) as TTQListBoxItem; + TQListBoxItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListBoxItem)) as TQListBoxItem; Invoke (new object[] {csvalue0}); } public void SlotBridge_QListViewItem (IntPtr value0) { - TTQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TTQListViewItem)) as TTQListViewItem; + TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as TQListViewItem; Invoke (new object[] {csvalue0}); } public void SlotBridge_QListViewItemTQListViewItem (IntPtr value0, IntPtr value1) { - TTQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TTQListViewItem)) as TTQListViewItem; - TTQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TTQListViewItem)) as TTQListViewItem; + TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as TQListViewItem; + TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as TQListViewItem; Invoke (new object[] {csvalue0, csvalue1}); } public void SlotBridge_QListViewItemTQListViewItemTQListViewItem (IntPtr value0, IntPtr value1, IntPtr value2) { - TTQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TTQListViewItem)) as TTQListViewItem; - TTQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TTQListViewItem)) as TTQListViewItem; - TTQListViewItem csvalue2 = QtSupport.LookupObject (value2, typeof (TTQListViewItem)) as TTQListViewItem; + TQListViewItem csvalue0 = QtSupport.LookupObject (value0, typeof (TQListViewItem)) as TQListViewItem; + TQListViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListViewItem)) as TQListViewItem; + TQListViewItem csvalue2 = QtSupport.LookupObject (value2, typeof (TQListViewItem)) as TQListViewItem; Invoke (new object[] {csvalue0, csvalue1, csvalue2}); } public void SlotBridge_QNetworkOperation (IntPtr value0) { - TTQNetworkOperation csvalue0 = QtSupport.LookupObject (value0, typeof (TTQNetworkOperation)) as TTQNetworkOperation; + TQNetworkOperation csvalue0 = QtSupport.LookupObject (value0, typeof (TQNetworkOperation)) as TQNetworkOperation; Invoke (new object[] {csvalue0}); } public void SlotBridge_QObject (IntPtr value0) { - TTQObject csvalue0 = QtSupport.LookupObject (value0, typeof (TTQObject)) as TTQObject; + TQObject csvalue0 = QtSupport.LookupObject (value0, typeof (TQObject)) as TQObject; Invoke (new object[] {csvalue0}); } public void SlotBridge_QToolBar (IntPtr value0) { - TTQToolBar csvalue0 = QtSupport.LookupObject (value0, typeof (TTQToolBar)) as TTQToolBar; + TQToolBar csvalue0 = QtSupport.LookupObject (value0, typeof (TQToolBar)) as TQToolBar; Invoke (new object[] {csvalue0}); } public void SlotBridge_QWidget (IntPtr value0) { - TTQWidget csvalue0 = QtSupport.LookupObject (value0, typeof (TTQWidget)) as TTQWidget; + TQWidget csvalue0 = QtSupport.LookupObject (value0, typeof (TQWidget)) as TQWidget; Invoke (new object[] {csvalue0}); } public void SlotBridge_intTQIconViewItem (int value0, IntPtr value1) { - TTQIconViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TTQIconViewItem)) as TTQIconViewItem; + TQIconViewItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQIconViewItem)) as TQIconViewItem; Invoke (new object[] {value0, csvalue1}); } public void SlotBridge_intTQListBoxItem (int value0, IntPtr value1) { - TTQListBoxItem csvalue1 = QtSupport.LookupObject (value1, typeof (TTQListBoxItem)) as TTQListBoxItem; + TQListBoxItem csvalue1 = QtSupport.LookupObject (value1, typeof (TQListBoxItem)) as TQListBoxItem; Invoke (new object[] {value0, csvalue1}); } @@ -209,7 +209,7 @@ namespace Qt { } } - private static MethodInfo LookupSlot(TTQObject receiver, string name, string args) + private static MethodInfo LookupSlot(TQObject receiver, string name, string args) { MethodInfo ret = null; 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); } diff --git a/qtsharp/src/bindings/static/RasterOp.cs b/qtsharp/src/bindings/static/RasterOp.cs index 0e2adb56..95c4452c 100644 --- a/qtsharp/src/bindings/static/RasterOp.cs +++ b/qtsharp/src/bindings/static/RasterOp.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/StringComparisonMode.cs b/qtsharp/src/bindings/static/StringComparisonMode.cs index 7502d010..6253646c 100644 --- a/qtsharp/src/bindings/static/StringComparisonMode.cs +++ b/qtsharp/src/bindings/static/StringComparisonMode.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/TextFlags.cs b/qtsharp/src/bindings/static/TextFlags.cs index 64cd1577..ebfb9d53 100644 --- a/qtsharp/src/bindings/static/TextFlags.cs +++ b/qtsharp/src/bindings/static/TextFlags.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/TextFormat.cs b/qtsharp/src/bindings/static/TextFormat.cs index fe7e7923..d2eab137 100644 --- a/qtsharp/src/bindings/static/TextFormat.cs +++ b/qtsharp/src/bindings/static/TextFormat.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/UIEffect.cs b/qtsharp/src/bindings/static/UIEffect.cs index 87cc25d1..3eb93662 100644 --- a/qtsharp/src/bindings/static/UIEffect.cs +++ b/qtsharp/src/bindings/static/UIEffect.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/WidgetFlags.cs b/qtsharp/src/bindings/static/WidgetFlags.cs index 4867d1fb..748e6ef5 100644 --- a/qtsharp/src/bindings/static/WidgetFlags.cs +++ b/qtsharp/src/bindings/static/WidgetFlags.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/WidgetState.cs b/qtsharp/src/bindings/static/WidgetState.cs index a511c148..7d2f3383 100644 --- a/qtsharp/src/bindings/static/WidgetState.cs +++ b/qtsharp/src/bindings/static/WidgetState.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // diff --git a/qtsharp/src/bindings/static/WindowsVersion.cs b/qtsharp/src/bindings/static/WindowsVersion.cs index eac1440b..68e75c43 100644 --- a/qtsharp/src/bindings/static/WindowsVersion.cs +++ b/qtsharp/src/bindings/static/WindowsVersion.cs @@ -1,4 +1,4 @@ -// TTQApplication.cs - A Qt to C# binding. +// TQApplication.cs - A Qt to C# binding. // // Copyright (C) 2002 Adam Treat (manyoso@yahoo.com) // |