13 #ifndef QmitkTotalSegmentatorPreferencePage_h
14 #define QmitkTotalSegmentatorPreferencePage_h
18 #include <ui_QmitkTotalSegmentatorPreferencePage.h>
20 #include <QMessageBox>
49 void ShowErrorMessage(
const QString &, QMessageBox::Icon = QMessageBox::Critical);
54 void WriteStatusMessage(
const QString &);
59 void WriteErrorMessage(
const QString &message);
71 void UpdateStatusLabel();
79 QString GetPythonPathFromUI(
const QString &pyUI)
const;
87 bool IsTotalSegmentatorInstalled(
const QString &pythonPath);
92 int FetchSelectedDeviceFromUI()
const;
98 void AddOrRemoveLicense(
const QString &licenseText);
104 void UpdateLicenseBox();
110 QString GetExactPythonPath();
112 Ui::QmitkTotalSegmentatorPreferencePage *m_Ui;
114 QString m_SysPythonPath;
118 static const QString WARNING_TOTALSEG_NOT_FOUND;
119 static const QString WARNING_PYTHON_NOT_FOUND;
121 const int LICENSE_KEY_LENGTH = 18;
Class to load and save GPU information for further validation.
void OnClearButtonClicked()
Qt Slot.
void OnPythonPathChanged(const QString &pyEnv)
Qt Slot.
~QmitkTotalSegmentatorPreferencePage() override=default
void OnOverrideBoxChecked(int state)
Qt Slot.
void OnApplyButtonClicked()
Qt Slot.
bool PerformOk() override
void Init(berry::IWorkbench::Pointer workbench) override
QWidget * GetQtControl() const override
void CreateQtControl(QWidget *parent) override
QmitkTotalSegmentatorPreferencePage()
void OnInstallButtonClicked()
Qt Slot.
void PerformCancel() override
void OnSystemPythonChanged(const QString &pyEnv)
Qt Slot.
Implements transparent reference counting.
Interface to application preferences.