Medical Imaging Interaction Toolkit  2025.12.02
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 {
24 }
25 
26 class QmitknnInteractiveInstallDialog : public QDialog
27 {
28  Q_OBJECT
29 
30 public:
31  explicit QmitknnInteractiveInstallDialog(QWidget* parent = nullptr);
33 
34 protected:
35  enum class InstallStep
36  {
38  Install_PyTorch, // On Windows, we need a separate install step that uses pip --index-url.
40  };
41 
43  void OnYesClicked();
46  void OnProcessFinished(int exitCode, QProcess::ExitStatus exitStatus);
47 
49 
50 private:
51  Ui::QmitknnInteractiveInstallDialog* m_Ui;
52  QProcess* m_Process;
53  InstallStep m_InstallStep;
54 };
55 
56 #endif
void OnShowAdvancedSettingsButtonClicked(bool checked)
QmitknnInteractiveInstallDialog(QWidget *parent=nullptr)
void OnProcessFinished(int exitCode, QProcess::ExitStatus exitStatus)