itom  4.1.0
paramEditorFactory.h
1 /* ********************************************************************
2 itom measurement system
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5 Universitaet Stuttgart, Germany
6 
7 This file is part of itom.
8 
9 itom is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13 
14 itom is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21 *********************************************************************** */
22 
23 #ifndef PARAMEDITORFACTORY_H
24 #define PARAMEDITORFACTORY_H
25 
26 #include "qglobal.h"
27 #include <QtUiPlugin/QDesignerCustomWidgetInterface>
28 
29 
30 class ParamEditorFactory : public QObject, public QDesignerCustomWidgetInterface
31 {
32  Q_OBJECT
33  Q_INTERFACES(QDesignerCustomWidgetInterface)
34 
35 public:
36  ParamEditorFactory(QObject *parent = 0);
37 
38  bool isContainer() const;
39  bool isInitialized() const { return initialized; }
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;
52 };
53 
54 #endif
Definition: paramEditorFactory.h:30