Medical Imaging Interaction Toolkit
2025.08.99-f7084adb
Medical Imaging Interaction Toolkit
QmitknnInteractiveInstallDialog.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 QmitknnInteractiveInstallDialog_h
14
#define QmitknnInteractiveInstallDialog_h
15
16
#include <QDialog>
17
#include <QProcess>
18
19
class
QShowEvent;
20
21
namespace
Ui
22
{
23
class
QmitknnInteractiveInstallDialog
;
24
}
25
26
class
QmitknnInteractiveInstallDialog
:
public
QDialog
27
{
28
Q_OBJECT
29
30
public
:
31
explicit
QmitknnInteractiveInstallDialog
(QWidget* parent =
nullptr
);
32
~QmitknnInteractiveInstallDialog
()
override
;
33
34
protected
:
35
enum class
InstallStep
36
{
37
Upgrade_Pip
,
38
Install_PyTorch
,
// On Windows, we need a separate install step that uses pip --index-url.
39
Install_nnInteractive
40
};
41
42
void
OnYesClicked
();
43
void
OnStandardOutputReady
();
44
void
OnStandardErrorReady
();
45
void
OnProcessFinished
(
int
exitCode, QProcess::ExitStatus exitStatus);
46
47
void
AutoScrollToBottom
();
48
49
private
:
50
Ui::QmitknnInteractiveInstallDialog* m_Ui;
51
QProcess* m_Process;
52
InstallStep
m_InstallStep;
53
};
54
55
#endif
QmitknnInteractiveInstallDialog::AutoScrollToBottom
void AutoScrollToBottom()
QmitknnInteractiveInstallDialog::~QmitknnInteractiveInstallDialog
~QmitknnInteractiveInstallDialog() override
QmitknnInteractiveInstallDialog::InstallStep::Upgrade_Pip
@ Upgrade_Pip
QmitknnInteractiveInstallDialog::QmitknnInteractiveInstallDialog
QmitknnInteractiveInstallDialog(QWidget *parent=nullptr)
QmitknnInteractiveInstallDialog::InstallStep::Install_PyTorch
@ Install_PyTorch
QmitknnInteractiveInstallDialog::InstallStep::Install_nnInteractive
@ Install_nnInteractive
Ui
Definition:
BlueBerryExampleLauncherDialog.h:21
QmitknnInteractiveInstallDialog::OnProcessFinished
void OnProcessFinished(int exitCode, QProcess::ExitStatus exitStatus)
QmitknnInteractiveInstallDialog::OnStandardErrorReady
void OnStandardErrorReady()
QmitknnInteractiveInstallDialog
Definition:
QmitknnInteractiveInstallDialog.h:26
QmitknnInteractiveInstallDialog::OnYesClicked
void OnYesClicked()
QmitknnInteractiveInstallDialog::InstallStep
InstallStep
Definition:
QmitknnInteractiveInstallDialog.h:35
QmitknnInteractiveInstallDialog::OnStandardOutputReady
void OnStandardOutputReady()
src
MITK
Modules
PythonSegmentationUI
include
QmitknnInteractiveInstallDialog.h
Generated on Thu Sep 4 2025 02:40:25 for Medical Imaging Interaction Toolkit by
1.8.17