ddt  0.1
ddtWidgetsPlugin.hpp
Go to the documentation of this file.
1 // @copyright
2 // (c) Copyright ESO 2020
3 // All Rights Reserved
4 // ESO (eso.org) is an Intergovernmental Organization, and therefore special
5 // legal conditions apply.
6 //
7 // @file ddtWidgetsPlugin.hpp
8 // @brief DDT Widgets. Class for the collection of DDT Widgets.
9 //
10 // Class which contains the collection of all DDT Widgets as a single library.
11 //
12 // @author Carsten Mannel, CGI
13 // @since 2020/01/28
14 //
15 
16 #ifndef DDT_DATAVISUALISATION_DDTWIDGETS_WIDGETS_HPP
17 #define DDT_DATAVISUALISATION_DDTWIDGETS_WIDGETS_HPP
18 
19 #include <qplugin.h>
20 
21 #include <QtDesigner>
22 #include <QtUiPlugin/QDesignerExportWidget>
23 #include <QtWidgets>
24 
28 class DdtWidgetsPlugin : public QObject,
29  public QDesignerCustomWidgetCollectionInterface {
30  Q_OBJECT
31  Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)
32  Q_PLUGIN_METADATA(IID "ssyd.eso.ddt.widgetlibrary.DDTWidgets")
33 
34  public:
39  explicit DdtWidgetsPlugin(QObject *parent = Q_NULLPTR);
44  virtual QList<QDesignerCustomWidgetInterface *> customWidgets() const;
45 
46  private:
47  QList<QDesignerCustomWidgetInterface *> m_widgets;
48 };
49 
50 #endif // DDT_DATAVISUALISATION_DDTWIDGETS_WIDGETS_HPP
DdtWidgetsPlugin
Definition: ddtWidgetsPlugin.hpp:29
DdtWidgetsPlugin::DdtWidgetsPlugin
DdtWidgetsPlugin(QObject *parent=Q_NULLPTR)
Definition: ddtWidgetsPlugin.cpp:39
DdtWidgetsPlugin::customWidgets
virtual QList< QDesignerCustomWidgetInterface * > customWidgets() const
Definition: ddtWidgetsPlugin.cpp:54