Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
qMRMLSequenceBrowserSeekWidget.h
Go to the documentation of this file.
1 /*==============================================================================
2 
3  Program: 3D Slicer
4 
5  Copyright (c) Brigham and Women's Hospital
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 __qMRMLSequenceBrowserSeekWidget_h
19 #define __qMRMLSequenceBrowserSeekWidget_h
20 
21 // CTK includes
22 #include <ctkPimpl.h>
23 #include <ctkVTKObject.h>
24 
25 // Slicer includes
26 #include "qMRMLWidget.h"
27 
28 #include "qSlicerSequencesModuleWidgetsExport.h"
29 
30 class qMRMLSequenceBrowserSeekWidgetPrivate;
31 class vtkMRMLNode;
33 class QSlider;
34 
36 class Q_SLICER_MODULE_SEQUENCES_WIDGETS_EXPORT qMRMLSequenceBrowserSeekWidget
37 : public qMRMLWidget
38 {
39  Q_OBJECT
40  QVTK_OBJECT
41 
42 public:
44  qMRMLSequenceBrowserSeekWidget(QWidget *newParent = 0);
46 
49  Q_INVOKABLE QSlider* slider() const;
50 
51 public slots:
52  void setMRMLSequenceBrowserNode(vtkMRMLNode* browserNode);
53  void setMRMLSequenceBrowserNode(vtkMRMLSequenceBrowserNode* browserNode);
54  void setSelectedItemNumber(int itemNumber);
55 
56 protected slots:
57  void onIndexDisplayFormatModified();
58  void updateWidgetFromMRML();
59 
60 protected:
61  QScopedPointer<qMRMLSequenceBrowserSeekWidgetPrivate> d_ptr;
62 
63 private:
64  Q_DECLARE_PRIVATE(qMRMLSequenceBrowserSeekWidget);
65  Q_DISABLE_COPY(qMRMLSequenceBrowserSeekWidget);
66 
67 };
68 
69 #endif
QScopedPointer< qMRMLSequenceBrowserSeekWidgetPrivate > d_ptr
Base class for any widget that requires a MRML Scene.
Definition: qMRMLWidget.h:35
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167