Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkScreenshotWidget.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 QmitkScreenshotWidget_h
14 #define QmitkScreenshotWidget_h
15 
16 #include <QWidget>
17 
18 namespace Ui
19 {
21 }
22 
23 class QmitkScreenshotWidget : public QWidget
24 {
25  Q_OBJECT
26 
27 public:
28  explicit QmitkScreenshotWidget(QWidget* parent = nullptr);
29  explicit QmitkScreenshotWidget(const QString& screenshotPath, QWidget* parent = nullptr);
30  ~QmitkScreenshotWidget() override;
31 
32  void SetScreenshot(const QString& path);
33  QString GetScreenshotPath() const;
34 
35 signals:
36  void Remove(QmitkScreenshotWidget* sender);
37 
38 private:
39  void OnRemoveButtonClicked();
40 
41  Ui::QmitkScreenshotWidget* m_Ui;
42  QString m_ScreenshotPath;
43 };
44 
45 #endif
QmitkScreenshotWidget::GetScreenshotPath
QString GetScreenshotPath() const
QmitkScreenshotWidget::SetScreenshot
void SetScreenshot(const QString &path)
QmitkScreenshotWidget::Remove
void Remove(QmitkScreenshotWidget *sender)
QmitkScreenshotWidget
Definition: QmitkScreenshotWidget.h:23
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkScreenshotWidget::~QmitkScreenshotWidget
~QmitkScreenshotWidget() override
QmitkScreenshotWidget::QmitkScreenshotWidget
QmitkScreenshotWidget(QWidget *parent=nullptr)