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

49 lines
5.0 KiB
TeX

% Current implemented classes: structural UML relationships, not message exchange.
\begin{tikzpicture}
\node[umlSummary,text width=5.2cm,anchor=north] (window) at (0,0) {\hyperref[Section:ClassMainWindow]{\textbf{tkrMainWindow}}\\\textit{View / assembly; final}
\nodepart{second} Assemble/own components and sidebar.\\Menus, source, status and dialogs.\\Guard unsaved work.};
\node[umlSummary,text width=5.2cm,anchor=north] (scene) at (15.6,0) {\hyperref[Section:ClassDiagramScene]{\textbf{tkrDiagramScene}}\\\textit{View; final}
\nodepart{second} Own graphics items.\\Display/select; body/corner gestures.\\No source/file mutation.};
\node[umlSummary,text width=5.2cm,anchor=north] (view) at (23.4,0) {\hyperref[Section:ClassDiagramView]{\textbf{tkrDiagramView}}\\\textit{View; final}
\nodepart{second} Fit viewport; paint paper.\\Keep source/scene units unchanged.\\Borrow displayed scene.};
\node[umlSummary,text width=5.2cm,anchor=north] (document) at (0,-5.8) {\hyperref[Section:ClassTikzDocument]{\textbf{tkrTikzDocument}}\\\textit{Model; final}
\nodepart{second} Source/saved bytes and revision.\\Parsed records and dirty state.\\Validate batches; own session history.};
\node[umlSummary,text width=5.2cm,anchor=north] (controller) at (7.8,0) {\hyperref[Section:ClassEditorController]{\textbf{tkrEditorController}}\\\textit{Controller; final}
\nodepart{second} Coordinate model/scene/services.\\Current file reads/guarded save.\\Own parser, mapper, edit service.};
\node[umlSummary,text width=5.2cm,anchor=north] (service) at (23.4,-5.8) {\hyperref[Section:ClassEditService]{\textbf{tkrEditService}}\\\textit{Support; final}
\nodepart{second} Delegate rectangle geometry; validate.\\Prepare coordinate replacements.\\No live model/UI mutation.};
\node[umlSummary,text width=5.2cm,anchor=north] (parser) at (7.8,-5.8) {\hyperref[Section:ClassExplicitTikzParser]{\textbf{tkrTikzParserExplicit}}\\\textit{Support; final}
\nodepart{second} Interpret explicit supported subset.\\Numeric ranges and fixed extent.\\Reject unsupported source contexts.};
\node[umlSummary,text width=5.2cm,anchor=north] (mapper) at (15.6,-5.8) {\hyperref[Section:ClassCoordinateMapper]{\textbf{tkrCoordinateMapper}}\\\textit{Support; final}
\nodepart{second} TikZ cm / scene conversion.\\Origin, scale and inverted y.\\Validate configuration.};
\node[umlQt] (qtw) at (0,1.4) {Qt: QMainWindow};
\node[umlQt] (qtc) at (7.8,1.4) {Qt: QObject};
\node[umlQt] (qts) at (15.6,1.4) {Qt: QGraphicsScene};
\node[umlQt] (qtv) at (23.4,1.4) {Qt: QGraphicsView};
\draw[umlGeneralization] (window.north)--(qtw.south);
\draw[umlGeneralization] (controller.north)--(qtc.south);
\draw[umlGeneralization] (scene.north)--(qts.south);
\draw[umlGeneralization] (view.north)--(qtv.south);
\draw[umlComposition] (window.south)--node[left,font=\footnotesize]{value} (document.north);
\draw[umlComposition] (window.east)--++(0.5,0) |- (controller.west);
\draw[umlComposition] (window.west)--++(-0.9,0) |- (12.8,2.6) -- (12.8,0) -- (scene.north west);
\node[font=\footnotesize] at (7.8,2.9) {scene: Qt parent ownership};
\draw[umlComposition] (window.north west)--++(0,3.5) -| (view.north west);
\node[font=\footnotesize] at (15.6,3.8) {view: owned through widget hierarchy};
\draw[umlAssociation] (controller.east)--++(0.5,0) |- node[above,font=\footnotesize,pos=0.7]{borrows} (scene.west);
\draw[umlAssociation] (view.west)--++(-0.5,0) |- (scene.east);
\draw[umlComposition] (controller.south)--node[right,font=\footnotesize]{value} (parser.north);
\draw[umlComposition] (controller.south east)--++(0,-0.9) -| (mapper.north west);
\draw[umlComposition] (controller.south east)--++(0.35,0) |- (20.6,-4.9) -- (20.6,-5.8) -- (service.north west);
\draw[umlAssociation] (controller.south west)--++(-0.35,0) |- (2.8,-4.8) -- (2.8,-5.8) -- (document.north east);
\draw[umlDependency] (scene.south)--node[right,font=\footnotesize]{mapping} (mapper.north);
\draw[umlDependency] (service.west)--++(-0.5,0) |- (mapper.east);
\node[umlSummary,text width=5.2cm,anchor=north] (store) at (15.6,-10.5) {\hyperref[Section:CurrentProviderClasses]{\textbf{tkrShapePluginStore}}\\\textit{Support; final}
\nodepart{second} Own loader; pin module binding.\\Validate metadata/API/build key.\\Borrow provider interface root.};
\draw[umlComposition] (scene.south east)--++(0.75,0) |- (store.north east);
\node[umlSummary,text width=5.2cm,anchor=north] (history) at (0,-11.3) {\hyperref[Section:ClassEditHistory]{\textbf{tkrEditHistory}}\\\textit{Model support; final}
\nodepart{second} Exact before/after snapshots.\\Descriptions and traversal cursor.\\Document alone records/traverses.};
\draw[umlComposition] (document.south)--node[right,font=\footnotesize]{value} (history.north);
\node[font=\footnotesize,align=center,text width=23cm] at (11.7,-16.5) {Ten core host classes; three sidebar UI classes are linked in \hyperref[Figure:CurrentSidebarClasses]{the shell view}. Provider interface/module are separate. Diamonds identify ownership; dashed arrows show uses. Qt ancestry is outside the project depth limit.};
\end{tikzpicture}