# elenarobe/navycalc architecture

> Architecture diagram of the GitHub repository elenarobe/navycalc, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/elenarobe/navycalc
- Repository: https://github.com/elenarobe/navycalc

## Overview

NavyCalc is a desktop dead-reckoning calculator. Users enter sequence data in Home, calculate results, and view answers, magnetic declination, and a plotted route. The calculation code also handles navigation-related values such as speed, time, distance, and course. Example, Help, and About are separate windows. The excerpts show the main UI loading and some calculation behavior; the README documents the broader calculation results and window capabilities, so those links are cited there.

Main entry points: [`main.ui`](https://github.com/elenarobe/navycalc/blob/main/main.ui) (Home window), [`import datetime.py`](https://github.com/elenarobe/navycalc/blob/main/import%20datetime.py) (Home controller), [`exemplu.ui`](https://github.com/elenarobe/navycalc/blob/main/exemplu.ui) (Example window), [`ajutor.ui`](https://github.com/elenarobe/navycalc/blob/main/ajutor.ui) (Help window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_calculation["Calculation"]
  node_sequence["Sequence input<br/>[main.ui]"]
  node_navigation["Navigation calculations<br/>[import datetime.py]"]
  node_declination["Magnetic declination<br/>[import datetime.py]"]
end

subgraph group_windows["Application windows"]
  node_main["Home controller<br/>[import datetime.py]"]
  node_home["Home window<br/>[main.ui]"]
  node_example["Example window<br/>[exemplu.ui]"]
  node_help["Help window<br/>[ajutor.ui]"]
  node_about["About window<br/>[despre.ui]"]
end

subgraph group_results["Results"]
  node_answers["Calculated answers<br/>[main.ui]"]
  node_route["Route plot<br/>[main.ui]"]
end

node_user(("User"))

node_user -->|"enters data"| node_home
node_home -->|"provides input"| node_sequence
node_sequence -->|"calculates"| node_navigation
node_navigation -->|"displays results"| node_answers
node_navigation -->|"calculates"| node_declination
node_declination -->|"displays value"| node_answers
node_navigation -->|"simulates route"| node_route
node_main -->|"loads UI"| node_home
node_main -->|"loads UI"| node_example
node_main -->|"loads UI"| node_help
node_main -->|"loads UI"| node_about
node_home -->|"navigates"| node_example
node_home -->|"navigates"| node_help
node_home -->|"navigates"| node_about

click node_main "https://github.com/elenarobe/navycalc/blob/main/import%20datetime.py"
click node_home "https://github.com/elenarobe/navycalc/blob/main/main.ui"
click node_example "https://github.com/elenarobe/navycalc/blob/main/exemplu.ui"
click node_help "https://github.com/elenarobe/navycalc/blob/main/ajutor.ui"
click node_about "https://github.com/elenarobe/navycalc/blob/main/despre.ui"
click node_sequence "https://github.com/elenarobe/navycalc/blob/main/main.ui"
click node_navigation "https://github.com/elenarobe/navycalc/blob/main/import%20datetime.py"
click node_declination "https://github.com/elenarobe/navycalc/blob/main/import%20datetime.py"
click node_answers "https://github.com/elenarobe/navycalc/blob/main/main.ui"
click node_route "https://github.com/elenarobe/navycalc/blob/main/main.ui"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sequence,node_navigation,node_declination,node_user toneBlue
class node_main,node_home,node_example,node_help,node_about toneAmber
class node_answers,node_route toneMint
```

## Components

### Calculation

- [Sequence input](https://github.com/elenarobe/navycalc/blob/main/main.ui): `main.ui`
- [Navigation calculations](https://github.com/elenarobe/navycalc/blob/main/import%20datetime.py): `import datetime.py`
- [Magnetic declination](https://github.com/elenarobe/navycalc/blob/main/import%20datetime.py): `import datetime.py`

### Application windows

- [Home controller](https://github.com/elenarobe/navycalc/blob/main/import%20datetime.py): `import datetime.py`
- [Home window](https://github.com/elenarobe/navycalc/blob/main/main.ui): `main.ui`
- [Example window](https://github.com/elenarobe/navycalc/blob/main/exemplu.ui): `exemplu.ui`
- [Help window](https://github.com/elenarobe/navycalc/blob/main/ajutor.ui): `ajutor.ui`
- [About window](https://github.com/elenarobe/navycalc/blob/main/despre.ui): `despre.ui`

### Results

- [Calculated answers](https://github.com/elenarobe/navycalc/blob/main/main.ui): `main.ui`
- [Route plot](https://github.com/elenarobe/navycalc/blob/main/main.ui): `main.ui`

### Other components

- **User**

## Connections

- User → Home window: enters data (evidence: `README.md`)
- Home window → Sequence input: provides input (evidence: `README.md`)
- Sequence input → Navigation calculations: calculates (evidence: `README.md`)
- Navigation calculations → Calculated answers: displays results (evidence: `README.md`)
- Navigation calculations → Magnetic declination: calculates (evidence: `import datetime.py`)
- Magnetic declination → Calculated answers: displays value (evidence: `README.md`)
- Navigation calculations → Route plot: simulates route (evidence: `README.md`)
- Home controller → Home window: loads UI (evidence: `import datetime.py`)
- Home controller → Example window: loads UI (evidence: `import datetime.py`)
- Home controller → Help window: loads UI (evidence: `import datetime.py`)
- Home controller → About window: loads UI (evidence: `import datetime.py`)
- Home window → Example window: navigates (evidence: `README.md`)
- Home window → Help window: navigates (evidence: `README.md`)
- Home window → About window: navigates (evidence: `README.md`)
