13 #ifndef QmitkSegmentationTaskListWidget_h
14 #define QmitkSegmentationTaskListWidget_h
29 class QFileSystemWatcher;
77 void ResetFileSystemWatcher();
78 void OnResultDirectoryChanged(
const QString&);
79 void UpdateProgressBar();
81 void OnPreviousButtonClicked();
82 void OnNextButtonClicked();
83 void OnFindButtonClicked();
84 void OnCurrentTaskChanged();
85 void UpdateLoadButton();
86 void UpdateNavigationButtons();
87 void UpdateDetailsLabel();
88 void UpdateFormWidget();
89 void OnFormSubmission();
90 void UpdateStoreAndAcceptButtons();
91 void OnLoadButtonClicked();
94 void LoadTask(mitk::DataNode::Pointer imageNode =
nullptr);
95 void SubscribeToActiveSegmentation();
96 void UnsubscribeFromActiveSegmentation();
97 void OnSegmentationModified();
98 void SetActiveTaskIndex(
const std::optional<size_t>& index);
99 void SetCurrentTaskIndex(
const std::optional<size_t>& index);
100 bool HandleUnsavedChanges(
const QString& alternativeTitle = QString());
101 void OnUnsavedChangesSaved();
102 void OnPreviousTaskShortcutActivated();
103 void OnNextTaskShortcutActivated();
104 void OnFindTaskShortcutActivated();
105 void OnLoadTaskShortcutActivated();
106 void OnStoreInterimResultShortcutActivated();
107 void OnAcceptSegmentationShortcutActivated();
108 void OnStoreButtonClicked();
109 void OnAcceptButtonClicked();
111 std::unique_ptr<Ui::QmitkSegmentationTaskListWidget> m_Ui;
112 QFileSystemWatcher* m_FileSystemWatcher;
114 mitk::SegmentationTaskList::Pointer m_TaskList;
116 mitk::DataNode::Pointer m_TaskListNode;
119 std::optional<size_t> m_CurrentTaskIndex;
120 std::optional<size_t> m_ActiveTaskIndex;
121 std::optional<unsigned long> m_SegmentationModifiedObserverTag;
122 bool m_UnsavedChanges;
#define MITKSEGMENTATIONUI_EXPORT
Central node class of the MITK data tree, associating a data object with properties and mappers.
Abstract data management class that organizes DataNode objects in a directed acyclic graph.
A list of segmentation tasks.
Find image slices visible on a given plane.
SceneFileForm
The scene file forms a Segmentation Task List accepts as a Scene.Path.
MITKSEGMENTATIONUI_EXPORT SceneFileForm ClassifyTaskListSceneFile(const std::filesystem::path &scenePath)
Classify a Segmentation Task List Scene.Path by its accepted file form.