Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkIGTLDeviceSourceSelectionWidget.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 QmitkIGTLDeviceSourceSelectionWidget_H
18 #define QmitkIGTLDeviceSourceSelectionWidget_H
19 
20 //QT headers
21 #include <QWidget>
22 
23 //mitk headers
24 #include "MitkOpenIGTLinkUIExports.h"
25 #include "mitkIGTLDeviceSource.h"
26 //#include <mitkNavigationToolStorage.h>
27 //#include <mitkNavigationDataSource.h>
28 #include <usServiceReference.h>
29 //ui header
30 #include "ui_QmitkIGTLDeviceSourceSelectionWidgetControls.h"
31 
32 
43 class MITKOPENIGTLINKUI_EXPORT QmitkIGTLDeviceSourceSelectionWidget : public QWidget
44 {
45  Q_OBJECT
46 
47  public:
48  static const std::string VIEW_ID;
49 
50  QmitkIGTLDeviceSourceSelectionWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
52 
55  mitk::IGTLDeviceSource::Pointer GetSelectedIGTLDeviceSource();
56 
57  signals:
63  void IGTLDeviceSourceSelected(mitk::IGTLDeviceSource::Pointer source);
64 
65  protected slots:
66 
67  void IGTLDeviceSourceSelected(us::ServiceReferenceU s);
68 
69 
70  protected:
71 
73  virtual void CreateConnections();
74 
75  virtual void CreateQtPartControl(QWidget *parent);
76 
77  Ui::QmitkIGTLDeviceSourceSelectionWidgetControls* m_Controls;
78 
80 
81 
82 
83 };
84 #endif
itk::SmartPointer< Self > Pointer
Ui::QmitkIGTLDeviceSourceSelectionWidgetControls * m_Controls
This widget allows the user to select a OpenIGTLink device source.