Slicer  4.8
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 = 0);
55  virtual ~qMRMLTableWidget();
56 
58  vtkMRMLTableViewNode* mrmlTableViewNode()const;
59 
63  Q_INVOKABLE qMRMLTableView* tableView()const;
64 
68  QString viewLabel()const;
69 
73  void setViewLabel(const QString& newTableViewLabel);
74 
75 public slots:
77  void setMRMLTableViewNode(vtkMRMLTableViewNode* newTableViewNode);
78 
79 protected:
80  QScopedPointer<qMRMLTableWidgetPrivate> d_ptr;
81 
82 private:
83  Q_DECLARE_PRIVATE(qMRMLTableWidget);
84  Q_DISABLE_COPY(qMRMLTableWidget);
85 };
86 
87 #endif
qMRMLWidget Superclass
Superclass typedef.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:54
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.