Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkIGTLMessageSourceSelectionWidget.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 QmitkIGTLMessageSourceSelectionWidget_H
18 #define QmitkIGTLMessageSourceSelectionWidget_H
19 
20 //QT headers
21 #include <QWidget>
22 
23 //mitk headers
24 #include "MitkOpenIGTLinkUIExports.h"
25 #include "mitkIGTLMessageSource.h"
26 
27 //us
28 #include <usServiceReference.h>
29 
30 //ui header
31 #include "ui_QmitkIGTLMessageSourceSelectionWidgetControls.h"
32 
33 
44 class MITKOPENIGTLINKUI_EXPORT QmitkIGTLMessageSourceSelectionWidget :
45  public QWidget
46 {
47  Q_OBJECT
48 
49  public:
50  static const std::string VIEW_ID;
51 
52  QmitkIGTLMessageSourceSelectionWidget(QWidget* parent = 0,
53  Qt::WindowFlags f = 0);
55 
58  mitk::IGTLMessageSource::Pointer GetSelectedIGTLMessageSource();
59 
60  signals:
66  void IGTLMessageSourceSelected(mitk::IGTLMessageSource::Pointer source);
67 
68  protected slots:
69 
70  void IGTLMessageSourceSelected(us::ServiceReferenceU s);
71 
72 
73  protected:
74 
76  virtual void CreateConnections();
77 
78  virtual void CreateQtPartControl(QWidget *parent);
79 
80  Ui::QmitkIGTLMessageSourceSelectionWidgetControls* m_Controls;
81 
83 
84 
85 
86 };
87 #endif
This widget allows the user to select a OpenIGTLink message source.
itk::SmartPointer< Self > Pointer
Ui::QmitkIGTLMessageSourceSelectionWidgetControls * m_Controls