From e63beeb5bdb82987b1e00bc35178667786fbad48 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 16:20:48 -0600 Subject: Fix incorrect conversion --- qtsharp/src/bindings/static/QApplication.cs | 182 ++++++++++++++-------------- 1 file changed, 91 insertions(+), 91 deletions(-) (limited to 'qtsharp/src/bindings/static/QApplication.cs') 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); } -- cgit v1.2.1