How rokn/vede works
VeDe is a Qt-based vector-graphics editor. Users create a canvas, choose drawing or manipulation tools, edit graphic objects and their properties, and save the canvas as SVG. The graph captures the documented-by-source UI, editing, rendering, and export components. Several runtime files are unsampled, so uncertain connections are omitted rather than inferred.
Main entry points: mainwindow.cpp Main Window · gobject.cpp Graphic Objects · canvasimpl.cpp Canvas Adapter · canvas.cpp Canvas State
Components 18
Editor UI
- Main Window
VeDe/mainwindow.cpp - Canvas Adapter
VeDe/canvasimpl.cpp - Workspace
VeDe/workspace.cpp - Tool Actions
VeDe/toolaction.cpp - Property UI
VeDe/propertywidgetfactory.cpp
Editing Tools
- Tool Framework
VeDe-Graphics/tools/tool.cpp - Shape and Path Tools
VeDe-Graphics/tools/shapetool.cpp - Selection and Transform
VeDe-Graphics/tools/manipulatetool.cpp
Graphics Model
- Canvas State
VeDe-Graphics/canvas.cpp - Edit Commands
VeDe-Graphics/commands/canvascommand.cpp - Graphic Objects
VeDe-Graphics/objects/gobject.cpp - Shape Types
VeDe-Graphics/objects/shape.cpp - Object Properties
VeDe-Graphics/properties/property.cpp
Rendering and Export
- SVG Import Export
VeDe-Graphics/canvasmanagersvg.cpp - Graphics Items
VeDe/objects/baseshapeitem.cpp - Qt Painter Adapter
VeDe/qtcustompainter.cpp - Tool Overlay Drawer
VeDe/objects/guidrawer.cpp
Other components
- Editor User
Connections 22
- Editor User → Main Window: uses
VeDe/mainwindow.cpp - Main Window → Canvas Adapter: creates canvas
VeDe/mainwindow.cpp - Main Window → Shape and Path Tools: creates tools
VeDe/mainwindow.cpp - Main Window → Selection and Transform: creates tool
VeDe/mainwindow.cpp - Main Window → Tool Actions: registers tools
VeDe/mainwindow.cpp - Main Window → SVG Import Export: saves SVG
VeDe/mainwindow.cpp - Main Window → Canvas State: undoes and redoes
VeDe/mainwindow.cpp - Canvas Adapter → Qt Painter Adapter: uses painter
VeDe/canvasimpl.cpp - Canvas Adapter → Tool Framework: dispatches events
VeDe/canvasimpl.cpp - Canvas Adapter → Graphic Objects: maps objects
VeDe/canvasimpl.cpp - Shape and Path Tools → Tool Framework: extends
- Selection and Transform → Canvas State: reads selection
VeDe-Graphics/tools/manipulatetool.cpp - Selection and Transform → Edit Commands: creates commands
VeDe-Graphics/tools/manipulatetool.cpp - Edit Commands → Canvas State: updates history
- Canvas State → Graphic Objects: owns objects
- Graphic Objects → Object Properties: inherits properties
- Graphic Objects → Shape Types: specializes as shapes
- SVG Import Export → Shape Types: serializes shapes
- Graphics Items → Graphic Objects: adapts objects
VeDe/objects/baseshapeitem.cpp - Tool Overlay Drawer → Qt Painter Adapter: uses painter
VeDe/objects/guidrawer.cpp - Tool Overlay Drawer → Tool Framework: draws tool UI
VeDe/objects/guidrawer.cpp - Property UI → Object Properties: edits properties