TaskBoard.h header
#include <ew/core/task/TaskBoard.h>
Namespace ew::core::task
Functions
std::vector< ew::core::foundation::ContentId > ew::core::task::orderedTasksInStatus(const ew::core::project::Project &project, const QString &board, const QString &status)
The ids of the tasks on board whose status is status, ordered by sort index, then descending priority, then title, then id – the order of cards within a kanban column. This is the single source of truth for column order. Its callers are the column model, MoveTaskCommand, and the kanban board itself – which is what makes a card's position the same whether it is drawn, dragged or moved by a command.
The list is deliberately not exhaustive-by-name beyond that: a comment that enumerates its callers goes stale the first time one is added, and this one already had (it named two of the three).
QStringList ew::core::task::taskBoardStatuses(const ew::core::project::Project &project, const QString &board)
The kanban columns for board in project: the board's default columns (Tasks and unknown boards use To Do/Doing/Done; Submissions uses Querying/Submitted/Accepted/ Rejected) followed by any other non-empty status present on that board's tasks (sorted), so no task is hidden.
QStringList ew::core::task::taskBoards(const ew::core::project::Project &project)
The boards present in project: the default boards (Tasks, Submissions) followed by any other board a task belongs to (sorted). Drives the board selector.
int ew::core::task::taskDropIndex(const ew::core::project::Project &project, const QString &board, ew::core::foundation::ContentId taskId, const QString &status, int row)
The insertion index to pass to MoveTaskCommand for a drag that drops taskId into the board column status at visual position row (or -1 to append). When the task stays in the same column it is removed before reinsertion, so a drop below its current position is shifted up by one; moves to a different column use the row as given.