diff options
Diffstat (limited to 'qtsharp/src/generator/QTypeMap.cs')
-rw-r--r-- | qtsharp/src/generator/QTypeMap.cs | 444 |
1 files changed, 222 insertions, 222 deletions
diff --git a/qtsharp/src/generator/QTypeMap.cs b/qtsharp/src/generator/QTypeMap.cs index 321c4738..05a7afa2 100644 --- a/qtsharp/src/generator/QTypeMap.cs +++ b/qtsharp/src/generator/QTypeMap.cs @@ -21,11 +21,11 @@ using System.Collections; namespace QtCSharp { - public class QTypeMap { + public class TQTypeMap { Hashtable arraymap, mastermap, pinvoketypes, pinvokecalltypes, csharptypes, overloadtypes, reserved, interfaces; - public QTypeMap () + public TQTypeMap () { arraymap = new Hashtable (); arraymap.Add ("void*", "int[]"); @@ -44,8 +44,8 @@ namespace QtCSharp { mastermap = new Hashtable (); mastermap.Add ("void", "void"); - // mastermap.Add ("TQByteArray", "byte[]"); - mastermap.Add ("TQBitArray", "byte[]"); + // mastermap.Add ("TTQByteArray", "byte[]"); + mastermap.Add ("TTQBitArray", "byte[]"); mastermap.Add ("uchar", "string"); mastermap.Add ("unsigned int", "uint"); mastermap.Add ("unsigned short", "ushort"); @@ -63,17 +63,17 @@ namespace QtCSharp { mastermap.Add ("EventRef", "IntPtr"); mastermap.Add ("MSG", "IntPtr"); mastermap.Add ("XEvent", "IntPtr"); - mastermap.Add ("QWSEvent", "IntPtr"); + mastermap.Add ("TQWSEvent", "IntPtr"); mastermap.Add ("GDHandle", "IntPtr"); - mastermap.Add ("QRgb", "int"); - mastermap.Add ("QWSDecoration", "IntPtr"); - mastermap.Add ("QTextParag", "IntPtr"); + mastermap.Add ("TQRgb", "int"); + mastermap.Add ("TQWSDecoration", "IntPtr"); + mastermap.Add ("TQTextParag", "IntPtr"); mastermap.Add ("Qt.HANDLE", "IntPtr"); - mastermap.Add ("QUObject", "IntPtr"); - mastermap.Add ("QGfx", "IntPtr"); - mastermap.Add ("QRESULT", "long"); - mastermap.Add ("QUnknownInterface", "IntPtr"); - mastermap.Add ("TQPtrCollection.Item", "int"); + mastermap.Add ("TQUObject", "IntPtr"); + mastermap.Add ("TQGfx", "IntPtr"); + mastermap.Add ("TQRESULT", "long"); + mastermap.Add ("TQUnknownInterface", "IntPtr"); + mastermap.Add ("TTQPtrCollection.Item", "int"); mastermap.Add ("type", "IntPtr"); mastermap.Add ("array_data", "IntPtr"); mastermap.Add ("bitarr_data", "IntPtr"); @@ -87,14 +87,14 @@ namespace QtCSharp { mastermap.Add ("Q_UINT32", "uint"); mastermap.Add ("Q_UINT8", "char"); mastermap.Add ("Q_ULONG", "long"); - mastermap.Add ("QStyleHintReturn", "IntPtr"); - mastermap.Add ("QFileInfoList", "IntPtr"); - mastermap.Add ("QDomNodePrivate", "IntPtr"); + mastermap.Add ("TQStyleHintReturn", "IntPtr"); + mastermap.Add ("TQFileInfoList", "IntPtr"); + mastermap.Add ("TQDomNodePrivate", "IntPtr"); mastermap.Add ("GUID", "System.Guid"); mastermap.Add ("FILE", "string"); mastermap.Add ("EncoderFn", "int"); mastermap.Add ("DecoderFn", "int"); - mastermap.Add ("QDiskFont", "IntPtr"); + mastermap.Add ("TQDiskFont", "IntPtr"); mastermap.Add ("pointer", "IntPtr"); mastermap.Add ("T", "IntPtr"); mastermap.Add ("T1", "IntPtr"); @@ -105,31 +105,31 @@ namespace QtCSharp { mastermap.Add ("reference", "IntPtr"); mastermap.Add ("_reference", "IntPtr"); mastermap.Add ("ConstIterator", "int"); - mastermap.Add ("QWSDisplay", "IntPtr"); + mastermap.Add ("TQWSDisplay", "IntPtr"); mastermap.Add ("CGContextRef", "IntPtr"); mastermap.Add ("WId", "uint"); - mastermap.Add ("QWidgetMapper", "IntPtr"); + mastermap.Add ("TQWidgetMapper", "IntPtr"); mastermap.Add ("size_type", "int"); mastermap.Add ("Item", "IntPtr"); mastermap.Add ("image_io_handler", "int"); - mastermap.Add ("QCOORD", "short"); + mastermap.Add ("TQCOORD", "short"); mastermap.Add ("key_type", "IntPtr"); mastermap.Add ("K", "IntPtr"); mastermap.Add ("NodePtr", "int"); - mastermap.Add ("QTextFormat", "IntPtr"); - mastermap.Add ("QTextDocument", "IntPtr"); - mastermap.Add ("QTextCursor", "IntPtr"); + mastermap.Add ("TQTextFormat", "IntPtr"); + mastermap.Add ("TQTextDocument", "IntPtr"); + mastermap.Add ("TQTextCursor", "IntPtr"); mastermap.Add ("_NPStream", "IntPtr"); mastermap.Add ("PID", "long"); mastermap.Add ("Region", "int"); mastermap.Add ("RgnHandle", "IntPtr"); - mastermap.Add ("QRemoteInterface", "IntPtr"); + mastermap.Add ("TQRemoteInterface", "IntPtr"); mastermap.Add ("mode_t", "int"); - mastermap.Add ("TQSqlFieldInfo", "IntPtr"); - mastermap.Add ("TQSqlRecordInfo", "IntPtr"); - mastermap.Add ("QSqlRecordPrivate", "IntPtr"); - mastermap.Add ("QTSMFI", "int"); - mastermap.Add ("Widget", "TQWidget"); + mastermap.Add ("TTQSqlFieldInfo", "IntPtr"); + mastermap.Add ("TTQSqlRecordInfo", "IntPtr"); + mastermap.Add ("TQSqlRecordPrivate", "IntPtr"); + mastermap.Add ("TQTSMFI", "int"); + mastermap.Add ("Widget", "TTQWidget"); mastermap.Add ("WidgetClass", "int"); mastermap.Add ("ArgList", "int"); mastermap.Add ("Cardinal", "int"); @@ -138,117 +138,117 @@ namespace QtCSharp { mastermap.Add ("ULONG_MAX", "UInt64.MaxValue"); // Enums - mastermap.Add ("Event", "TQAccessible.Event"); - mastermap.Add ("Role", "TQAccessible.Role"); - mastermap.Add ("NavDirection", "TQAccessible.NavDirection"); - mastermap.Add ("Text", "TQAccessible.Text"); - mastermap.Add ("ColorSpec", "TQApplication.ColorSpec"); - mastermap.Add ("ToggleState", "TQButton.ToggleState"); - mastermap.Add ("RttiValues", "TQCanvasItem.RttiValues"); - mastermap.Add ("FrameAnimationType", "TQCanvasSprite.FrameAnimationType"); - mastermap.Add ("Category", "TQChar.Category"); - mastermap.Add ("Decomposition", "TQChar.Decomposition"); - mastermap.Add ("Joining", "TQChar.Joining"); - mastermap.Add ("CombiningClass", "TQChar.CombiningClass"); - mastermap.Add ("Spec", "TQColor.Spec"); - mastermap.Add ("ColorRole", "TQColorGroup.ColorRole"); - mastermap.Add ("Boundary", "TQDataBrowser.Boundary"); - mastermap.Add ("ByteOrder", "TQDataStream.ByteOrder"); - mastermap.Add ("Refresh", "TQDataTable.Refresh"); - mastermap.Add ("Order", "QDateEdit.Order"); - mastermap.Add ("DialogCode", "TQDialog.DialogCode"); - mastermap.Add ("FilterSpec", "TQDir.FilterSpec"); - mastermap.Add ("SortSpec", "TQDir.SortSpec"); - mastermap.Add ("RecordType", "TQDns.RecordType"); - mastermap.Add ("HandlePosition", "TQDockArea.HandlePosition"); - mastermap.Add ("Place", "TQDockWindow.Place"); - mastermap.Add ("CloseMode", "TQDockWindow.CloseMode"); - mastermap.Add ("NodeType", "TQDomNode.NodeType"); - mastermap.Add ("DragMode", "TQDragObject.DragMode"); - mastermap.Add ("Action", "TQDropEvent.Action"); - mastermap.Add ("ViewMode", "TQFileDialog.ViewMode"); - mastermap.Add ("PreviewMode", "TQFileDialog.PreviewMode"); - mastermap.Add ("PermissionSpec", "TQFileInfo.PermissionSpec"); - mastermap.Add ("StyleStrategy", "TQFont.StyleStrategy"); - mastermap.Add ("Weight", "TQFont.Weight"); - mastermap.Add ("Script", "TQFont.Script"); - mastermap.Add ("Shadow", "TQFrame.Shadow"); - mastermap.Add ("FormatOption", "TQGL.FormatOption"); - mastermap.Add ("Corner", "TQGridLayout.Corner"); - mastermap.Add ("Size", "TQIconSet.Size"); - mastermap.Add ("Arrangement", "TQIconView.Arrangement"); - mastermap.Add ("ItemTextPos", "TQIconView.ItemTextPos"); - mastermap.Add ("Endian", "TQImage.Endian"); - mastermap.Add ("ScaleMode", "TQImage.ScaleMode"); - mastermap.Add ("PaintDeviceFlags", "TQInternal.PaintDeviceFlags"); - mastermap.Add ("Rules", "TQJpUnicodeConv.Rules"); - mastermap.Add ("SegmentStyle", "QLCDNumber.SegmentStyle"); - mastermap.Add ("LayoutMode", "TQListBox.LayoutMode"); - mastermap.Add ("WidthMode", "TQListView.WidthMode"); - mastermap.Add ("RenameAction", "TQListView.RenameAction"); - mastermap.Add ("DockWindows", "TQMainWindow.DockWindows"); - mastermap.Add ("Color", "QMapNodeBase.Color"); - mastermap.Add ("Separator", "TQMenuBar.Separator"); - mastermap.Add ("Icon", "TQMessageBox.Icon"); - mastermap.Add ("Access", "QMetaData.Access"); - mastermap.Add ("Flags", "TQMetaProperty.Flags"); - mastermap.Add ("Status", "TQMovie.Status"); - mastermap.Add ("InstanceMode", "QNPInstance.InstanceMode"); - mastermap.Add ("StreamMode", "QNPInstance.StreamMode"); - mastermap.Add ("Operation", "TQNetworkProtocol.Operation"); - mastermap.Add ("ConnectionState", "TQNetworkProtocol.ConnectionState"); - mastermap.Add ("DisposalMethod", "QPNGImageWriter.DisposalMethod"); - mastermap.Add ("PDevCmd", "TQPaintDevice.PDevCmd"); - mastermap.Add ("CoordinateMode", "TQPainter.CoordinateMode"); - mastermap.Add ("TextDirection", "TQPainter.TextDirection"); - mastermap.Add ("ColorGroup", "TQPalette.ColorGroup"); - mastermap.Add ("Optimization", "TQPixmap.Optimization"); - mastermap.Add ("Edge", "TQPolygonScanner.Edge"); - mastermap.Add ("PrinterMode", "TQPrinter.PrinterMode"); - mastermap.Add ("PageSize", "TQPrinter.PageSize"); - mastermap.Add ("PageOrder", "TQPrinter.PageOrder"); - mastermap.Add ("PaperSource", "TQPrinter.PaperSource"); - mastermap.Add ("Communication", "TQProcess.Communication"); - mastermap.Add ("RegionType", "TQRegion.RegionType"); - mastermap.Add ("ResizePolicy", "TQScrollView.ResizePolicy"); - mastermap.Add ("ScrollBarMode", "TQScrollView.ScrollBarMode"); - mastermap.Add ("RestartHint", "QSessionManager.RestartHint"); - mastermap.Add ("System", "TQSettings.System"); - mastermap.Add ("SizeType", "TQSizePolicy.SizeType"); - mastermap.Add ("ExpandData", "TQSizePolicy.ExpandData"); - mastermap.Add ("TickSetting", "TQSlider.TickSetting"); - mastermap.Add ("Op", "TQSql.Op"); - mastermap.Add ("Location", "TQSql.Location"); - mastermap.Add ("Confirm", "TQSql.Confirm"); - mastermap.Add ("DriverFeature", "TQSqlDriver.DriverFeature"); - mastermap.Add ("SectionFlags", "TQString.SectionFlags"); - mastermap.Add ("PrimitiveElement", "TQStyle.PrimitiveElement"); - mastermap.Add ("StyleFlags", "TQStyle.StyleFlags"); - mastermap.Add ("SFlags", "TQStyle.StyleFlags"); - mastermap.Add ("ControlElement", "TQStyle.ControlElement"); - mastermap.Add ("SubRect", "TQStyle.SubRect"); - mastermap.Add ("ComplexControl", "TQStyle.ComplexControl"); - mastermap.Add ("SubControl", "TQStyle.SubControl"); - mastermap.Add ("SCFlags", "TQStyle.SubControl"); - mastermap.Add ("PixelMetric", "TQStyle.PixelMetric"); - mastermap.Add ("ContentsType", "TQStyle.ContentsType"); - mastermap.Add ("StylePixmap", "TQStyle.StylePixmap"); - mastermap.Add ("StyleOptionDefault", "TQStyleOption.StyleOptionDefault"); - mastermap.Add ("AdditionalStyleValues", "TQStyleSheetItem.AdditionalStyleValues"); - mastermap.Add ("DisplayMode", "TQStyleSheetItem.DisplayMode"); - mastermap.Add ("WhiteSpaceMode", "TQStyleSheetItem.WhiteSpaceMode"); - mastermap.Add ("Margin", "TQStyleSheetItem.Margin"); - mastermap.Add ("ListStyle", "TQStyleSheetItem.ListStyle"); - mastermap.Add ("FocusStyle", "TQTable.FocusStyle"); - mastermap.Add ("EditMode", "TQTable.EditMode"); - mastermap.Add ("EditType", "TQTableItem.EditType"); - mastermap.Add ("TabletDevice", "TQTabletEvent.TabletDevice"); - mastermap.Add ("KeyboardAction", "TQTextEdit.KeyboardAction"); - mastermap.Add ("CursorAction", "TQTextEdit.CursorAction"); - mastermap.Add ("SaveMode", "QTranslator.SaveMode"); - mastermap.Add ("Prefix", "QTranslatorMessage.Prefix"); - mastermap.Add ("FocusPolicy", "TQWidget.FocusPolicy"); - mastermap.Add ("BackgroundOrigin", "TQWidget.BackgroundOrigin"); + mastermap.Add ("Event", "TTQAccessible.Event"); + mastermap.Add ("Role", "TTQAccessible.Role"); + mastermap.Add ("NavDirection", "TTQAccessible.NavDirection"); + mastermap.Add ("Text", "TTQAccessible.Text"); + mastermap.Add ("ColorSpec", "TTQApplication.ColorSpec"); + mastermap.Add ("ToggleState", "TTQButton.ToggleState"); + mastermap.Add ("RttiValues", "TTQCanvasItem.RttiValues"); + mastermap.Add ("FrameAnimationType", "TTQCanvasSprite.FrameAnimationType"); + mastermap.Add ("Category", "TTQChar.Category"); + mastermap.Add ("Decomposition", "TTQChar.Decomposition"); + mastermap.Add ("Joining", "TTQChar.Joining"); + mastermap.Add ("CombiningClass", "TTQChar.CombiningClass"); + mastermap.Add ("Spec", "TTQColor.Spec"); + mastermap.Add ("ColorRole", "TTQColorGroup.ColorRole"); + mastermap.Add ("Boundary", "TTQDataBrowser.Boundary"); + mastermap.Add ("ByteOrder", "TTQDataStream.ByteOrder"); + mastermap.Add ("Refresh", "TTQDataTable.Refresh"); + mastermap.Add ("Order", "TQDateEdit.Order"); + mastermap.Add ("DialogCode", "TTQDialog.DialogCode"); + mastermap.Add ("FilterSpec", "TTQDir.FilterSpec"); + mastermap.Add ("SortSpec", "TTQDir.SortSpec"); + mastermap.Add ("RecordType", "TTQDns.RecordType"); + mastermap.Add ("HandlePosition", "TTQDockArea.HandlePosition"); + mastermap.Add ("Place", "TTQDockWindow.Place"); + mastermap.Add ("CloseMode", "TTQDockWindow.CloseMode"); + mastermap.Add ("NodeType", "TTQDomNode.NodeType"); + mastermap.Add ("DragMode", "TTQDragObject.DragMode"); + mastermap.Add ("Action", "TTQDropEvent.Action"); + mastermap.Add ("ViewMode", "TTQFileDialog.ViewMode"); + mastermap.Add ("PreviewMode", "TTQFileDialog.PreviewMode"); + mastermap.Add ("PermissionSpec", "TTQFileInfo.PermissionSpec"); + mastermap.Add ("StyleStrategy", "TTQFont.StyleStrategy"); + mastermap.Add ("Weight", "TTQFont.Weight"); + mastermap.Add ("Script", "TTQFont.Script"); + mastermap.Add ("Shadow", "TTQFrame.Shadow"); + mastermap.Add ("FormatOption", "TTQGL.FormatOption"); + mastermap.Add ("Corner", "TTQGridLayout.Corner"); + mastermap.Add ("Size", "TTQIconSet.Size"); + mastermap.Add ("Arrangement", "TTQIconView.Arrangement"); + mastermap.Add ("ItemTextPos", "TTQIconView.ItemTextPos"); + mastermap.Add ("Endian", "TTQImage.Endian"); + mastermap.Add ("ScaleMode", "TTQImage.ScaleMode"); + mastermap.Add ("PaintDeviceFlags", "TTQInternal.PaintDeviceFlags"); + mastermap.Add ("Rules", "TTQJpUnicodeConv.Rules"); + mastermap.Add ("SegmentStyle", "TQLCDNumber.SegmentStyle"); + mastermap.Add ("LayoutMode", "TTQListBox.LayoutMode"); + mastermap.Add ("WidthMode", "TTQListView.WidthMode"); + mastermap.Add ("RenameAction", "TTQListView.RenameAction"); + mastermap.Add ("DockWindows", "TTQMainWindow.DockWindows"); + mastermap.Add ("Color", "TQMapNodeBase.Color"); + mastermap.Add ("Separator", "TTQMenuBar.Separator"); + mastermap.Add ("Icon", "TTQMessageBox.Icon"); + mastermap.Add ("Access", "TQMetaData.Access"); + mastermap.Add ("Flags", "TTQMetaProperty.Flags"); + mastermap.Add ("Status", "TTQMovie.Status"); + mastermap.Add ("InstanceMode", "TQNPInstance.InstanceMode"); + mastermap.Add ("StreamMode", "TQNPInstance.StreamMode"); + mastermap.Add ("Operation", "TTQNetworkProtocol.Operation"); + mastermap.Add ("ConnectionState", "TTQNetworkProtocol.ConnectionState"); + mastermap.Add ("DisposalMethod", "TQPNGImageWriter.DisposalMethod"); + mastermap.Add ("PDevCmd", "TTQPaintDevice.PDevCmd"); + mastermap.Add ("CoordinateMode", "TTQPainter.CoordinateMode"); + mastermap.Add ("TextDirection", "TTQPainter.TextDirection"); + mastermap.Add ("ColorGroup", "TTQPalette.ColorGroup"); + mastermap.Add ("Optimization", "TTQPixmap.Optimization"); + mastermap.Add ("Edge", "TTQPolygonScanner.Edge"); + mastermap.Add ("PrinterMode", "TTQPrinter.PrinterMode"); + mastermap.Add ("PageSize", "TTQPrinter.PageSize"); + mastermap.Add ("PageOrder", "TTQPrinter.PageOrder"); + mastermap.Add ("PaperSource", "TTQPrinter.PaperSource"); + mastermap.Add ("Communication", "TTQProcess.Communication"); + mastermap.Add ("RegionType", "TTQRegion.RegionType"); + mastermap.Add ("ResizePolicy", "TTQScrollView.ResizePolicy"); + mastermap.Add ("ScrollBarMode", "TTQScrollView.ScrollBarMode"); + mastermap.Add ("RestartHint", "TQSessionManager.RestartHint"); + mastermap.Add ("System", "TTQSettings.System"); + mastermap.Add ("SizeType", "TTQSizePolicy.SizeType"); + mastermap.Add ("ExpandData", "TTQSizePolicy.ExpandData"); + mastermap.Add ("TickSetting", "TTQSlider.TickSetting"); + mastermap.Add ("Op", "TTQSql.Op"); + mastermap.Add ("Location", "TTQSql.Location"); + mastermap.Add ("Confirm", "TTQSql.Confirm"); + mastermap.Add ("DriverFeature", "TTQSqlDriver.DriverFeature"); + mastermap.Add ("SectionFlags", "TTQString.SectionFlags"); + mastermap.Add ("PrimitiveElement", "TTQStyle.PrimitiveElement"); + mastermap.Add ("StyleFlags", "TTQStyle.StyleFlags"); + mastermap.Add ("SFlags", "TTQStyle.StyleFlags"); + mastermap.Add ("ControlElement", "TTQStyle.ControlElement"); + mastermap.Add ("SubRect", "TTQStyle.SubRect"); + mastermap.Add ("ComplexControl", "TTQStyle.ComplexControl"); + mastermap.Add ("SubControl", "TTQStyle.SubControl"); + mastermap.Add ("SCFlags", "TTQStyle.SubControl"); + mastermap.Add ("PixelMetric", "TTQStyle.PixelMetric"); + mastermap.Add ("ContentsType", "TTQStyle.ContentsType"); + mastermap.Add ("StylePixmap", "TTQStyle.StylePixmap"); + mastermap.Add ("StyleOptionDefault", "TTQStyleOption.StyleOptionDefault"); + mastermap.Add ("AdditionalStyleValues", "TTQStyleSheetItem.AdditionalStyleValues"); + mastermap.Add ("DisplayMode", "TTQStyleSheetItem.DisplayMode"); + mastermap.Add ("WhiteSpaceMode", "TTQStyleSheetItem.WhiteSpaceMode"); + mastermap.Add ("Margin", "TTQStyleSheetItem.Margin"); + mastermap.Add ("ListStyle", "TTQStyleSheetItem.ListStyle"); + mastermap.Add ("FocusStyle", "TTQTable.FocusStyle"); + mastermap.Add ("EditMode", "TTQTable.EditMode"); + mastermap.Add ("EditType", "TTQTableItem.EditType"); + mastermap.Add ("TabletDevice", "TTQTabletEvent.TabletDevice"); + mastermap.Add ("KeyboardAction", "TTQTextEdit.KeyboardAction"); + mastermap.Add ("CursorAction", "TTQTextEdit.CursorAction"); + mastermap.Add ("SaveMode", "TQTranslator.SaveMode"); + mastermap.Add ("Prefix", "TQTranslatorMessage.Prefix"); + mastermap.Add ("FocusPolicy", "TTQWidget.FocusPolicy"); + mastermap.Add ("BackgroundOrigin", "TTQWidget.BackgroundOrigin"); mastermap.Add ("ButtonState", "Qt.ButtonState"); mastermap.Add ("AlignmentFlags", "Qt.AlignmentFlags"); mastermap.Add ("TextFlags", "Qt.TextFlags"); @@ -278,75 +278,75 @@ namespace QtCSharp { mastermap.Add ("StringComparisonMode", "Qt.StringComparisonMode"); mastermap.Add ("ComparisonFlags", "Qt.StringComparisonMode"); - // We need to make sure all params use the interfaces, ie IQPaintDevice - /*mastermap.Add ("QAccessibleFactoryInterface", "IQAccessibleFactory"); - mastermap.Add ("QAccessibleInterface", "IQAccessible");*/ - mastermap.Add ("TQPaintDevice", "IQPaintDevice"); - /*mastermap.Add ("TQMenuData", "IQMenuData"); - mastermap.Add ("TQRangeControl", "IQRangeControl"); - mastermap.Add ("TQMimeSource", "IQMimeSource"); - mastermap.Add ("TQLayoutItem", "IQLayoutItem"); - mastermap.Add ("TQUrl", "IQUrl"); - mastermap.Add ("QIODevice", "IQIODevice"); - mastermap.Add ("TQXmlContentHandler", "IQXmlContentHandler"); - mastermap.Add ("TQXmlErrorHandler", "IQXmlErrorHandler"); - mastermap.Add ("TQXmlDTDHandler", "IQXmlDTDHandler"); - mastermap.Add ("TQXmlEntityResolver", "IQXmlEntityResolver"); - //mastermap.Add ("TQXmlLexicalHandler", "IQXmlLexicalHandler"); - mastermap.Add ("TQXmlDeclHandler", "IQXmlDeclHandler"); + // We need to make sure all params use the interfaces, ie ITQPaintDevice + /*mastermap.Add ("TQAccessibleFactoryInterface", "ITQAccessibleFactory"); + mastermap.Add ("TQAccessibleInterface", "ITQAccessible");*/ + mastermap.Add ("TTQPaintDevice", "ITQPaintDevice"); + /*mastermap.Add ("TTQMenuData", "ITQMenuData"); + mastermap.Add ("TTQRangeControl", "ITQRangeControl"); + mastermap.Add ("TTQMimeSource", "ITQMimeSource"); + mastermap.Add ("TTQLayoutItem", "ITQLayoutItem"); + mastermap.Add ("TTQUrl", "ITQUrl"); + mastermap.Add ("TQIODevice", "ITQIODevice"); + mastermap.Add ("TTQXmlContentHandler", "ITQXmlContentHandler"); + mastermap.Add ("TTQXmlErrorHandler", "ITQXmlErrorHandler"); + mastermap.Add ("TTQXmlDTDHandler", "ITQXmlDTDHandler"); + mastermap.Add ("TTQXmlEntityResolver", "ITQXmlEntityResolver"); + //mastermap.Add ("TTQXmlLexicalHandler", "ITQXmlLexicalHandler"); + mastermap.Add ("TTQXmlDeclHandler", "ITQXmlDeclHandler"); mastermap.Add ("QwAbsSpriteFieldView", "IQwAbsSpriteFieldView"); - mastermap.Add ("TQSqlQuery", "IQSqlQuery"); - mastermap.Add ("QFeatureListInterface", "IQFeatureList"); - mastermap.Add ("QUnknownInterface", "IQUnknown"); - mastermap.Add ("QShared", "IQShared");*/ + mastermap.Add ("TTQSqlQuery", "ITQSqlQuery"); + mastermap.Add ("TQFeatureListInterface", "ITQFeatureList"); + mastermap.Add ("TQUnknownInterface", "ITQUnknown"); + mastermap.Add ("TQShared", "ITQShared");*/ // Key Duplication - //mastermap.Add ("Direction", "TQBoxLayout.Direction"); - //mastermap.Add ("Direction", "TQChar.Direction"); - //mastermap.Add ("Reason", "TQContextMenuEvent.Reason"); - //mastermap.Add ("Reason", "TQFocusEvent.Reason"); - //mastermap.Add ("Reason", "QNPInstance.Reason"); - //mastermap.Add ("Mode", "TQFileDialog.Mode"); - //mastermap.Add ("Mode", "TQIconSet.Mode"); - //mastermap.Add ("Mode", "QLCDNumber.Mode"); - //mastermap.Add ("Mode", "TQSqlCursor.Mode"); - //mastermap.Add ("Shape", "TQFrame.Shape"); - //mastermap.Add ("Shape", "TQTabBar.Shape"); - //mastermap.Add ("KeyType", "TQGCache.KeyType"); - //mastermap.Add ("KeyType", "TQGDict.KeyType"); - //mastermap.Add ("State", "TQAccessible.State"); - //mastermap.Add ("State", "TQNetworkProtocol.State"); - //mastermap.Add ("State", "TQSocket.State"); - //mastermap.Add ("State", "TQValidator.State"); - //mastermap.Add ("ResizeMode", "TQIconView.ResizeMode"); - //mastermap.Add ("ResizeMode", "TQLayout.ResizeMode"); - //mastermap.Add ("ResizeMode", "TQListView.ResizeMode"); - //mastermap.Add ("ResizeMode", "TQListView.ResizeMode"); - //mastermap.Add ("EchoMode", "TQLineEdit.EchoMode"); + //mastermap.Add ("Direction", "TTQBoxLayout.Direction"); + //mastermap.Add ("Direction", "TTQChar.Direction"); + //mastermap.Add ("Reason", "TTQContextMenuEvent.Reason"); + //mastermap.Add ("Reason", "TTQFocusEvent.Reason"); + //mastermap.Add ("Reason", "TQNPInstance.Reason"); + //mastermap.Add ("Mode", "TTQFileDialog.Mode"); + //mastermap.Add ("Mode", "TTQIconSet.Mode"); + //mastermap.Add ("Mode", "TQLCDNumber.Mode"); + //mastermap.Add ("Mode", "TTQSqlCursor.Mode"); + //mastermap.Add ("Shape", "TTQFrame.Shape"); + //mastermap.Add ("Shape", "TTQTabBar.Shape"); + //mastermap.Add ("KeyType", "TTQGCache.KeyType"); + //mastermap.Add ("KeyType", "TTQGDict.KeyType"); + //mastermap.Add ("State", "TTQAccessible.State"); + //mastermap.Add ("State", "TTQNetworkProtocol.State"); + //mastermap.Add ("State", "TTQSocket.State"); + //mastermap.Add ("State", "TTQValidator.State"); + //mastermap.Add ("ResizeMode", "TTQIconView.ResizeMode"); + //mastermap.Add ("ResizeMode", "TTQLayout.ResizeMode"); + //mastermap.Add ("ResizeMode", "TTQListView.ResizeMode"); + //mastermap.Add ("ResizeMode", "TTQListView.ResizeMode"); + //mastermap.Add ("EchoMode", "TTQLineEdit.EchoMode"); //mastermap.Add ("EchoMode", "QtMultiLineEdit.EchoMode"); - //mastermap.Add ("ColorMode", "TQApplication.ColorMode"); - //mastermap.Add ("ColorMode", "TQPrinter.ColorMode"); - //mastermap.Add ("ColorMode", "TQPixmap.ColorMode"); - //mastermap.Add ("SelectionMode", "TQIconView.SelectionMode"); - //mastermap.Add ("SelectionMode", "TQListBox.SelectionMode"); - //mastermap.Add ("SelectionMode", "TQListView.SelectionMode"); - //mastermap.Add ("SelectionMode", "TQTable.SelectionMode"); - //mastermap.Add ("Error", "TQSocket.Error"); - //mastermap.Add ("Error", "TQSocketDevice.Error"); - //mastermap.Add ("Error", "TQNetworkProtocol.Error"); - //mastermap.Add ("ButtonSymbols", "TQSpinBox.ButtonSymbols"); - //mastermap.Add ("ButtonSymbols", "TQSpinWidget.ButtonSymbols"); - //mastermap.Add ("StyleHint", "TQStyle.StyleHint"); - //mastermap.Add ("StyleHint", "TQFont.StyleHint"); - //mastermap.Add ("Encoding", "TQApplication.Encoding"); - //mastermap.Add ("Encoding", "TQTextStream.Encoding"); - //mastermap.Add ("VerticalAlignment", "TQTextEdit.VerticalAlignment"); - //mastermap.Add ("VerticalAlignment", "TQStyleSheetItem.VerticalAlignment"); - //mastermap.Add ("Orientation", "TQPrinter.Orientation"); + //mastermap.Add ("ColorMode", "TTQApplication.ColorMode"); + //mastermap.Add ("ColorMode", "TTQPrinter.ColorMode"); + //mastermap.Add ("ColorMode", "TTQPixmap.ColorMode"); + //mastermap.Add ("SelectionMode", "TTQIconView.SelectionMode"); + //mastermap.Add ("SelectionMode", "TTQListBox.SelectionMode"); + //mastermap.Add ("SelectionMode", "TTQListView.SelectionMode"); + //mastermap.Add ("SelectionMode", "TTQTable.SelectionMode"); + //mastermap.Add ("Error", "TTQSocket.Error"); + //mastermap.Add ("Error", "TTQSocketDevice.Error"); + //mastermap.Add ("Error", "TTQNetworkProtocol.Error"); + //mastermap.Add ("ButtonSymbols", "TTQSpinBox.ButtonSymbols"); + //mastermap.Add ("ButtonSymbols", "TTQSpinWidget.ButtonSymbols"); + //mastermap.Add ("StyleHint", "TTQStyle.StyleHint"); + //mastermap.Add ("StyleHint", "TTQFont.StyleHint"); + //mastermap.Add ("Encoding", "TTQApplication.Encoding"); + //mastermap.Add ("Encoding", "TTQTextStream.Encoding"); + //mastermap.Add ("VerticalAlignment", "TTQTextEdit.VerticalAlignment"); + //mastermap.Add ("VerticalAlignment", "TTQStyleSheetItem.VerticalAlignment"); + //mastermap.Add ("Orientation", "TTQPrinter.Orientation"); //mastermap.Add ("Orientation", "Qt.Orientation"); - //mastermap.Add ("WrapPolicy", "TQTextEdit.WrapPolicy"); + //mastermap.Add ("WrapPolicy", "TTQTextEdit.WrapPolicy"); //mastermap.Add ("WrapPolicy", "QtMultiLineEdit.WrapPolicy"); - //mastermap.Add ("WordWrap", "TQTextEdit.WordWrap"); + //mastermap.Add ("WordWrap", "TTQTextEdit.WordWrap"); //mastermap.Add ("WordWrap", "QtMultiLineEdit.WordWrap"); // These are here in case we need to override the mastermap @@ -367,26 +367,26 @@ namespace QtCSharp { // The allowed interfaces interfaces = new Hashtable (); - interfaces.Add ("QAccessibleFactoryInterface", "IQAccessibleFactory"); - interfaces.Add ("QAccessibleInterface", "IQAccessible"); - interfaces.Add ("TQPaintDevice", "IQPaintDevice"); - interfaces.Add ("TQMenuData", "IQMenuData"); - interfaces.Add ("TQRangeControl", "IQRangeControl"); - interfaces.Add ("TQMimeSource", "IQMimeSource"); - interfaces.Add ("TQLayoutItem", "IQLayoutItem"); - interfaces.Add ("TQUrl", "IQUrl"); - interfaces.Add ("QIODevice", "IQIODevice"); - interfaces.Add ("TQXmlContentHandler", "IQXmlContentHandler"); - interfaces.Add ("TQXmlErrorHandler", "IQXmlErrorHandler"); - interfaces.Add ("TQXmlDTDHandler", "IQXmlDTDHandler"); - interfaces.Add ("TQXmlEntityResolver", "IQXmlEntityResolver"); - //interfaces.Add ("TQXmlLexicalHandler", "IQXmlLexicalHandler"); - interfaces.Add ("TQXmlDeclHandler", "IQXmlDeclHandler"); + interfaces.Add ("TQAccessibleFactoryInterface", "ITQAccessibleFactory"); + interfaces.Add ("TQAccessibleInterface", "ITQAccessible"); + interfaces.Add ("TTQPaintDevice", "ITQPaintDevice"); + interfaces.Add ("TTQMenuData", "ITQMenuData"); + interfaces.Add ("TTQRangeControl", "ITQRangeControl"); + interfaces.Add ("TTQMimeSource", "ITQMimeSource"); + interfaces.Add ("TTQLayoutItem", "ITQLayoutItem"); + interfaces.Add ("TTQUrl", "ITQUrl"); + interfaces.Add ("TQIODevice", "ITQIODevice"); + interfaces.Add ("TTQXmlContentHandler", "ITQXmlContentHandler"); + interfaces.Add ("TTQXmlErrorHandler", "ITQXmlErrorHandler"); + interfaces.Add ("TTQXmlDTDHandler", "ITQXmlDTDHandler"); + interfaces.Add ("TTQXmlEntityResolver", "ITQXmlEntityResolver"); + //interfaces.Add ("TTQXmlLexicalHandler", "ITQXmlLexicalHandler"); + interfaces.Add ("TTQXmlDeclHandler", "ITQXmlDeclHandler"); interfaces.Add ("QwAbsSpriteFieldView", "IQwAbsSpriteFieldView"); - interfaces.Add ("TQSqlQuery", "IQSqlQuery"); - interfaces.Add ("QFeatureListInterface", "IQFeatureList"); - interfaces.Add ("QUnknownInterface", "IQUnknown"); - interfaces.Add ("QShared", "IQShared"); + interfaces.Add ("TTQSqlQuery", "ITQSqlQuery"); + interfaces.Add ("TQFeatureListInterface", "ITQFeatureList"); + interfaces.Add ("TQUnknownInterface", "ITQUnknown"); + interfaces.Add ("TQShared", "ITQShared"); } public string PinvokeType (string str) |