Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLTableWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Portions (c) Copyright 2015 Brigham and Women's Hospital (BWH) All Rights Reserved.
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 Andras Lasso (PerkLab, Queen's
17  University) and Kevin Wang (Princess Margaret Hospital, Toronto) and was
18  supported through OCAIRO and the Applied Cancer Research Unit program of
19  Cancer Care Ontario.
20 
21 ==============================================================================*/
22 
23 #ifndef __qMRMLTableWidget_h
24 #define __qMRMLTableWidget_h
25 
26 // Qt includes
27 #include <QWidget>
28 class QResizeEvent;
29 
30 // qMRMLWidget includes
31 #include "qMRMLWidget.h"
33 class qMRMLTableView;
34 class qMRMLTableWidgetPrivate;
35 
36 // MRML includes
38 class vtkMRMLScene;
39 
46 class QMRML_WIDGETS_EXPORT qMRMLTableWidget : public qMRMLWidget
47 {
48  Q_OBJECT
49 public:
52 
54  explicit qMRMLTableWidget(QWidget* parent = nullptr);
55  ~qMRMLTableWidget() override;
56 
58  vtkMRMLTableViewNode* mrmlTableViewNode()const;
59 
63  Q_INVOKABLE qMRMLTableView* tableView()const;
64 
66  Q_INVOKABLE qMRMLTableViewControllerWidget* tableController()const;
67 
71  QString viewLabel()const;
72 
76  void setViewLabel(const QString& newTableViewLabel);
77 
78 public slots:
80  void setMRMLTableViewNode(vtkMRMLTableViewNode* newTableViewNode);
81 
82 protected:
83  QScopedPointer<qMRMLTableWidgetPrivate> d_ptr;
84 
85 private:
86  Q_DECLARE_PRIVATE(qMRMLTableWidget);
87  Q_DISABLE_COPY(qMRMLTableWidget);
88 };
89 
90 #endif
qMRMLWidget Superclass
Superclass typedef.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
qMRMLTableWidget is the toplevel table widget that can be packed in a layout.
QScopedPointer< qMRMLTableWidgetPrivate > d_ptr
MRML node to represent table view parameters.
Spreadsheet view for table nodes. Allow view/edit of a vtkMRMLTableNode.