Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkUSDeviceManagerWidget.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found 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 
32 class 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 
37 public:
38 
39  static const std::string VIEW_ID;
40 
41  QmitkUSDeviceManagerWidget(QWidget* p = nullptr, Qt::WindowFlags f1 = nullptr);
42  ~QmitkUSDeviceManagerWidget() override;
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 
51 signals:
52  void NewDeviceButtonClicked();
53  void EditDeviceButtonClicked(mitk::USDevice::Pointer);
54 
55  /* This signal is emitted if a device is activated. */
56  void DeviceActivated();
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 
82 protected:
83 
84  Ui::QmitkUSDeviceManagerWidgetControls* m_Controls;
85 
86 private:
87 };
88 
89 #endif
itk::SmartPointer< Self >
QmitkUSDeviceManagerWidget::m_Controls
Ui::QmitkUSDeviceManagerWidgetControls * m_Controls
member holding the UI elements of this widget
Definition: QmitkUSDeviceManagerWidget.h:84
us::ServiceReference
Definition: usModule.h:40
QmitkUSDeviceManagerWidget::VIEW_ID
static const std::string VIEW_ID
Definition: QmitkUSDeviceManagerWidget.h:39
mitkUSDevice.h
QmitkUSDeviceManagerWidget
This Widget is used to manage available Ultrasound Devices.
Definition: QmitkUSDeviceManagerWidget.h:32