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();
90 void StatusMessageListener(
const std::string&);
96 void OnActivateBtnClicked();
101 void OnPreviewBtnClicked();
106 void OnResetPicksClicked();
111 Ui_QmitkMedSAMGUIControls m_Controls;
112 bool m_FirstPreviewComputation =
true;
113 const std::string WARNING_SAM_NOT_FOUND =
114 "MedSAM is not detected in the selected python environment. Please reinstall MedSAM.";