MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkNavigationDataSourceSelectionWidget.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef QmitkNavigationDataSourceSelectionWidget_h
14#define QmitkNavigationDataSourceSelectionWidget_h
15
16//QT headers
17#include <QWidget>
18
19//mitk headers
20#include "MitkIGTUIExports.h"
23#include <usServiceReference.h>
24//ui header
25#include "ui_QmitkNavigationDataSourceSelectionWidgetControls.h"
26
27
32class MITKIGTUI_EXPORT QmitkNavigationDataSourceSelectionWidget : public QWidget
33{
34 Q_OBJECT
35
36 public:
37 static const std::string VIEW_ID;
38
39 QmitkNavigationDataSourceSelectionWidget(QWidget* parent = nullptr, Qt::WindowFlags f = {});
41
43 mitk::NavigationDataSource::Pointer GetSelectedNavigationDataSource();
44
48 int GetSelectedToolID();
49
53 mitk::NavigationTool::Pointer GetSelectedNavigationTool();
54
58 mitk::NavigationToolStorage::Pointer GetNavigationToolStorageOfSource();
59
60 signals:
64 void NavigationDataSourceSelected(mitk::NavigationDataSource::Pointer n);
65
66
70 void NavigationToolSelected(mitk::NavigationTool::Pointer n);
71
72
73
74 protected slots:
75
76 void NavigationDataSourceSelected(us::ServiceReferenceU s);
77
78 void NavigationToolSelected(int selection);
79
80
81 protected:
82
84 virtual void CreateConnections();
85
86 virtual void CreateQtPartControl(QWidget *parent);
87
88 Ui::QmitkNavigationDataSourceSelectionWidgetControls* m_Controls;
89
90
91
92 mitk::NavigationToolStorage::Pointer m_CurrentStorage;
93 mitk::NavigationDataSource::Pointer m_CurrentSource;
94
95
96};
97#endif
This widget allows the user to select a NavigationDataSource. Tools of this Source are also shown and...
Ui::QmitkNavigationDataSourceSelectionWidgetControls * m_Controls
void NavigationDataSourceSelected(mitk::NavigationDataSource::Pointer n)
This signal is emitted when a new navigation data source is selected.
void NavigationToolSelected(mitk::NavigationTool::Pointer n)
This signal is emitted when a new navigation data tool is selected.