File indexing completed on 2024-04-21 03:41:40

0001 /*
0002     SPDX-FileCopyrightText: 2007 Carsten Niehaus <cniehaus@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef MOLECULEWIDGETPLUGIN_H
0008 #define MOLECULEWIDGETPLUGIN_H
0009 
0010 #include <QDesignerCustomWidgetInterface>
0011 
0012 class MoleculeWidgetPlugin : public QObject, public QDesignerCustomWidgetInterface
0013 {
0014     Q_OBJECT
0015     Q_INTERFACES(QDesignerCustomWidgetInterface)
0016 
0017 public:
0018     explicit MoleculeWidgetPlugin(QObject *parent = nullptr);
0019 
0020     bool isContainer() const;
0021     bool isInitialized() const;
0022     QIcon icon() const;
0023     QString domXml() const;
0024     QString group() const;
0025     QString includeFile() const;
0026     QString name() const;
0027     QString toolTip() const;
0028     QString whatsThis() const;
0029     QWidget *createWidget(QWidget *parent);
0030     void initialize(QDesignerFormEditorInterface *core);
0031 
0032 private:
0033     bool initialized;
0034 };
0035 
0036 #endif // MOLECULEWIDGETPLUGIN_H