How ashahin1/lightnotepad works
LightNotePad is a native Windows text editor. The main workflow is launching with files (or opening them through the UI), routing each file to a tab, editing in RichEdit, and saving while preserving encoding and line endings. The graph also includes documented syntax highlighting, search/printing, tab recovery, and Windows integration. Some capabilities are documented but their implementations were not sampled, so those are represented within the owning application component without speculative call edges.
Main entry points: app_window.cpp Window and Workflows · editor_tab.cpp Document Editor · main.cpp Application Entry · file_io.cpp File Encoding I/O
Components 15
Startup and Window
- Application Entry
src/main.cpp - Window and Workflows
src/app_window.cpp
Documents and Editing
- Document Editor
src/editor_tab.cpp - File Encoding I/O
src/file_io.cpp - Format Catalog
src/supported_formats.hpp - Path Lookup
src/path_lookup_helper.hpp - Syntax Tokenizer
src/syntax_highlighter.cpp - Context Menu Rules
src/editor_context_menu_helper.hpp
Editor Presentation
- Tab Strip
src/tab_bar.cpp - Status Display
src/status_bar.cpp - Tab Strip Helpers
src/tab_strip_helper.hpp
Windows Features
- Shortcut Dialog
src/shortcuts_dialog.cpp - Windows Services
Other components
- User
- Windows Shell
Connections 13
- User → Application Entry: launches
README.md - Windows Shell → Application Entry: opens files
README.md - Application Entry → Window and Workflows: creates window
src/main.cpp - Window and Workflows → Document Editor: manages tabs
src/app_window.cpp - Window and Workflows → Format Catalog: builds filters
src/app_window.cpp - Window and Workflows → Path Lookup: checks paths
src/app_window.cpp - Window and Workflows → Tab Strip: updates tabs
src/app_window.cpp - Window and Workflows → Status Display: updates status
src/app_window.cpp - Document Editor → File Encoding I/O: loads and saves
src/editor_tab.cpp - Document Editor → Syntax Tokenizer: tokenizes text
src/editor_tab.cpp - Document Editor → Context Menu Rules: computes menu flags
src/editor_tab.cpp - Window and Workflows → Windows Services: integrates shell and registry
README.md - User → Window and Workflows: edits and prints
README.md