itom
Loading...
Searching...
No Matches
penCreatorButtonFactory.h
1/* ********************************************************************
2itom measurement system
3URL: http://www.uni-stuttgart.de/ito
4Copyright (C) 2020, Institut für Technische Optik (ITO),
5Universität Stuttgart, Germany
6
7This file is part of itom.
8
9itom is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 3 of the License, or
12(at your option) any later version.
13
14itom is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with itom. If not, see <http://www.gnu.org/licenses/>.
21*********************************************************************** */
22
23#ifndef PENCREATORBUTTONFACTORY_H
24#define PENCREATORBUTTONFACTORY_H
25
26#include "qglobal.h"
27#include <QtUiPlugin/QDesignerCustomWidgetInterface>
28
29class PenCreatorButtonFactory : public QObject, public QDesignerCustomWidgetInterface
30{
31 Q_OBJECT
32 Q_INTERFACES(QDesignerCustomWidgetInterface)
33
34public:
35 PenCreatorButtonFactory(QObject *parent = 0);
36
37 bool isContainer() const;
38 bool isInitialized() const { return initialized; }
39 QIcon icon() const;
40 QString domXml() const;
41 QString group() const;
42 QString includeFile() const;
43 QString name() const;
44 QString toolTip() const;
45 QString whatsThis() const;
46 QWidget *createWidget(QWidget *parent);
47 void initialize(QDesignerFormEditorInterface *core);
48
49private:
50 bool initialized;
51};
52
53#endif
Definition penCreatorButtonFactory.h:30