How jiuyang5354/snapline-windows works
Snapline is a Windows screenshot-capture shelf. Its main workflow collects clipboard images or new files from watched folders, stores and displays recent shots, then lets users copy, preview, edit, remove, or drag them into other apps. The controller coordinates capture, tray and shelf interactions, settings, startup registration, and update checks; separate modules handle persistence, UI, and update downloads. The README documents major behavior not fully visible in the excerpts; arrows are limited to relationships supported by excerpts or that documentation.
Main entry points: Controller.cs Controller · ShotCard.cs Screenshot card · CaptureWatch.cs Folder watcher · ImageStore.cs Image and settings store
Components 16
App coordination
- Application entry
windows/src/Program.cs - Controller
windows/src/Controller.cs - Windows interop
windows/src/Native.cs
Capture and storage
- Folder watcher
windows/src/CaptureWatch.cs - Image and settings store
windows/src/ImageStore.cs
Shelf interaction
- Screenshot shelf
windows/src/LineWindow.cs - Screenshot card
windows/src/ShotCard.cs
Settings and startup
- Settings window
windows/src/SettingsWindow.cs - Windows startup
windows/src/Startup.cs
Update service
- Update checker
windows/src/Updates.cs - Update dialog
windows/src/UpdateDialog.cs
Other components
- User
- Windows clipboard
- Watched image folders
- Other applications
- GitHub releases
Connections 22
- User → Application entry: launches
README.md - Application entry → Controller: creates
windows/src/Program.cs - Controller → Image and settings store: coordinates
windows/src/Controller.cs - Controller → Folder watcher: starts capture
windows/src/Controller.cs - Folder watcher → Image and settings store: adds files
windows/src/CaptureWatch.cs - Watched image folders → Folder watcher: provides file events
windows/src/CaptureWatch.cs - Windows clipboard → Controller: provides images
README.md - Controller → Windows interop: uses Win32
windows/src/Controller.cs - Image and settings store → Windows interop: uses defaults
windows/src/ImageStore.cs - Controller → Screenshot shelf: controls shelf
windows/src/Controller.cs - Screenshot shelf → Screenshot card: renders cards
windows/src/LineWindow.cs - Screenshot card → Controller: invokes actions
windows/src/ShotCard.cs - User → Screenshot shelf: interacts
README.md - Screenshot card → Other applications: drags images
README.md - Controller → Settings window: opens settings
windows/src/Controller.cs - Settings window → Controller: saves preferences
windows/src/SettingsWindow.cs - Controller → Windows startup: checks startup
windows/src/Controller.cs - Controller → Update checker: checks releases
windows/src/Controller.cs - Controller → Update dialog: shows update
windows/src/Controller.cs - Update dialog → Update checker: downloads package
windows/src/UpdateDialog.cs - Update checker → GitHub releases: requests release data
README.md - User → Settings window: changes options
README.md