LibEngsas
ewidgetdesignerplugin.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2010 - 2012 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 #ifndef EWIDGETDESIGNERPLUGIN_H
21 #define EWIDGETDESIGNERPLUGIN_H
22 
23 #include <QObject>
24 #include <QDesignerCustomWidgetInterface>
25 
29 class EWidgetDesignerPlugin : public QObject, public QDesignerCustomWidgetInterface
30 {
31  Q_OBJECT
32  Q_INTERFACES(QDesignerCustomWidgetInterface)
33  public:
34  EWidgetDesignerPlugin(QObject *parent = 0);
35 
36  QString name() const;
37  QString group() const;
38  QString toolTip() const;
39  QString whatsThis() const;
40  QString includeFile() const;
41  QIcon icon() const;
42  bool isContainer() const;
43  QWidget *createWidget(QWidget *parent);
44  QString domXml() const;
45 // codeTemplate() const;
46  void initialize(QDesignerFormEditorInterface *core);
47  bool isInitialized() const;
48 
49  private:
51 };
52 
53 #endif // EWIDGETDESIGNERPLUGIN_H
QIcon icon() const
Definition: ewidgetdesignerplugin.cpp:56
bool isInitialized() const
Definition: ewidgetdesignerplugin.cpp:94
QString whatsThis() const
Definition: ewidgetdesignerplugin.cpp:46
QWidget * createWidget(QWidget *parent)
Definition: ewidgetdesignerplugin.cpp:66
bool initialized
Definition: ewidgetdesignerplugin.h:50
void initialize(QDesignerFormEditorInterface *core)
Definition: ewidgetdesignerplugin.cpp:85
bool isContainer() const
Definition: ewidgetdesignerplugin.cpp:61
QString includeFile() const
Definition: ewidgetdesignerplugin.cpp:51
QString toolTip() const
Definition: ewidgetdesignerplugin.cpp:41
EWidgetDesignerPlugin(QObject *parent=0)
Definition: ewidgetdesignerplugin.cpp:25
EWidget QtDesigner object.
Definition: ewidgetdesignerplugin.h:29
QString name() const
Definition: ewidgetdesignerplugin.cpp:31
QString domXml() const
Definition: ewidgetdesignerplugin.cpp:71
QString group() const
Definition: ewidgetdesignerplugin.cpp:36