13 #ifndef QmitkSegmentAnythingToolGUI_h
14 #define QmitkSegmentAnythingToolGUI_h
18 #include "ui_QmitkSegmentAnythingGUIControls.h"
21 #include <QMessageBox>
22 #include <QStandardPaths>
35 itkFactorylessNewMacro(Self);
42 static bool IsSAMInstalled(
const QString &);
48 void OnResetPicksClicked();
53 void OnActivateBtnClicked();
64 void WriteStatusMessage(
const QString&);
69 void WriteErrorMessage(
const QString&);
74 void StatusMessageListener(
const std::string&);
84 void ShowErrorMessage(
const std::string&, QMessageBox::Icon = QMessageBox::Critical);
96 void ShowProgressBar(
bool);
104 bool ActivateSAMDaemon();
111 bool ValidatePrefences();
115 Ui_QmitkSegmentAnythingGUIControls m_Controls;
117 bool m_FirstPreviewComputation =
true;
118 const std::string WARNING_SAM_NOT_FOUND =
119 "SAM is not detected in the selected python environment. Please reinstall SAM.";