Files
vpn-dns-gateway/demo/tikzrefinery/documents/assets/design-diagrams/class-history.tex
vsun1 27b82c169e
vpn-dns-gateway/pipeline/head This commit looks good
vpn-dns-gateway/pipeline/pr-main This commit looks good
Add frozen TikZRefinery demo baseline and build pipeline
2026-11-25 22:46:33 -05:00

24 lines
1007 B
TeX

\begin{tikzpicture}
\node[umlDetail] {
\textbf{tkrEditHistory}\quad\textit{final; Model support; owned by document}
\nodepart{second}\textbf{Responsibilities}\\
Retain exact session snapshots and operation descriptions.\\
Prepare a new entry without losing the existing redo branch on failure.\\
Supply restoration targets; move cursor only through the owning document.
\nodepart{third}\ttfamily
- m\_vecEntries: QVector<Entry>\\
- m\_nCursor: qsizetype = 0\\
\normalfont Entry contains before/after QByteArray and QString description.
\nodepart{fourth}\ttfamily
+ canUndo(), canRedo() const: bool\\
+ undoDescription(), redoDescription() const: QString\\[3pt]
\normalfont\textbf{Private; friend tkrTikzDocument}\ttfamily\\
- record(baBefore, baAfter: const QByteArray\&,\\
\hspace*{1em}strDescription: const QString\&): void\\
- restorationSource(bRedo: bool) const: QByteArray\\
- advance(bRedo: bool): void\\
- clear(): void\\
- swap(historyOther: tkrEditHistory\&): void [noexcept]
};
\end{tikzpicture}