Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLColorLegendDisplayNodeWidgetPlugin.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 ==============================================================================*/
17 
18 #ifndef __qMRMLColorLegendDisplayNodeWidgetPlugin_h
19 #define __qMRMLColorLegendDisplayNodeWidgetPlugin_h
20 
21 #include <QtGlobal>
22 #include <QtUiPlugin/QDesignerCustomWidgetInterface>
23 #include "qSlicerColorsModuleWidgetsPluginsExport.h"
24 
25 class Q_SLICER_QTMODULES_COLORS_WIDGETS_PLUGINS_EXPORT qMRMLColorLegendDisplayNodeWidgetPlugin
26  : public QObject, QDesignerCustomWidgetInterface
27 {
28  Q_OBJECT
29 
30  Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetInterface")
31  Q_INTERFACES(QDesignerCustomWidgetInterface);
32 public:
33 
34 
35  qMRMLColorLegendDisplayNodeWidgetPlugin(QObject * newParent = nullptr);
36 
37  // Don't reimplement this method.
38  QString group() const override;
39 
40  // You can reimplement these methods
41  QString toolTip() const override;
42  QString whatsThis() const override;
43 
44  QWidget *createWidget(QWidget *newParent) override;
45  QString domXml() const override;
46  QIcon icon() const override;
47  QString includeFile() const override;
48  bool isContainer() const override;
49  QString name() const override;
50 
51 };
52 
53 #endif