TimelineDateQualifier.h header

#include <ew/core/TimelineDateQualifier.h>

Namespace ew::core

Enumerations

enum class TimelineDateQualifier { Exact, Circa, Before, After, During }

How CERTAIN a timeline event's date is (TL-10): fiction is full of deliberately fuzzy time ("circa 1200", "before the flood", "no earlier than her birth", "sometime during the war"), and forcing a precise date to satisfy the widget makes the writer enter a lie. The qualifier changes only how the event's OWN date is interpreted and drawn – the stored instant is unchanged – so an uncertain event renders as a soft band or bracket rather than a crisp point that would imply false precision.

Functions

std::optional< TimelineDateQualifier > ew::core::timelineDateQualifierFromToken(QStringView token)

Parses a date qualifier from its serialization token; std::nullopt if unrecognized (so a caller can fall back to TimelineDateQualifier::Exact for an absent or unknown value).

QString ew::core::toToken(TimelineDateQualifier qualifier)

Returns the stable serialization token for qualifier (e.g. "circa"); "exact" for the default.