2015-12-10 05:06:13 +02:00
|
|
|
#!/usr/bin/python2
|
|
|
|
|
|
|
|
import sys, os, re
|
|
|
|
|
|
|
|
incmap = {
|
|
|
|
'QtCore': {
|
2016-08-20 18:12:01 +00:00
|
|
|
'QtGlobal': 'qglobal.h',
|
2016-08-23 20:33:21 +00:00
|
|
|
'QModelIndex': 'qabstractitemmodel.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QModelIndexList': 'qabstractitemmodel.h',
|
|
|
|
'QGenericArgument': 'qobjectdefs.h',
|
|
|
|
'QProcessEnvironment': 'qprocess.h',
|
|
|
|
'QMutableHashIterator': 'qhash.h',
|
2016-10-30 02:50:48 +00:00
|
|
|
'QLatin1Literal': 'qstringbuilder.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QObjectList': 'qobject.h',
|
|
|
|
'QMapIterator': 'qmap.h',
|
|
|
|
'QMutexLocker': 'qmutex.h',
|
2016-08-22 21:29:12 +00:00
|
|
|
'QScopedArrayPointer': 'qscopedpointer.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QWeakPointer': 'qsharedpointer.h',
|
|
|
|
'QArgument': 'qobjectdefs.h',
|
|
|
|
'QByteRef': 'qbytearray.h',
|
|
|
|
'QChildEvent': 'qcoreevent.h',
|
|
|
|
'QMultiMap': 'qmap.h',
|
|
|
|
'QMetaEnum': 'qmetaobject.h',
|
|
|
|
'QLatin1String': 'qstring.h',
|
|
|
|
'QPointF': 'qpoint.h',
|
|
|
|
'QTimerEvent': 'qcoreevent.h',
|
|
|
|
'QExplicitlySharedDataPointer': 'qsharedpointer.h',
|
|
|
|
'QAtomicPointer': 'qatomic.h',
|
|
|
|
'QReadLocker': 'qreadwritelock.h',
|
|
|
|
'QWriteLocker': 'qreadwritelock.h',
|
|
|
|
'QAtomicInt': 'qatomic.h',
|
|
|
|
'QRectF': 'qrect.h',
|
|
|
|
'QSizeF': 'qsize.h',
|
2016-08-22 19:29:11 +00:00
|
|
|
'QLineF': 'qline.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QBitRef': 'qbitarray.h',
|
|
|
|
'QtAlgorithms': 'qalgorithms.h',
|
|
|
|
'QAbstractListModel': 'qabstractitemmodel.h',
|
|
|
|
'QTime': 'qdatetime.h',
|
|
|
|
'QDate': 'qdatetime.h',
|
|
|
|
'QMetaProperty': 'qmetaobject.h',
|
|
|
|
'QMutableListIterator': 'qlist.h',
|
|
|
|
'QSharedDataPointer': 'qshareddata.h',
|
|
|
|
'QMetaMethod': 'qmetaobject.h',
|
|
|
|
'QLatin1Char': 'qchar.h',
|
|
|
|
'QtPlugin': 'qplugin.h',
|
|
|
|
'QCharRef': 'qstring.h',
|
|
|
|
'QBool': 'qglobal.h',
|
|
|
|
'QMutableStringListIterator': 'qstringlist.h',
|
|
|
|
'QtDebug': 'qdebug.h',
|
|
|
|
'QtEndian': 'qendian.h',
|
|
|
|
'QBasicAtomicInt': 'qbasicatomic.h',
|
|
|
|
'Q_PID': 'qprocess.h',
|
|
|
|
'QMetaClassInfo': 'qmetaobject.h',
|
|
|
|
'QFlags': 'qglobal.h',
|
|
|
|
'QPersistentModelIndex': 'qabstractitemmodel.h',
|
|
|
|
'QSysInfo': 'qglobal.h',
|
|
|
|
'QMutableVectorIterator': 'qvector.h',
|
|
|
|
'Qt': 'qnamespace.h',
|
|
|
|
'QAbstractTableModel': 'qabstractitemmodel.h',
|
|
|
|
'QHashIterator': 'qhash.h',
|
2016-08-20 18:12:01 +00:00
|
|
|
'QMultiHash': 'qhash.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QMutableMapIterator': 'qmap.h',
|
|
|
|
'QListIterator': 'qlist.h',
|
|
|
|
'QVariantMap': 'qvariant.h',
|
2016-08-20 18:12:01 +00:00
|
|
|
'QVariantList': 'qvariant.h',
|
|
|
|
'QVariantHash': 'qvariant.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QFileInfoList': 'qfileinfo.h',
|
|
|
|
'QGlobalStatic': 'qglobal.h',
|
|
|
|
'QMutableSetIterator': 'qset.h',
|
|
|
|
'QDynamicPropertyChangeEvent': 'qcoreevent.h',
|
|
|
|
'QMutableLinkedListIterator': 'qlist.h',
|
2016-08-20 18:12:01 +00:00
|
|
|
'QXmlStreamAttributes': 'qxmlstream.h',
|
|
|
|
'QXmlStreamEntityDeclaration': 'qxmlstream.h',
|
|
|
|
'QXmlStreamEntityDeclarations': 'qxmlstream.h',
|
|
|
|
'QXmlStreamEntityResolver': 'qxmlstream.h',
|
|
|
|
'QXmlStreamNamespaceDeclaration': 'qxmlstream.h',
|
|
|
|
'QXmlStreamNamespaceDeclarations': 'qxmlstream.h',
|
|
|
|
'QXmlStreamNotationDeclaration': 'qxmlstream.h',
|
|
|
|
'QXmlStreamNotationDeclarations': 'qxmlstream.h',
|
|
|
|
'QXmlStreamReader': 'qxmlstream.h',
|
|
|
|
'QXmlStreamWriter': 'qxmlstream.h',
|
|
|
|
'QXmlStreamAttribute': 'qxmlstream.h',
|
2017-05-09 06:17:48 +00:00
|
|
|
'QTextDecoder': 'qtextcodec.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
},
|
|
|
|
'QtGui': {
|
2016-08-20 18:12:01 +00:00
|
|
|
'QHBoxLayout': 'qboxlayout.h',
|
|
|
|
'QVBoxLayout': 'qboxlayout.h',
|
|
|
|
'QSpacerItem': 'qlayoutitem.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QTextTableCell': 'qtexttable.h',
|
|
|
|
'QPainterPathStroker': 'qpainterpath.h',
|
|
|
|
'QGraphicsPolygonItem': 'qgraphicsitem.h',
|
2017-08-04 07:35:10 +00:00
|
|
|
'QGraphicsEllipseItem': 'qgraphicsitem.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QSplitterHandle': 'qsplitter.h',
|
|
|
|
'QGraphicsDropShadowEffect': 'qgraphicseffect.h',
|
|
|
|
'QGraphicsPixmapItem': 'qgraphicsitem.h',
|
|
|
|
'QGraphicsRectItem': 'qgraphicsitem.h',
|
|
|
|
'QGraphicsScale': 'qgraphicstransform.h',
|
|
|
|
'QGraphicsItemGroup': 'qgraphicsitem.h',
|
|
|
|
'QGraphicsLineItem': 'qgraphicsitem.h',
|
|
|
|
'QGraphicsPathItem': 'qgraphicsitem.h',
|
|
|
|
'QConicalGradient': 'qbrush.h',
|
|
|
|
'QPlainTextDocumentLayout': 'qplaintextedit.h',
|
|
|
|
'QGraphicsOpacityEffect': 'qgraphicseffect.h',
|
|
|
|
'QPinchGesture': 'qgesture.h',
|
|
|
|
'QGestureEvent': 'qevent.h',
|
|
|
|
'QIconDragEvent': 'qevent.h',
|
|
|
|
'QIconEngineFactoryInterface': 'qiconengineplugin.h',
|
|
|
|
'QIconEngineFactoryInterfaceV2': 'qiconengineplugin.h',
|
|
|
|
'QIconEnginePluginV2': 'qiconengineplugin.h',
|
|
|
|
'QImageIOHandlerFactoryInterface': 'qimageiohandler.h',
|
|
|
|
'QImageTextKeyLang': 'qimage.h',
|
|
|
|
'QInputContextFactoryInterface': 'qinputcontextplugin.h',
|
|
|
|
'QInputMethodEvent': 'qevent.h',
|
|
|
|
'QItemEditorCreator': 'qitemeditorfactory.h',
|
|
|
|
'QItemEditorCreatorBase': 'qitemeditorfactory.h',
|
|
|
|
'QGraphicsSceneHoverEvent': 'qgraphicssceneevent.h',
|
|
|
|
'QGraphicsSceneResizeEvent': 'qgraphicssceneevent.h',
|
|
|
|
'QGraphicsSceneDragDropEvent': 'qgraphicssceneevent.h',
|
|
|
|
'QGraphicsSceneContextMenuEvent': 'qgraphicssceneevent.h',
|
|
|
|
'QGraphicsSceneHelpEvent': 'qgraphicssceneevent.h',
|
|
|
|
'QGraphicsSceneMoveEvent': 'qgraphicssceneevent.h',
|
|
|
|
'QGraphicsTextItem': 'qgraphicsitem.h',
|
|
|
|
'QGraphicsSimpleTextItem': 'qgraphicsitem.h',
|
|
|
|
'QGraphicsRotation': 'qgraphicstransform.h',
|
|
|
|
'QGraphicsObject': 'qgraphicsitem.h',
|
|
|
|
'QIntValidator': 'qvalidator.h',
|
|
|
|
'QPolygonF': 'qpolygon.h',
|
|
|
|
'QGraphicsSceneWheelEvent': 'qgraphicssceneevent.h',
|
|
|
|
'QGraphicsSceneMouseEvent': 'qgraphicssceneevent.h',
|
|
|
|
'QResizeEvent': 'qevent.h',
|
|
|
|
'QMouseEvent': 'qevent.h',
|
|
|
|
'QKeyEvent': 'qevent.h',
|
|
|
|
'QWheelEvent': 'qevent.h',
|
|
|
|
'QDragEnterEvent': 'qevent.h',
|
|
|
|
'QWindowStateChangeEvent': 'qevent.h',
|
|
|
|
'QtEvents': 'qevent.h',
|
|
|
|
'QTextLine': 'qtextlayout.h',
|
|
|
|
'QTextFrame': 'qtextobject.h',
|
|
|
|
'QTextCharFormat': 'qtextformat.h',
|
2016-10-04 19:31:37 +00:00
|
|
|
'QTextBlockFormat': 'qtextformat.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QUndoCommand': 'qundostack.h',
|
|
|
|
'QTouchEvent': 'qevent.h',
|
|
|
|
'QDropEvent': 'qevent.h',
|
|
|
|
'QMoveEvent': 'qevent.h',
|
|
|
|
'QStyleOptionGroupBox': 'qstyleoption.h',
|
|
|
|
'QStyleOptionComboBox': 'qstyleoption.h',
|
|
|
|
'QStyleOptionSpinBox': 'qstyleoption.h',
|
|
|
|
'QStyleOptionComplex': 'qstyleoption.h',
|
|
|
|
'QStyleOptionButton': 'qstyleoption.h',
|
|
|
|
'QStyleOptionFrame': 'qstyleoption.h',
|
|
|
|
'QStyleOptionFrameV2': 'qstyleoption.h',
|
|
|
|
'QStyleOptionFrameV3': 'qstyleoption.h',
|
2017-05-09 06:42:51 +00:00
|
|
|
'QStyleOptionProgressBar': 'qstyleoption.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QStyleOptionProgressBarV2': 'qstyleoption.h',
|
|
|
|
'QStyleOptionToolBar': 'qstyleoption.h',
|
|
|
|
'QStyleOptionSlider': 'qstyleoption.h',
|
|
|
|
'QStyleOptionToolButton': 'qstyleoption.h',
|
|
|
|
'QStyleOptionRubberBand': 'qstyleoption.h',
|
2017-05-09 06:45:25 +00:00
|
|
|
'QStyleOptionTab': 'qstyleoption.h',
|
|
|
|
'QStyleOptionTabV2': 'qstyleoption.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QStyleOptionTabV3': 'qstyleoption.h',
|
|
|
|
'QStyleOptionTabBarBase': 'qstyleoption.h',
|
|
|
|
'QTextListFormat': 'qtextformat.h',
|
|
|
|
'QGradient': 'qbrush.h',
|
|
|
|
'QFontMetricsF': 'qfontmetrics.h',
|
|
|
|
'QStyleOptionTitleBar': 'qstyleoption.h',
|
|
|
|
'QStyleOptionFocusRect': 'qstyleoption.h',
|
|
|
|
'QWidgetItem': 'qlayoutitem.h',
|
|
|
|
'QShortcutEvent': 'qevent.h',
|
|
|
|
'QActionEvent': 'qevent.h',
|
|
|
|
'QStandardItem': 'qstandarditemmodel.h',
|
|
|
|
'QAbstractUndoItem': 'qtextdocument.h',
|
|
|
|
'QWidgetList': 'qwindowdefs.h',
|
|
|
|
'QListWidgetItem': 'qlistwidget.h',
|
|
|
|
'QCloseEvent': 'qevent.h',
|
|
|
|
'QHideEvent': 'qevent.h',
|
|
|
|
'QShowEvent': 'qevent.h',
|
|
|
|
'QDragMoveEvent': 'qevent.h',
|
|
|
|
'QHelpEvent': 'qevent.h',
|
|
|
|
'QDoubleValidator': 'qvalidator.h',
|
|
|
|
'QTreeWidgetItem': 'qtreewidget.h',
|
|
|
|
'QTextTableFormat': 'qtextformat.h',
|
|
|
|
'QIconEngineV2': 'qiconengine.h',
|
|
|
|
'QItemSelection': 'qitemselectionmodel.h',
|
|
|
|
'QContextMenuEvent': 'qevent.h',
|
|
|
|
'QPaintEvent': 'qevent.h',
|
|
|
|
'QHoverEvent': 'qevent.h',
|
|
|
|
'QInputEvent': 'qevent.h',
|
|
|
|
'QDragLeaveEvent': 'qevent.h',
|
|
|
|
'QFileOpenEvent': 'qevent.h',
|
|
|
|
'QAbstractGraphicsShapeItem': 'qgraphicsitem.h',
|
|
|
|
'QItemSelectionRange': 'qitemselectionmodel.h',
|
|
|
|
'QImageIOPlugin': 'qimageiohandler.h',
|
|
|
|
'QFocusEvent': 'qevent.h',
|
|
|
|
'QLinearGradient': 'qbrush.h',
|
2016-08-20 18:12:01 +00:00
|
|
|
'QDoubleSpinBox': 'qspinbox.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QStyleOptionViewItem': 'qstyleoption.h',
|
|
|
|
'QStyleOptionViewItemV2': 'qstyleoption.h',
|
|
|
|
'QStyleOptionViewItemV3': 'qstyleoption.h',
|
|
|
|
'QStyleOptionViewItemV4': 'qstyleoption.h',
|
|
|
|
'QStyleOptionHeader': 'qstyleoption.h',
|
|
|
|
'QTimeEdit': 'qdatetimeedit.h',
|
|
|
|
'QStyleOptionMenuItem': 'qstyleoption.h',
|
|
|
|
'QStyleOptionGraphicsItem': 'qstyleoption.h',
|
|
|
|
'QTextBlock': 'qtextobject.h',
|
|
|
|
'QTableWidgetItem': 'qtablewidget.h',
|
|
|
|
'QDateEdit': 'qdatetimeedit.h',
|
|
|
|
'QWizardPage': 'qwizard.h',
|
|
|
|
'QRadialGradient': 'qbrush.h',
|
|
|
|
'QRegExpValidator': 'qvalidator.h',
|
|
|
|
'QAccessible2Interface': 'qaccessible2.h',
|
|
|
|
'QAccessibleActionInterface': 'qaccessible2.h',
|
|
|
|
'QAccessibleApplication': 'qaccessibleobject.h',
|
|
|
|
'QAccessibleBridgeFactoryInterface': 'qaccessiblebridge.h',
|
|
|
|
'QAccessibleBridgePlugin': 'qaccessiblebridge.h',
|
|
|
|
'QAccessibleEditableTextInterface': 'qaccessible2.h',
|
|
|
|
'QAccessibleFactoryInterface': 'qaccessibleplugin.h',
|
|
|
|
'QAccessibleImageInterface': 'qaccessible2.h',
|
|
|
|
'QAccessibleEvent': 'qaccessible.h',
|
|
|
|
'QAccessibleInterface': 'qaccessible.h',
|
|
|
|
'QAccessibleInterfaceEx': 'qaccessible.h',
|
|
|
|
'QAccessibleObjectEx': 'qaccessibleobject.h',
|
|
|
|
'QAccessibleSimpleEditableTextInterface': 'qaccessible2.h',
|
|
|
|
'QAccessibleTable2CellInterface': 'qaccessible2.h',
|
|
|
|
'QAccessibleTable2Interface': 'qaccessible2.h',
|
|
|
|
'QAccessibleTableInterface': 'qaccessible2.h',
|
2016-02-03 14:55:43 +02:00
|
|
|
'QTextLength': 'qtextformat.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
},
|
|
|
|
'QtDBus': {
|
|
|
|
'QDBusPendingCallWatcher': 'qdbuspendingcall.h',
|
|
|
|
'QDBusObjectPath': 'qdbusextratypes.h',
|
|
|
|
'QDBusAbstractInterfaceBase': 'qdbusabstractinterface.h',
|
|
|
|
'QDBusPendingReplyData': 'qdbuspendingreply.h',
|
|
|
|
'QDBusSignature': 'qdbusextratypes.h',
|
|
|
|
'QDBusVariant': 'qdbusextratypes.h',
|
|
|
|
},
|
|
|
|
'QtXml': {
|
2015-12-12 21:55:33 +02:00
|
|
|
'QDomAttr': 'qdom.h',
|
|
|
|
'QDomDocument': 'qdom.h',
|
|
|
|
'QDomElement': 'qdom.h',
|
|
|
|
'QDomNode': 'qdom.h',
|
2016-08-20 18:12:01 +00:00
|
|
|
'QDomNodeList': 'qdom.h',
|
|
|
|
'QDomCDATASection': 'qdom.h',
|
|
|
|
'QDomCharacterData': 'qdom.h',
|
|
|
|
'QDomComment': 'qdom.h',
|
|
|
|
'QDomDocumentFragment': 'qdom.h',
|
|
|
|
'QDomDocumentType': 'qdom.h',
|
|
|
|
'QDomEntity': 'qdom.h',
|
|
|
|
'QDomEntityReference': 'qdom.h',
|
|
|
|
'QDomImplementation': 'qdom.h',
|
|
|
|
'QDomNamedNodeMap': 'qdom.h',
|
|
|
|
'QDomNotation': 'qdom.h',
|
|
|
|
'QDomProcessingInstruction': 'qdom.h',
|
|
|
|
'QDomText': 'qdom.h',
|
|
|
|
'QXmlDeclHandler': 'qxml.h',
|
|
|
|
'QXmlDTDHandler': 'qxml.h',
|
|
|
|
'QXmlEntityResolver': 'qxml.h',
|
|
|
|
'QXmlErrorHandler': 'qxml.h',
|
|
|
|
'QXmlLexicalHandler': 'qxml.h',
|
|
|
|
'QXmlLocator': 'qxml.h',
|
|
|
|
'QXmlNamespaceSupport': 'qxml.h',
|
|
|
|
'QXmlReader': 'qxml.h',
|
|
|
|
'QXmlSimpleReader': 'qxml.h',
|
2015-12-12 21:55:33 +02:00
|
|
|
'QXmlAttributes': 'qxml.h',
|
|
|
|
'QXmlDefaultHandler': 'qxml.h',
|
|
|
|
'QXmlParseException': 'qxml.h',
|
|
|
|
'QXmlContentHandler': 'qxml.h',
|
|
|
|
'QXmlInputSource': 'qxml.h',
|
2016-10-25 23:29:24 +00:00
|
|
|
'QXmlDefaultHandler': 'qxml.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
},
|
|
|
|
'QtDeclarative': {
|
|
|
|
'QDeclarativeListProperty': 'qdeclarativelist.h',
|
|
|
|
},
|
|
|
|
'QtNetwork': {
|
|
|
|
'QNetworkProxyFactory': 'qnetworkproxy.h',
|
|
|
|
'QNetworkProxyQuery': 'qnetworkproxy.h',
|
|
|
|
'QHttpRequestHeader': 'qhttp.h',
|
|
|
|
'QHttpResponseHeader': 'qhttp.h',
|
|
|
|
'QHttpHeader': 'qhttp.h',
|
2016-08-20 18:12:01 +00:00
|
|
|
'QHttpPart': 'qhttpmultipart.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
'QNetworkConfigurationManager': 'qnetworkconfigmanager.h',
|
2015-12-12 21:55:33 +02:00
|
|
|
'QNetworkAddressEntry': 'qnetworkinterface.h',
|
2016-02-01 20:21:48 +02:00
|
|
|
'QNetworkCacheMetaData': 'qabstractnetworkcache.h',
|
2015-12-10 05:06:13 +02:00
|
|
|
},
|
|
|
|
'QtTest': {
|
|
|
|
'QEventSizeOfChecker': 'qtestspontaneevent.h',
|
|
|
|
'QSpontaneKeyEvent': 'qtestspontaneevent.h',
|
|
|
|
'QTestAccessibility': 'qtestaccessible.h',
|
|
|
|
'QTestAccessibilityEvent': 'qtestaccessible.h',
|
|
|
|
'QTestDelayEvent': 'qtestevent.h',
|
|
|
|
'QTestEventList': 'qtestevent.h',
|
|
|
|
'QTestKeyClicksEvent': 'qtestevent.h',
|
|
|
|
'QTestKeyEvent': 'qtestevent.h',
|
|
|
|
'QTestMouseEvent': 'qtestevent.h',
|
|
|
|
'QtTestGui': 'qtest_gui.h',
|
|
|
|
},
|
|
|
|
'QtDesigner': {
|
|
|
|
'QDesignerWidgetBoxInterface': 'abstractwidgetbox.h',
|
|
|
|
'QDesignerPropertyEditorInterface': 'abstractpropertyeditor.h',
|
|
|
|
'QDesignerFormWindowManagerInterface': 'abstractformwindowmanager.h',
|
|
|
|
'QDesignerMetaDataBaseInterface': 'abstractmetadatabase.h',
|
|
|
|
'QDesignerWidgetDataBaseInterface': 'abstractwidgetdatabase.h',
|
|
|
|
'QDesignerWidgetFactoryInterface': 'abstractwidgetfactory.h',
|
|
|
|
'QDesignerObjectInspectorInterface': 'abstractobjectinspector.h',
|
|
|
|
'QDesignerIntegrationInterface': 'abstractintegration.h',
|
|
|
|
'QDesignerFormEditorInterface': 'abstractformeditor.h',
|
|
|
|
'QDesignerPromotionInterface': 'abstractpromotioninterface.h',
|
|
|
|
'QDesignerFormWindowInterface': 'abstractformwindow.h',
|
|
|
|
'QDesignerLayoutDecorationExtension': 'layoutdecoration.h',
|
|
|
|
'QDesignerBrushManagerInterface': 'abstractbrushmanager.h',
|
|
|
|
'QAbstractFormBuilder': 'abstractformbuilder.h',
|
|
|
|
'QDesignerIconCacheInterface': 'abstracticoncache.h',
|
|
|
|
'QDesignerPropertySheetExtension': 'propertysheet.h',
|
|
|
|
'QDesignerContainerExtension': 'container.h',
|
|
|
|
'QDesignerActionEditorInterface': 'abstractactioneditor.h',
|
|
|
|
'QDesignerCustomWidgetInterface': 'customwidget.h',
|
|
|
|
'QDesignerLanguageExtension': 'abstractlanguage.h',
|
|
|
|
'QDesignerResourceBrowserInterface': 'abstractresourcebrowser.h',
|
|
|
|
'QDesignerMemberSheetExtension': 'membersheet.h',
|
|
|
|
'QDesignerTaskMenuExtension': 'taskmenu.h',
|
|
|
|
'QDesignerFormWindowCursorInterface': 'abstractformwindowcursor.h',
|
|
|
|
'QDesignerWidgetDataBaseItemInterface': 'abstractwidgetdatabase.h',
|
|
|
|
'QDesignerCustomWidgetCollectionInterface': 'customwidget.h',
|
|
|
|
'QDesignerDynamicPropertySheetExtension': 'dynamicpropertysheet.h',
|
|
|
|
'QDesignerFormEditorPluginInterface': 'abstractformeditorplugin.h',
|
|
|
|
'QDesignerFormWindowToolInterface': 'abstractformwindowtool.h',
|
|
|
|
'QDesignerExtraInfoExtension': 'extrainfo.h',
|
|
|
|
'QExtensionFactory': 'default_extensionfactory.h',
|
|
|
|
'QDesignerMetaDataBaseItemInterface': 'abstractmetadatabase.h',
|
|
|
|
'QDesignerDnDItemInterface': 'abstractdnditem.h',
|
|
|
|
'QDesignerComponents': 'qdesigner_components.h',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
if '--printmap' in sys.argv:
|
2016-08-20 18:12:01 +00:00
|
|
|
for component in sorted(incmap):
|
2015-12-10 05:06:13 +02:00
|
|
|
for key in incmap[component]:
|
|
|
|
print('katie_generate_obsolete(%s.h %s %s)' % (key.lower(), component, incmap[component][key]))
|
|
|
|
sys.exit(0)
|
|
|
|
|
|
|
|
cppfiles = []
|
|
|
|
for root, dirs, files in os.walk(os.curdir):
|
|
|
|
for f in files:
|
2016-09-08 23:11:19 +00:00
|
|
|
if f.endswith(('.cpp', '.cc', '.hpp', '.h')):
|
2015-12-10 05:06:13 +02:00
|
|
|
cppfiles.append('%s/%s' % (root, f))
|
|
|
|
|
|
|
|
for cpp in cppfiles:
|
|
|
|
cpp = os.path.realpath(cpp)
|
|
|
|
cppbase = os.path.basename(cpp)
|
|
|
|
with open(cpp, 'r') as f:
|
|
|
|
cppcontent = f.read()
|
|
|
|
replaced = []
|
|
|
|
for key in incmap:
|
|
|
|
for key2 in incmap[key]:
|
|
|
|
inc1 = '%s/%s' % (key, key2)
|
|
|
|
inc2 = key2
|
|
|
|
replacement = '#include <%s/%s>' % (key, incmap[key][key2])
|
|
|
|
# print(inc1, inc2, replacement)
|
|
|
|
for match in re.findall('(#include [<|"](?:%s|%s)[>|"])' % (inc1, inc2), cppcontent):
|
|
|
|
with open(cpp, 'w') as f:
|
|
|
|
if replacement in replaced:
|
|
|
|
replacement = ""
|
|
|
|
print('removing inclusion of %s in %s' % (match, cpp))
|
|
|
|
else:
|
|
|
|
print('adjusting inclusion of %s with %s in %s' % (match, replacement, cpp))
|
|
|
|
cppcontent = cppcontent.replace(match, replacement)
|
|
|
|
f.write(cppcontent)
|
|
|
|
replaced.append(replacement)
|