How giuspen/cherrytree works
CherryTree is a desktop hierarchical note-taking application. Users create or open a notebook, navigate its tree, edit rich-text or code content, and save in XML, SQLite, or multifile storage; they can also import, export, search, and protect documents. The graph preserves these documented product capabilities and the principal UI-to-storage workflow. Source excerpts are partial, so several capability links rely on the README; optional archive integration is shown as unverified where its runtime wiring was not excerpted.
Main entry points: ct_main_win.cc Main window · ct_storage_control.cc Storage control · ct_widgets.cc Embedded content · ct_actions_file.cc User actions
Components 20
Notebook application
- Main window
src/ct/ct_main_win.cc - User actions
src/ct/ct_actions_file.cc - Notebook tree
src/ct/ct_treestore.cc - Preferences
src/ct/ct_config.cc
Editing and content
- Text editor
src/ct/ct_text_view.cc - Embedded content
src/ct/ct_widgets.cc - Codeboxes
src/ct/ct_codebox.cc - Tables
src/ct/ct_table.cc - Images
src/ct/ct_image.cc
Document operations
- Storage control
src/ct/ct_storage_control.cc - XML documents
src/ct/ct_storage_xml.cc - SQLite documents
src/ct/ct_storage_sqlite.cc - Multifile documents
src/ct/ct_storage_multifile.cc - Import formats
src/ct/ct_imports.cc - Text parsers
src/ct/ct_parser.cc - Document exports
src/ct/ct_export2html.cc
Archive support
- 7-Zip archive engine
src/7za/CPP/7zip - Archive interface
src/ct/ct_p7za_iface.cc - Archive primitives
src/7za/CPP/Common
Other components
- Notebook user
Connections 20
- Notebook user → Main window: uses
- Main window → User actions: dispatches
- User actions → Notebook tree: manages
- Main window → Storage control: opens and saves
- Main window → Text editor: edits content
- Text editor → Embedded content: anchors
- Embedded content → Codeboxes: includes
- Embedded content → Tables: includes
- Embedded content → Images: includes
- Main window → Preferences: configures
- Storage control → XML documents: selects backend
src/ct/ct_storage_control.cc - Storage control → SQLite documents: selects backend
src/ct/ct_storage_control.cc - Storage control → Multifile documents: selects backend
src/ct/ct_storage_control.cc - XML documents → Embedded content: serializes content
src/ct/ct_storage_xml.cc - Notebook user → Import formats: requests import
- Import formats → Text parsers: parses text
- Notebook user → Document exports: requests export
- Storage control → Archive interface: uses protection
src/ct/ct_storage_control.cc - Archive interface → 7-Zip archive engine: delegates archive work
- 7-Zip archive engine → Archive primitives: uses primitives
src/7za/CPP/7zip/UI/Console/Main.cpp