SampleProject.h header
#include <ew/app/SampleProject.h>
Namespace ew::app
Functions
std::unique_ptr< ew::core::Project > ew::app::buildSampleProject()
Builds the ready-to-explore showcase project shipped with the app – a miniature fantasy world, the Age of Charts – so a first-time user opens something real instead of a blank window. It deliberately exercises the whole feature set rather than merely being non-empty: every content type appears at least once, so no dock opens on an empty state the first time it is looked at, and every project-level collection is populated.
It contains: a custom (non-Gregorian) calendar; a codex whose taxonomy nests Guild Members under Characters to show inherited attributes, spanning the field types (text, choice, number, boolean, and the Reference links the relationship graph draws its labelled edges from), with aliases, lifespans, tags, a gallery, and a rank that changes across the story (state-over-time); a chronology the continuity validator finds clean; a Part/Chapter manuscript with synopses, points of view, tension, a footnote, a snapshot, an alternate draft, a cited source and live ![[...]] embeds, plus an outline note, a Fountain screenplay, and an audience-restricted secret; plot threads, a beat sheet, a kanban board with a submission, and the writing log and goal the analytics read; a map with regions, routes, pins, a battle grid and tokens; a spreadsheet bound to a codex category with live formulas; a chart; a research canvas; a threaded review comment; a conlang, a random table and a stat block; plus saved searches, an entity template, a continuity rule and pinned shortcuts.
The world is deterministic apart from the writing log, the task due dates and the submission date, which are relative to today on purpose – otherwise the heatmap, streak, pace and agenda would open looking dead. The map artwork the Map and Media reference is painted separately by the desktop (ew::desktop::writeSampleAssets), because this layer has no GUI dependency.