|
1 /*************************************************************************** |
|
2 * Copyright (C) 2006-2008 by Tomasz Ziobrowski * |
|
3 * http://www.3electrons.com * |
|
4 * e-mail: t.ziobrowski@3electrons.com * |
|
5 * * |
|
6 * Adapted for the bmsapp project by Michiel Broek, 2022. * |
|
7 * * |
|
8 * This program is free software; you can redistribute it and/or modify * |
|
9 * it under the terms of the GNU General Public License as published by * |
|
10 * the Free Software Foundation; either version 2 of the License, or * |
|
11 * (at your option) any later version. * |
|
12 * * |
|
13 * This program is distributed in the hope that it will be useful, * |
|
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
|
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
|
16 * GNU General Public License for more details. * |
|
17 * * |
|
18 * You should have received a copy of the GNU General Public License * |
|
19 * along with this program; if not, write to the * |
|
20 * Free Software Foundation, Inc., * |
|
21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * |
|
22 ***************************************************************************/ |
|
23 |
|
24 #ifndef _MANOMETER_PLUGIN_H |
|
25 #define _MANOMETER_PLUGIN_H |
|
26 |
|
27 #include <QObject> |
|
28 #include <QString> |
|
29 #include <QWidget> |
|
30 #include <QIcon> |
|
31 #include <QtUiPlugin/QDesignerCustomWidgetInterface> |
|
32 |
|
33 class ManoMeterPlugin; |
|
34 |
|
35 class ManoMeterPlugin : public QObject, public QDesignerCustomWidgetInterface |
|
36 { |
|
37 Q_OBJECT |
|
38 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface") |
|
39 Q_INTERFACES(QDesignerCustomWidgetInterface) |
|
40 |
|
41 public: |
|
42 ManoMeterPlugin(QObject *parent = 0); |
|
43 bool isContainer() const; |
|
44 bool isInitialized() const; |
|
45 QIcon icon() const; |
|
46 QString domXml() const; |
|
47 QString group() const; |
|
48 QString includeFile() const; |
|
49 QString name() const; |
|
50 QString toolTip() const; |
|
51 QString whatsThis() const; |
|
52 QWidget *createWidget(QWidget *parent); |
|
53 void initialize(QDesignerFormEditorInterface *core); |
|
54 |
|
55 private: |
|
56 bool initialized = false; |
|
57 }; |
|
58 |
|
59 #endif |