MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
QmitkUSDeviceManagerWidget.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 QmitkUSDeviceManagerWidget_h
14#define QmitkUSDeviceManagerWidget_h
15
16#include "MitkUSUIExports.h"
17#include "ui_QmitkUSDeviceManagerWidgetControls.h"
18#include "mitkUSDevice.h"
19#include <vector>
20
21//QT headers
22#include <QWidget>
23#include <QListWidgetItem>
24
32class MITKUSUI_EXPORT QmitkUSDeviceManagerWidget :public QWidget
33{
34 //this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
35 Q_OBJECT
36
37public:
38
39 static const std::string VIEW_ID;
40
41 QmitkUSDeviceManagerWidget(QWidget* p = nullptr, Qt::WindowFlags f1 = {});
43
44 /* @brief This method is part of the widget an needs not to be called seperately. */
45 virtual void CreateQtPartControl(QWidget *parent);
46 /* @brief This method is part of the widget an needs not to be called seperately. (Creation of the connections of main and control widget.)*/
47 virtual void CreateConnections();
48 /* @brief Disconnects all devices immediately. */
49 virtual void DisconnectAllDevices();
50
51signals:
53 void EditDeviceButtonClicked(mitk::USDevice::Pointer);
54
55 /* This signal is emitted if a device is activated. */
57
58 public slots:
59
60 protected slots :
61
62 /*
63 \brief Called, when the button "Activate Device" was clicked.
64 */
65 void OnClickedActivateDevice();
66
67 /*
68 \brief Called, when the button "Disconnect Device" was clicked.
69 */
70 void OnClickedDisconnectDevice();
71
72 void OnClickedRemoveDevice();
73 void OnClickedNewDevice();
74
75 void OnClickedEditDevice();
76
77 /*
78 \brief Called, when the selection in the devicelist changes.
79 */
80 void OnDeviceSelectionChanged(us::ServiceReferenceU reference);
81
82protected:
83
84 Ui::QmitkUSDeviceManagerWidgetControls* m_Controls;
85
86private:
87};
88
89#endif
This Widget is used to manage available Ultrasound Devices.
Ui::QmitkUSDeviceManagerWidgetControls * m_Controls
member holding the UI elements of this widget
void EditDeviceButtonClicked(mitk::USDevice::Pointer)