Files
vpn-dns-gateway/demo/tikzrefinery/documents/assets/design-diagrams/class-controller.tex
T
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

40 lines
2.0 KiB
TeX

\begin{tikzpicture}
\node[umlDetail] {
\textbf{tkrEditorController}\quad\textit{final; Controller; extends QObject}
\nodepart{second}
\textbf{Responsibilities}\\
Coordinate model, scene, parser, and mapper; perform file I/O.\\
Guard saving against observed external changes; notify the window.\\
Delegate move/resize preparation; coordinate guarded source edits.
\nodepart{third}\ttfamily
\normalfont\textbf{Private attributes}\ttfamily\\
- m\_refDocument: tkrTikzDocument\&\quad\normalfont(non-owning)\ttfamily\\
- m\_refScene: tkrDiagramScene\&\quad\normalfont(non-owning)\ttfamily\\
- m\_parser: tkrTikzParserExplicit\quad\normalfont(owned value)\ttfamily\\
- m\_mapper: tkrCoordinateMapper\quad\normalfont(owned value)\ttfamily\\
- m\_editService: tkrEditService\quad\normalfont(owned value)\ttfamily\\
- m\_comparisonExtent: ComparisonExtent\quad\normalfont(value)\ttfamily\\
- m\_baFileBaseline: QByteArray\quad\normalfont(last open/save bytes)
\nodepart{fourth}\ttfamily
\normalfont\textbf{Public constructor and operations}\ttfamily\\
+ tkrEditorController(document: tkrTikzDocument\&,\\
\hspace*{1em}diagramScene: tkrDiagramScene\&, pParent: QObject* = nullptr)\\
+ openDocument(strFilePath: const QString\&): OperationResult\\
+ saveDocument(): OperationResult\\
+ undo(), redo(): OperationResult\\
+ refreshParsedDocument(): OperationResult\\[3pt]
\normalfont\textbf{Public slots}\ttfamily\\
+ handleDragPreview(dragUpdate: const DragUpdate\&): void\\
+ handleDragCommit(dragUpdate: const DragUpdate\&): void\\
+ cancelDrag(): void\\[3pt]
\normalfont\textbf{Signals}\ttfamily\\
+ documentChanged(): void\\
+ statusChanged(strMessage: const QString\&): void\\[3pt]
\normalfont\textbf{Private operations}\ttfamily\\
- validateDrag(dragUpdate: const DragUpdate\&) const: OperationResult\\
- prepareGesture(dragUpdate: const DragUpdate\&) const: GestureGeometry\\
- rejectDrag(strReason: const QString\&): void\\
- restoreHistory(bRedo: bool): OperationResult
};
\end{tikzpicture}