/* * This is the interface of the Qt Designer plugin. * * 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. */ #ifndef _PLUGINLOADER_H #define _PLUGINLOADER_H #include #include #include #include class QDesignerCustomWidgetInterface; class PyCustomWidgets : public QObject, public QDesignerCustomWidgetCollectionInterface { Q_OBJECT Q_INTERFACES(QDesignerCustomWidgetCollectionInterface) public: PyCustomWidgets(QObject *parent = 0); virtual QList customWidgets() const; private: static PyObject *getModuleAttr(char *module, char *attr); QList widgets; }; #endif