Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
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 <QDialog>
17 
18 class QCloseEvent;
19 class QPlainTextEdit;
20 
21 namespace Ui
22 {
24 }
25 
26 //Subclass to stop QDialog from closing
27 class QmitkToolInstallDialog : public QDialog
28 {
29  Q_OBJECT
30 
31 public:
32  static QObject* GetConsoleOutput();
33 
34  explicit QmitkToolInstallDialog(QWidget *parent = nullptr);
36 
40  void closeEvent(QCloseEvent* event) override;
41 
45  void reject() override;
46 
47  void FinishInstallation(const QString& status);
48 
49 private:
50  static QPlainTextEdit *s_ConsoleOutput;
51 
52  bool m_IsInstalling = false;
53  Ui::QmitkToolInstallDialog* m_Ui;
54 };
55 
56 #endif
QmitkToolInstallDialog
Definition: QmitkToolInstallDialog.h:27
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.
QmitkToolInstallDialog::GetConsoleOutput
static QObject * GetConsoleOutput()
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkToolInstallDialog::~QmitkToolInstallDialog
~QmitkToolInstallDialog()
QmitkToolInstallDialog::FinishInstallation
void FinishInstallation(const QString &status)