Slicer  4.10
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLWidgetsPlugin.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Kitware Inc.
6 
7  See COPYRIGHT.txt
8  or http://www.slicer.org/copyright/copyright.txt for details.
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  This file was originally developed by Julien Finet, Kitware Inc.
17  and was partially funded by NIH grant 3P41RR013218-12S1
18 
19 ==============================================================================*/
20 
21 #ifndef __qMRMLWidgetsPlugin_h
22 #define __qMRMLWidgetsPlugin_h
23 
24 #include "qMRMLWidgetsConfigure.h" // For MRML_WIDGETS_HAVE_QT5
25 
26 // Qt includes
27 #ifdef MRML_WIDGETS_HAVE_QT5
28 #include <QtUiPlugin/QDesignerCustomWidgetCollectionInterface>
29 #else
30 #include <QDesignerCustomWidgetCollectionInterface>
31 #endif
32 
33 // MRMLWidgets includes
48 #include "qMRMLListWidgetPlugin.h"
55 #include "qMRMLPlotWidgetPlugin.h"
57 #include "qMRMLRangeWidgetPlugin.h"
58 #include "qMRMLROIWidgetPlugin.h"
62 #include "qMRMLSliceWidgetPlugin.h"
64 #include "qMRMLSpinBoxPlugin.h"
66 #include "qMRMLThreeDViewPlugin.h"
68 #include "qMRMLTreeViewPlugin.h"
71 #include "qMRMLWidgetPlugin.h"
74 #include "qMRMLTableViewPlugin.h"
75 
76 // \class Group the plugins in one library
77 class QMRML_WIDGETS_PLUGINS_EXPORT qMRMLWidgetsPlugin
78  : public QObject
79  , public QDesignerCustomWidgetCollectionInterface
80 {
81  Q_OBJECT
82 #ifdef MRML_WIDGETS_HAVE_QT5
83  Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface")
84 #endif
85  Q_INTERFACES(QDesignerCustomWidgetCollectionInterface);
86 
87 public:
89  {
106  << new qMRMLListWidgetPlugin
113  << new qMRMLPlotWidgetPlugin
116  << new qMRMLROIWidgetPlugin
123  << new qMRMLSpinBoxPlugin
124  << new qMRMLTableViewPlugin
126  << new qMRMLThreeDViewPlugin
128  << new qMRMLTreeViewPlugin
131  << new qMRMLWidgetPlugin
133  return plugins;
134  }
135 };
136 
137 #endif
QList< QDesignerCustomWidgetInterface * > customWidgets() const