13 #ifndef QmitkFindSegmentationTaskDialog_h
14 #define QmitkFindSegmentationTaskDialog_h
20 class QTableWidgetItem;
69 void OnItemSelectionChanged();
70 void OnItemDoubleClicked(QTableWidgetItem* item);
71 void OnFinished(
int result);
74 bool ContainsNumber(
int row)
const;
75 bool ContainsName(
int row)
const;
76 bool HasStatus(
int row)
const;
78 std::unique_ptr<Ui::QmitkFindSegmentationTaskDialog> m_Ui;
79 mitk::SegmentationTaskList::ConstPointer m_TaskList;
80 std::optional<size_t> m_SelectedTask;
Dialog for finding and selecting a segmentation task from a task list.
~QmitkFindSegmentationTaskDialog() override
void SetTaskList(const mitk::SegmentationTaskList *taskList)
Set the task list to display in the dialog.
std::optional< size_t > GetSelectedTask() const
Return the index of the selected task, or std::nullopt if none is selected.
bool LoadSelectedTask() const
Return true if the selected task should be loaded immediately.
QmitkFindSegmentationTaskDialog(QWidget *parent=nullptr)
Construct the find task dialog.
A list of segmentation tasks.