13 #ifndef QmitkSegmentationTaskListWidget_h
14 #define QmitkSegmentationTaskListWidget_h
26 class QFileSystemWatcher;
42 void CheckDataStorage(
const mitk::DataNode* removedNode =
nullptr);
44 bool ActiveTaskIsShown()
const;
45 void LoadNextUnfinishedTask();
46 void SaveActiveTask(
bool saveAsIntermediateResult =
false);
50 void ActiveTaskChanged(
const std::optional<size_t>& index);
51 void CurrentTaskChanged(
const std::optional<size_t>& index);
57 void ResetFileSystemWatcher();
58 void OnResultDirectoryChanged(
const QString&);
59 void UpdateProgressBar();
61 void OnPreviousButtonClicked();
62 void OnNextButtonClicked();
63 void OnFindButtonClicked();
64 void OnCurrentTaskChanged();
65 void UpdateLoadButton();
66 void UpdateNavigationButtons();
67 void UpdateDetailsLabel();
68 void UpdateStoreAndAcceptButtons();
69 void OnLoadButtonClicked();
73 void SubscribeToActiveSegmentation();
74 void UnsubscribeFromActiveSegmentation();
75 void OnSegmentationModified();
76 void SetActiveTaskIndex(
const std::optional<size_t>& index);
77 void SetCurrentTaskIndex(
const std::optional<size_t>& index);
78 bool HandleUnsavedChanges(
const QString& alternativeTitle = QString());
80 void OnUnsavedChangesSaved();
81 void OnPreviousTaskShortcutActivated();
82 void OnNextTaskShortcutActivated();
83 void OnFindTaskShortcutActivated();
84 void OnLoadTaskShortcutActivated();
85 void OnStoreInterimResultShortcutActivated();
86 void OnAcceptSegmentationShortcutActivated();
87 void OnStoreButtonClicked();
88 void OnAcceptButtonClicked();
90 Ui::QmitkSegmentationTaskListWidget* m_Ui;
91 QFileSystemWatcher* m_FileSystemWatcher;
95 std::optional<size_t> m_CurrentTaskIndex;
96 std::optional<size_t> m_ActiveTaskIndex;
97 std::optional<unsigned long> m_SegmentationModifiedObserverTag;
98 bool m_UnsavedChanges;