TimelineMarker.h header

#include <ew/core/TimelineMarker.h>

Namespace ew::core

TimelineMarker struct

struct ew::core::TimelineMarker

A labelled vertical marker at a single instant on the timeline (TL-19) – the story's present moment ("now"), or another pinned point worth calling out ("the coronation", "deadline"). Drawn across the full height of the plot and labelled. The instant is in minutes since the story epoch, the same axis events and eras use. A project-level value type kept in a registry on the project, exactly like timeline eras, and replaced as a whole by one undoable command.

Members

QString ew::core::TimelineMarker::name

The marker's name, shown on its line (e.g. "Now", "The Coronation").

qint64 ew::core::TimelineMarker::instant = 0

The instant it marks, in minutes since the story epoch (may be negative for a pre-epoch marker).

bool ew::core::TimelineMarker::isNow = false

Whether this is the story's "now" (present moment). At most one marker is usually the now; it is drawn with a distinct emphasis so the present reads apart from an ordinary pinned instant.

bool operator==(const TimelineMarker &, const TimelineMarker &)=default

Value equality over all fields, so a no-op edit (a dialog OK'd with no change) can be detected and skipped rather than clearing the redo stack.