Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLSequenceBrowserToolBar.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 __qMRMLSequenceBrowserToolBar_h
19 #define __qMRMLSequenceBrowserToolBar_h
20 
21 // Qt includes
22 //#include <QSignalMapper>
23 #include <QToolBar>
24 
25 // CTK includes
26 #include <ctkPimpl.h>
27 // no ui begin
28 #include <ctkVTKObject.h>
29 // no ui end
30 
31 // qMRMLWidget includes
32 #include "qMRMLWidget.h"
33 #include "qSlicerSequencesModuleWidgetsExport.h"
34 
35 class qMRMLSequenceBrowserToolBarPrivate;
36 class vtkMRMLNode;
37 class vtkMRMLScene;
39 
40 class Q_SLICER_MODULE_SEQUENCES_WIDGETS_EXPORT qMRMLSequenceBrowserToolBar : public QToolBar
41 {
42  Q_OBJECT
43  QVTK_OBJECT
44 
45 public:
46  typedef QToolBar Superclass;
47 
50  qMRMLSequenceBrowserToolBar(const QString& title, QWidget* parent = 0);
51  qMRMLSequenceBrowserToolBar(QWidget* parent = 0);
52  ~qMRMLSequenceBrowserToolBar() override;
53 
54  Q_INVOKABLE vtkMRMLSequenceBrowserNode* activeBrowserNode();
55 
56 public slots:
57  virtual void setMRMLScene(vtkMRMLScene* newScene);
58  void setActiveBrowserNode(vtkMRMLSequenceBrowserNode* newActiveBrowserNode);
59 
60 signals:
61  void mrmlSceneChanged(vtkMRMLScene*);
62  void activeBrowserNodeChanged(vtkMRMLNode* activeBrowserNode);
63 
64 protected:
65  QScopedPointer<qMRMLSequenceBrowserToolBarPrivate> d_ptr;
66 
67 private:
68  Q_DECLARE_PRIVATE(qMRMLSequenceBrowserToolBar);
69  Q_DISABLE_COPY(qMRMLSequenceBrowserToolBar);
70 };
71 
72 #endif
QScopedPointer< qMRMLSequenceBrowserToolBarPrivate > d_ptr
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167