Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNavigationDataSourceSelectionWidget.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkNavigationDataSourceSelectionWidget_H
18 #define QmitkNavigationDataSourceSelectionWidget_H
19 
20 //QT headers
21 #include <QWidget>
22 
23 //mitk headers
24 #include "MitkIGTUIExports.h"
27 #include <usServiceReference.h>
28 //ui header
29 #include "ui_QmitkNavigationDataSourceSelectionWidgetControls.h"
30 
31 
36 class MITKIGTUI_EXPORT QmitkNavigationDataSourceSelectionWidget : public QWidget
37 {
38  Q_OBJECT
39 
40  public:
41  static const std::string VIEW_ID;
42 
43  QmitkNavigationDataSourceSelectionWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
45 
47  mitk::NavigationDataSource::Pointer GetSelectedNavigationDataSource();
48 
52  int GetSelectedToolID();
53 
57  mitk::NavigationTool::Pointer GetSelectedNavigationTool();
58 
62  mitk::NavigationToolStorage::Pointer GetNavigationToolStorageOfSource();
63 
64  signals:
68  void NavigationDataSourceSelected(mitk::NavigationDataSource::Pointer n);
69 
70 
74  void NavigationToolSelected(mitk::NavigationTool::Pointer n);
75 
76 
77 
78  protected slots:
79 
80  void NavigationDataSourceSelected(us::ServiceReferenceU s);
81 
82  void NavigationToolSelected(int selection);
83 
84 
85  protected:
86 
88  virtual void CreateConnections();
89 
90  virtual void CreateQtPartControl(QWidget *parent);
91 
92  Ui::QmitkNavigationDataSourceSelectionWidgetControls* m_Controls;
93 
94 
95 
98 
99 
100 };
101 #endif
itk::SmartPointer< Self > Pointer
Ui::QmitkNavigationDataSourceSelectionWidgetControls * m_Controls
This widget allows the user to select a NavigationDataSource. Tools of this Source are also shown and...