Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkButtonOverlayWidget.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 QmitkButtonOverlayWidget_h
14 #define QmitkButtonOverlayWidget_h
15 
16 #include "QmitkOverlayWidget.h"
17 #include <MitkQtWidgetsExports.h>
18 #include <QIcon>
19 #include <QLabel>
20 #include <QPushButton>
21 
28 {
29  Q_OBJECT
30 
31 public:
32 
33  explicit QmitkButtonOverlayWidget(QWidget* parent = nullptr);
34  ~QmitkButtonOverlayWidget() override;
35 
36  QString GetOverlayText() const;
37  void SetOverlayText(const QString& text);
38  QString GetButtonText() const;
39  void SetButtonText(const QString& text);
40  QIcon GetButtonIcon() const;
41  void SetButtonIcon(const QIcon& icon);
42 
43 Q_SIGNALS:
44 
45  void Clicked();
46 
47 private:
48 
49  QLabel* m_MessageLabel;
50  QPushButton* m_PushButton;
51 
52 };
53 
54 #endif
MITKQTWIDGETS_EXPORT
#define MITKQTWIDGETS_EXPORT
Definition: MitkQtWidgetsExports.h:15
QmitkOverlayWidget
Definition: QmitkOverlayWidget.h:23
QmitkOverlayWidget.h
QmitkButtonOverlayWidget
Definition: QmitkButtonOverlayWidget.h:27
MitkQtWidgetsExports.h