Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkNavigationToolStorageSelectionWidget.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 QmitkNavigationToolStorageSelectionWidget_H
18 #define QmitkNavigationToolStorageSelectionWidget_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_QmitkNavigationToolStorageSelectionWidgetControls.h"
30 
31 
42 class MITKIGTUI_EXPORT QmitkNavigationToolStorageSelectionWidget : public QWidget
43 {
44  Q_OBJECT
45 
46  public:
47  static const std::string VIEW_ID;
48 
49  QmitkNavigationToolStorageSelectionWidget(QWidget* parent = 0, Qt::WindowFlags f = 0);
51 
53  mitk::NavigationToolStorage::Pointer GetSelectedNavigationToolStorage();
54 
55  signals:
59  void NavigationToolStorageSelected(mitk::NavigationToolStorage::Pointer storage);
60 
61 
62 
63  protected slots:
64 
65  void NavigationToolStorageSelected(us::ServiceReferenceU s);
66 
67 
68  protected:
69 
71  virtual void CreateConnections();
72 
73  virtual void CreateQtPartControl(QWidget *parent);
74 
75  Ui::QmitkNavigationToolStorageSelectionWidgetControls* m_Controls;
76 
78 
79 
80 
81 };
82 #endif
itk::SmartPointer< Self > Pointer
Ui::QmitkNavigationToolStorageSelectionWidgetControls * m_Controls
This widget allows the user to select a navigation tool storage.