13 #ifndef QmitkMedSAMToolGUI_h
14 #define QmitkMedSAMToolGUI_h
18 #include "ui_QmitkMedSAMGUIControls.h"
32 itkFactorylessNewMacro(Self);
44 void WriteStatusMessage(
const QString &);
49 void WriteErrorMessage(
const QString &);
54 void ShowProgressBar(
bool);
62 bool ActivateSAMDaemon();
72 void ShowErrorMessage(
const std::string &, QMessageBox::Icon = QMessageBox::Critical);
79 bool ValidatePrefences();
85 void UpdateMedSAMStatusMessage(QString &initText);
96 void StatusMessageListener(
const std::string&);
102 void OnActivateBtnClicked();
107 void OnPreviewBtnClicked();
112 void OnResetPicksClicked();
117 Ui_QmitkMedSAMGUIControls m_Controls;
118 bool m_FirstPreviewComputation =
true;
119 const std::string WARNING_SAM_NOT_FOUND =
120 "MedSAM is not detected in the selected python environment. Please reinstall MedSAM.";