Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
QmitkToolInstallDialog.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 QmitkToolInstallDialog_h
14 #define QmitkToolInstallDialog_h
15 
16 #include "ui_QmitkToolInstallDialog.h"
17 #include <QDialog>
18 #include <QCloseEvent>
19 #include <QTextEdit>
20 
21 
22 //Subclass to stop QDialog from closing
23 class QmitkToolInstallDialog : public QDialog
24 {
25  Q_OBJECT
26 public:
27  explicit QmitkToolInstallDialog(QWidget *parent = nullptr);
28  ~QmitkToolInstallDialog() = default;
29 
33  void closeEvent(QCloseEvent *event) override;
34 
38  void reject() override {}
39 
40  bool m_IsInstalling = false;
41  Ui::QmitkToolInstallDialog *m_Ui;
42  static QTextEdit *m_ConsoleOut; // for installation process output
43 };
44 
45 #endif
QmitkToolInstallDialog
Definition: QmitkToolInstallDialog.h:23
QmitkToolInstallDialog::QmitkToolInstallDialog
QmitkToolInstallDialog(QWidget *parent=nullptr)
QmitkToolInstallDialog::closeEvent
void closeEvent(QCloseEvent *event) override
Overrides CloseEvent function of QDialog to open Messagebox.
QmitkToolInstallDialog::reject
void reject() override
Overrides reject function of QDialog to block closing via esc-key.
Definition: QmitkToolInstallDialog.h:38
QmitkToolInstallDialog::m_Ui
Ui::QmitkToolInstallDialog * m_Ui
Definition: QmitkToolInstallDialog.h:41
QmitkToolInstallDialog::m_ConsoleOut
static QTextEdit * m_ConsoleOut
Definition: QmitkToolInstallDialog.h:42
QmitkToolInstallDialog::~QmitkToolInstallDialog
~QmitkToolInstallDialog()=default
QmitkToolInstallDialog::m_IsInstalling
bool m_IsInstalling
Definition: QmitkToolInstallDialog.h:40