Test change - can I push OK?
[kdeedu-porting.git] / kalzium / src / tools / moleculewidgetplugin.h
blob1b2b392a0e5d02ab86698bf8c7bf0cea39679e46
1 #ifndef MOLECULEWIDGETPLUGIN_H
2 #define MOLECULEWIDGETPLUGIN_H
3 /***************************************************************************
4 * Copyright (C) 2007 by Carsten Niehaus *
5 * cniehaus@kde.org *
6 * *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the *
19 * Free Software Foundation, Inc., *
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
21 ***************************************************************************/
22 #include <QDesignerCustomWidgetInterface>
24 class MoleculeWidgetPlugin : public QObject,
25 public QDesignerCustomWidgetInterface
27 Q_OBJECT
28 Q_INTERFACES( QDesignerCustomWidgetInterface )
30 public:
31 MoleculeWidgetPlugin( QObject *parent = 0 );
33 bool isContainer() const;
34 bool isInitialized() const;
35 QIcon icon() const;
36 QString domXml() const;
37 QString group() const;
38 QString includeFile() const;
39 QString name() const;
40 QString toolTip() const;
41 QString whatsThis() const;
42 QWidget *createWidget( QWidget *parent );
43 void initialize( QDesignerFormEditorInterface *core );
45 private:
46 bool initialized;
48 #endif // MOLECULEWIDGETPLUGIN_H