Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qSlicerTextsModuleWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4  Queen's University, Kingston, ON, Canada. All Rights Reserved.
5 
6  See COPYRIGHT.txt
7  or http://www.slicer.org/copyright/copyright.txt for details.
8 
9  Unless required by applicable law or agreed to in writing, software
10  distributed under the License is distributed on an "AS IS" BASIS,
11  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  See the License for the specific language governing permissions and
13  limitations under the License.
14 
15  This file was originally developed by Kyle Sunderland, PerkLab, Queen's University
16  and was supported through CANARIE's Research Software Program, and Cancer
17  Care Ontario.
18 
19 ==============================================================================*/
20 
21 #ifndef __qSlicerTextsModuleWidget_h
22 #define __qSlicerTextsModuleWidget_h
23 
24 // Slicer includes
26 
27 // Texts includes
28 #include "qSlicerTextsModuleExport.h"
29 
30 class qSlicerTextsModuleWidgetPrivate;
31 
32 class Q_SLICER_QTMODULES_TEXTS_EXPORT qSlicerTextsModuleWidget : public qSlicerAbstractModuleWidget
33 {
34  Q_OBJECT
35 
36 public:
37 
39  qSlicerTextsModuleWidget(QWidget *parent=nullptr);
40  ~qSlicerTextsModuleWidget() override;
41 
43  bool setEditedNode(vtkMRMLNode* node, QString role = QString(), QString context = QString()) override;
44 
45 protected:
46 
47  void setup() override;
48 
49 protected:
50  QScopedPointer<qSlicerTextsModuleWidgetPrivate> d_ptr;
51 
52 private:
53  Q_DECLARE_PRIVATE(qSlicerTextsModuleWidget);
54  Q_DISABLE_COPY(qSlicerTextsModuleWidget);
55 };
56 
57 #endif
Q_INVOKABLE bool setEditedNode(vtkMRMLNode *node, QString role=QString(), QString context=QString()) override
Node editing.
QScopedPointer< qSlicerTextsModuleWidgetPrivate > d_ptr
qSlicerAbstractModuleWidget Superclass
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167