designer/RangedSliderPlugin.h

changeset 94
380b1331ad2e
equal deleted inserted replaced
93:4cfd0dd17fa5 94:380b1331ad2e
1 /*
2 * RangedSliderPlugin.h is part of bmsapp.
3 *
4 * bmsapp is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8
9 * bmsapp 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
12 * GNU General Public License for more details.
13
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef _RANGEDSLIDERPLUGIN_H
19 #define _RANGEDSLIDERPLUGIN_H
20
21 #include <QObject>
22 #include <QString>
23 #include <QWidget>
24 #include <QIcon>
25 #include <QtUiPlugin/QDesignerCustomWidgetInterface>
26
27 class RangedSliderPlugin;
28
29 class RangedSliderPlugin : public QObject, public QDesignerCustomWidgetInterface
30 {
31 Q_OBJECT
32 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")
33 Q_INTERFACES(QDesignerCustomWidgetInterface)
34
35 public:
36 RangedSliderPlugin(QObject* parent = nullptr);
37
38 bool isContainer() const;
39 bool isInitialized() const;
40 QIcon icon() const;
41 QString domXml() const;
42 QString group() const;
43 QString includeFile() const;
44 QString name() const;
45 QString toolTip() const;
46 QString whatsThis() const;
47 QWidget *createWidget(QWidget *parent);
48 void initialize(QDesignerFormEditorInterface *core);
49
50 private:
51 bool initialized = false;
52 };
53
54 #endif

mercurial