Add frozen TikZRefinery demo baseline and build pipeline
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
\begin{tikzpicture}
|
||||
\node[umlDetail] {
|
||||
\textbf{tkrTikzDocument}\quad\textit{final; Model; no base class}
|
||||
\nodepart{second}
|
||||
\textbf{Responsibilities}\\
|
||||
Keep source bytes authoritative; expose document state.\\
|
||||
Store parsed records for the current revision.\\
|
||||
Validate a complete coordinate-edit batch before changing source.
|
||||
\nodepart{third}\ttfamily
|
||||
\normalfont\textbf{Private attributes}\ttfamily\\
|
||||
- m\_baSource: QByteArray\quad\normalfont(current bytes)\ttfamily\\
|
||||
- m\_baSavedSource: QByteArray\quad\normalfont(dirty comparison)\ttfamily\\
|
||||
- m\_strFilePath: QString\\
|
||||
- m\_vecElements: QVector<ElementRecord>\\
|
||||
- m\_uRevision: quint64 = 0\\
|
||||
- m\_bIsLoaded: bool = false\\
|
||||
- m\_documentId: QUuid\\
|
||||
- m\_history: tkrEditHistory
|
||||
\nodepart{fourth}\ttfamily
|
||||
\normalfont\textbf{Public operations}\ttfamily\\
|
||||
+ loadSource(baSource: const QByteArray\&,\\
|
||||
\hspace*{1em}strFilePath: const QString\&): void\\
|
||||
+ sourceBytes() const: const QByteArray\&\\
|
||||
+ filePath() const: const QString\&\\
|
||||
+ elements() const: const QVector<ElementRecord>\&\\
|
||||
+ revision() const: quint64\\
|
||||
+ identity() const: const QUuid\&\\
|
||||
+ isLoaded() const: bool\\
|
||||
+ hasUnsavedChanges() const: bool\\
|
||||
+ markSaved(): void\\
|
||||
+ setParsedElements(vecElements: const QVector<ElementRecord>\&,\\
|
||||
\hspace*{1em}uExpectedRevision: quint64): OperationResult\\
|
||||
+ canUndo(), canRedo() const: bool\\
|
||||
+ undoDescription(), redoDescription() const: QString\\
|
||||
+ restoreHistory(bRedo: bool): OperationResult\\
|
||||
+ applyCoordinateEdits(vecEdits: const QVector<CoordinateEdit>\&,\\
|
||||
\hspace*{1em}strDescription: const QString\&)\\
|
||||
\hspace*{1em}: OperationResult\\[3pt]
|
||||
\normalfont\textbf{Private; controller is a friend}\ttfamily\\
|
||||
- acceptPreparedState(documentCandidate: tkrTikzDocument\&,\\
|
||||
\hspace*{1em}uExpectedRevision: quint64): OperationResult
|
||||
};
|
||||
\end{tikzpicture}
|
||||
Reference in New Issue
Block a user