diff options
Diffstat (limited to 'qtsharp/src/bindings/static/QApplication.cs')
-rw-r--r-- | qtsharp/src/bindings/static/QApplication.cs | 182 |
1 files changed, 91 insertions, 91 deletions
diff --git a/qtsharp/src/bindings/static/QApplication.cs b/qtsharp/src/bindings/static/QApplication.cs index ee7e443a..61dd8019 100644 --- a/qtsharp/src/bindings/static/QApplication.cs +++ b/qtsharp/src/bindings/static/QApplication.cs @@ -1,4 +1,4 @@ -// QApplication.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 QApplication : QObject, 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 QApplication (string[] argv) : this (QNull.Instance) + public TQApplication (string[] argv) : this (QNull.Instance) { - QObject.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 QApplication (string[] argv, bool GUIenabled) : this (QNull.Instance) + public TQApplication (string[] argv, bool GUIenabled) : this (QNull.Instance) { - QObject.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 QApplication (string[] argv, Type arg1) : this (QNull.Instance) + public TQApplication (string[] argv, Type arg1) : this (QNull.Instance) { - QObject.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 QApplication (IntPtr dpy, uint visual, uint cmap) : this (QNull.Instance) + public TQApplication (IntPtr dpy, uint visual, uint cmap) : this (QNull.Instance) { - QObject.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 QApplication (IntPtr dpy, string[] argv, uint visual, uint cmap) : this (QNull.Instance) + public TQApplication (IntPtr dpy, string[] argv, uint visual, uint cmap) : this (QNull.Instance) { - QObject.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 QApplication (IntPtr dpy) : this (dpy, (uint) 0) {} + public TQApplication (IntPtr dpy) : this (dpy, (uint) 0) {} - public QApplication (IntPtr dpy, uint visual) : this (dpy, visual, (uint) 0) {} + public TQApplication (IntPtr dpy, uint visual) : this (dpy, visual, (uint) 0) {} - public QApplication (IntPtr dpy, string[] argv) : this (dpy, argv, (uint) 0) {} + public TQApplication (IntPtr dpy, string[] argv) : this (dpy, argv, (uint) 0) {} - public QApplication (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 QApplication () : this (QNull.Instance) {} + internal TQApplication () : this (QNull.Instance) {} - internal QApplication (QNull dummy) : base (QNull.Instance) {} + internal TQApplication (QNull dummy) : base (QNull.Instance) {} - ~QApplication () + ~TQApplication () { Dispose (false); } @@ -204,37 +204,37 @@ namespace Qt { [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_mainWidget (IntPtr raw); - public QWidget MainWidget () + public TQWidget MainWidget () { - return (QWidget)LookupObject (qt_QApplication_mainWidget (rawObject), typeof(QWidget)); + 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 (QWidget 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 (QWidget 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 QWidget FocusWidget () + public TQWidget FocusWidget () { - return (QWidget)LookupObject (qt_QApplication_focusWidget (rawObject), typeof(QWidget)); + return (TQWidget)LookupObject (qt_QApplication_focusWidget (rawObject), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_activeWindow (IntPtr raw); - public QWidget ActiveWindow () + public TQWidget ActiveWindow () { - return (QWidget)LookupObject (qt_QApplication_activeWindow (rawObject), typeof(QWidget)); + 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 (QObject arg1, QEvent 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 (QTextCodec 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 QTextCodec DefaultCodec () + public TQTextCodec DefaultCodec () { - return (QTextCodec)LookupObject (qt_QApplication_defaultCodec (rawObject), typeof(QTextCodec)); + 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) { - QString qstr = new QString (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 (QWidget 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 (QWidget 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 () { - QString qstr = new QString (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 QStyle Style () + public static TQStyle Style () { - return (QStyle)LookupObject (qt_QApplication_style (), typeof(QStyle)); + 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 (QStyle 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 QStyle SetStyle (string arg1) + public static TQStyle SetStyle (string arg1) { - return (QStyle)LookupObject (qt_QApplication_setStyle1 (new QString (arg1).RawObject), typeof(QStyle)); + 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 (QApplication.ColorMode arg1); - public static void SetColorMode (QApplication.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 QCursor OverrideCursor () + public static TQCursor OverrideCursor () { - return (QCursor)LookupObject (qt_QApplication_overrideCursor (), typeof(QCursor)); + 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 (QCursor 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 QPalette Palette (QWidget arg1) + public static TQPalette Palette (TQWidget arg1) { - return (QPalette)LookupObject (qt_QApplication_palette (arg1.RawObject), typeof(QPalette)); + 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 (QPalette 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 QFont Font (QWidget arg1) + public static TQFont Font (TQWidget arg1) { - return (QFont)LookupObject (qt_QApplication_font (arg1.RawObject), typeof(QFont)); + 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 (QFont 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 QFontMetrics FontMetrics () + public static TQFontMetrics FontMetrics () { - return (QFontMetrics)LookupObject (qt_QApplication_fontMetrics (), typeof(QFontMetrics)); + return (TQFontMetrics)LookupObject (qt_QApplication_fontMetrics (), typeof(TQFontMetrics)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_allWidgets (); - public static QWidgetList AllWidgets () + public static TQWidgetList AllWidgets () { - return (QWidgetList)LookupObject (qt_QApplication_allWidgets (), typeof(QWidgetList)); + return (TQWidgetList)LookupObject (qt_QApplication_allWidgets (), typeof(TQWidgetList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_topLevelWidgets (); - public static QWidgetList TopLevelWidgets () + public static TQWidgetList TopLevelWidgets () { - return (QWidgetList)LookupObject (qt_QApplication_topLevelWidgets (), typeof(QWidgetList)); + return (TQWidgetList)LookupObject (qt_QApplication_topLevelWidgets (), typeof(TQWidgetList)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_desktop (); - public static QDesktopWidget Desktop () + public static TQDesktopWidget Desktop () { - return (QDesktopWidget)LookupObject (qt_QApplication_desktop (), typeof(QDesktopWidget)); + return (TQDesktopWidget)LookupObject (qt_QApplication_desktop (), typeof(TQDesktopWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_activePopupWidget (); - public static QWidget ActivePopupWidget () + public static TQWidget ActivePopupWidget () { - return (QWidget)LookupObject (qt_QApplication_activePopupWidget (), typeof(QWidget)); + return (TQWidget)LookupObject (qt_QApplication_activePopupWidget (), typeof(TQWidget)); } [DllImport("libqtc", CharSet=CharSet.Ansi)] private static extern IntPtr qt_QApplication_activeModalWidget (); - public static QWidget ActiveModalWidget () + public static TQWidget ActiveModalWidget () { - return (QWidget)LookupObject (qt_QApplication_activeModalWidget (), typeof(QWidget)); + 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 QWidget WidgetAt (int x, int y, bool child) + public static TQWidget WidgetAt (int x, int y, bool child) { - return (QWidget)LookupObject (qt_QApplication_widgetAt (x, y, child), typeof(QWidget)); + 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 QWidget WidgetAt (QPoint arg1, bool child) + public static TQWidget WidgetAt (TQPoint arg1, bool child) { - return (QWidget)LookupObject (qt_QApplication_widgetAt1 (arg1.RawObject, child), typeof(QWidget)); + 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 (QObject 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 (QObject 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 (QColor 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 QColor WinStyleHighlightColor () + public static TQColor WinStyleHighlightColor () { - return (QColor)LookupObject (qt_QApplication_winStyleHighlightColor (), typeof(QColor)); + 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 (QSize 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 QSize GlobalStrut () + public static TQSize GlobalStrut () { - return (QSize)LookupObject (qt_QApplication_globalStrut (), typeof(QSize)); + 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 (QStringList 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 QStringList LibraryPaths () + public static TQStringList LibraryPaths () { - return (QStringList)LookupObject (qt_QApplication_libraryPaths (), typeof(QStringList)); + 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 QString (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 QString (arg1).RawObject); + qt_QApplication_removeLibraryPath (new TQString (arg1).RawObject); } [DllImport("libqtc", CharSet=CharSet.Ansi)] @@ -970,47 +970,47 @@ namespace Qt { SetEnableRemoteControl(enable, new QUuid ()); } - public static void SetOverrideCursor (QCursor arg1) + public static void SetOverrideCursor (TQCursor arg1) { SetOverrideCursor(arg1, false); } - public static QPalette Palette () + public static TQPalette Palette () { - return Palette(new QWidget ()); + return Palette(new TQWidget ()); } - public static void SetPalette (QPalette arg1) + public static void SetPalette (TQPalette arg1) { SetPalette(arg1, false); } - public static void SetPalette (QPalette arg1, bool informWidgets) + public static void SetPalette (TQPalette arg1, bool informWidgets) { SetPalette(arg1, informWidgets, ""); } - public static QFont Font () + public static TQFont Font () { - return Font(new QWidget ()); + return Font(new TQWidget ()); } - public static void SetFont (QFont arg1) + public static void SetFont (TQFont arg1) { SetFont(arg1, false); } - public static void SetFont (QFont arg1, bool informWidgets) + public static void SetFont (TQFont arg1, bool informWidgets) { SetFont(arg1, informWidgets, ""); } - public static QWidget WidgetAt (int x, int y) + public static TQWidget WidgetAt (int x, int y) { return WidgetAt(x, y, false); } - public static QWidget WidgetAt (QPoint arg1) + public static TQWidget WidgetAt (TQPoint arg1) { return WidgetAt(arg1, false); } |