// qextensionmanager.sip generated by MetaSIP on Fri Sep 28 17:07:47 2007 // // This file is part of the QtDesigner Python extension module. // // Copyright (c) 2007 // Phil Thompson // // This file is part of PyQt. // // This copy of PyQt is free software; you can redistribute it and/or modify it // under the terms of the GNU General Public License version 2 as published by // the Free Software Foundation and appearing in the file LICENSE included in the // packaging of this file. // // PyQt is supplied in the hope that it will be useful, but WITHOUT ANY // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more // details. // // You should have received a copy of the GNU General Public License along with // PyQt; see the file LICENSE. If not, write to the Free Software Foundation, // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. class QExtensionManager : QObject, QAbstractExtensionManager { %TypeHeaderCode #include %End %ConvertToSubClassCode static struct class_graph { char *name; sipWrapperType **type; int yes, no; } graph[] = { {sipName_QPyDesignerPropertySheetExtension, &sipClass_QPyDesignerPropertySheetExtension, -1, 1}, {sipName_QDesignerWidgetBoxInterface, &sipClass_QDesignerWidgetBoxInterface, -1, 2}, {sipName_QDesignerFormWindowManagerInterface, &sipClass_QDesignerFormWindowManagerInterface, -1, 3}, {sipName_QPyDesignerTaskMenuExtension, &sipClass_QPyDesignerTaskMenuExtension, -1, 4}, {sipName_QPyDesignerCustomWidgetCollectionPlugin, &sipClass_QPyDesignerCustomWidgetCollectionPlugin, -1, 5}, {sipName_QExtensionManager, &sipClass_QExtensionManager, -1, 6}, {sipName_QPyDesignerContainerExtension, &sipClass_QPyDesignerContainerExtension, -1, 7}, {sipName_QDesignerActionEditorInterface, &sipClass_QDesignerActionEditorInterface, -1, 8}, {sipName_QPyDesignerCustomWidgetPlugin, &sipClass_QPyDesignerCustomWidgetPlugin, -1, 9}, {sipName_QDesignerFormWindowInterface, &sipClass_QDesignerFormWindowInterface, -1, 10}, {sipName_QDesignerObjectInspectorInterface, &sipClass_QDesignerObjectInspectorInterface, -1, 11}, {sipName_QDesignerPropertyEditorInterface, &sipClass_QDesignerPropertyEditorInterface, -1, 12}, {sipName_QDesignerFormEditorInterface, &sipClass_QDesignerFormEditorInterface, -1, 13}, {sipName_QExtensionFactory, &sipClass_QExtensionFactory, -1, 14}, {sipName_QPyDesignerMemberSheetExtension, &sipClass_QPyDesignerMemberSheetExtension, -1, -1}, }; int i = 0; sipClass = NULL; do { struct class_graph *cg = &graph[i]; if (cg->name != NULL && sipCpp->inherits(cg->name)) { sipClass = *cg->type; i = cg->yes; } else i = cg->no; } while (i >= 0); %End public: QExtensionManager(QObject *parent /TransferThis/ = 0); virtual ~QExtensionManager(); virtual void registerExtensions(QAbstractExtensionFactory *factory, const QString &iid = QString()); virtual void unregisterExtensions(QAbstractExtensionFactory *factory, const QString &iid = QString()); virtual QObject *extension(QObject *object, const QString &iid) const; };