How ayub-kokabi/segah works
Segah is a Windows taskbar calendar popover. Its main workflow is to locate taskbar clocks, assemble local and time.ir calendar data, then show dates and occasions on hover; users can open event links or an About card. The graph also preserves the installer and the shared rendering layer. Some application wiring is only visible through declarations and the source index, so those relationships are marked unverified rather than asserted as calls.
Main entry points: clock_app.cpp Clock app · tooltip_window.cpp Date popover · native_calendar.cpp Local calendar content · main.cpp Setup entry
Components 21
App orchestration
- App entry
src/main.cpp - Clock app
src/clock_app.cpp - App messages
src/app_messages.hpp - Clock locator
src/taskbar/taskbar_clock_locator.cpp - Tray icon
src/taskbar/tray_icon.cpp
Calendar data
- Calendar service
src/calendar/calendar_service.cpp - Date conversion
src/calendar/jalali.cpp - Local calendar content
src/calendar/native_calendar.cpp
Cards and rendering
- Date popover
src/ui/tooltip_window.cpp - About card
src/ui/about_window.cpp - Shared graphics device
src/graphics/graphics_device.cpp - Composition surface
src/graphics/composition_surface.cpp - Direct2D painting
src/graphics/d2d_paint.cpp - Card motion
src/graphics/card_motion.cpp
Install and removal
- Setup entry
src/setup/main.cpp - Install and uninstall
src/setup/install.cpp - Setup splash
src/setup/splash.cpp
Other components
- Windows user
- Windows taskbar
- time.ir
- Default browser
Connections 23
- Windows user → Windows taskbar: hovers over
README.md - Windows taskbar → Clock app: clock interaction
- App entry → Clock app: starts
- Clock app → Clock locator: finds clocks
- Clock app → Calendar service: requests dates
- Clock app → Local calendar content: builds popover data
- Clock app → Date popover: shows popover
- Clock app → About card: opens About
- Clock app → Tray icon: uses tray controls
- Calendar service → time.ir: fetches calendar
- Calendar service → Local calendar content: provides snapshot
- Local calendar content → Date conversion: converts dates
src/calendar/native_calendar.cpp - Date conversion → Local calendar content: returns dates
src/calendar/native_calendar.cpp - Local calendar content → Date popover: provides content
- Date popover → Shared graphics device: renders with
- About card → Shared graphics device: renders with
- Date popover → Composition surface: binds surface
src/ui/tooltip_window.cpp - Date popover → Card motion: attaches motion
src/ui/tooltip_window.cpp - Date popover → Default browser: opens event links
src/ui/tooltip_window.cpp - About card → Default browser: opens links
- Setup entry → Install and uninstall: runs install
src/setup/main.cpp - Setup entry → Setup splash: shows progress
src/setup/main.cpp - Setup entry → Clock app: launches after install
src/setup/main.cpp