# sakamochanq/qgis-nx architecture

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

- Interactive diagram: https://gitdiagram.com/sakamochanq/qgis-nx
- Repository: https://github.com/sakamochanq/qgis-nx

## Overview

qgis-nx is an unofficial Nintendo Switch application presenting a QGIS-branded interface, not a demonstrated GIS engine. Its runtime initializes the renderer and application, shows a timed splash screen, then opens a tabbed home screen; the tabs currently change a display number or show help, while Exit closes the app. The application also manages Joy-Con notification LEDs. The README gives no further product capabilities, and the sampled UI code does not show map, layer, tile, or CRS functionality beyond tab labels.

Main entry points: [`gui/MainApplication.cpp`](https://github.com/sakamochanq/qgis-nx/blob/master/gui/MainApplication.cpp) (Application lifecycle), [`gui/HomeScreen.cpp`](https://github.com/sakamochanq/qgis-nx/blob/master/gui/HomeScreen.cpp) (Home screen), [`source/main.cpp`](https://github.com/sakamochanq/qgis-nx/blob/master/source/main.cpp) (Runtime entry), [`gui/SplashScreen.cpp`](https://github.com/sakamochanq/qgis-nx/blob/master/gui/SplashScreen.cpp) (Splash screen)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application runtime"]
  node_entry["Runtime entry<br/>[main.cpp]"]
  node_app["Application lifecycle"]
end

subgraph group_interface["User interface"]
  node_splash["Splash screen<br/>[SplashScreen.cpp]"]
  node_home["Home screen<br/>[HomeScreen.cpp]"]
  node_logo["Splash logo asset"]
end

subgraph group_device["Device service"]
  node_led["Joy-Con LED control"]
end

node_user(("Switch user"))
node_switch_services["Switch HID/Hidsys"]
node_renderer["Plutonium renderer"]

node_user -->|"launches"| node_entry
node_entry -->|"creates"| node_renderer
node_entry -->|"loads and shows"| node_app
node_app -->|"creates and loads"| node_splash
node_app -->|"creates"| node_home
node_app -->|"updates progress"| node_splash
node_app -->|"switches layout"| node_home
node_user -->|"navigates tabs"| node_home
node_home -->|"exit callback"| node_app
node_splash -->|"loads image"| node_logo
node_app -->|"starts, updates, stops"| node_led
node_led -->|"controls pad LEDs"| node_switch_services

click node_entry "https://github.com/sakamochanq/qgis-nx/blob/master/source/main.cpp"
click node_app "https://github.com/sakamochanq/qgis-nx/blob/master/gui/MainApplication.cpp"
click node_splash "https://github.com/sakamochanq/qgis-nx/blob/master/gui/SplashScreen.cpp"
click node_home "https://github.com/sakamochanq/qgis-nx/blob/master/gui/HomeScreen.cpp"
click node_logo "https://github.com/sakamochanq/qgis-nx/tree/master/romfs"
click node_led "https://github.com/sakamochanq/qgis-nx/blob/master/services/JoyConLedController.cpp"

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_entry,node_app,node_user toneBlue
class node_splash,node_home,node_logo toneAmber
class node_led toneMint
class node_switch_services,node_renderer toneIndigo
```

## Components

### Application runtime

- [Runtime entry](https://github.com/sakamochanq/qgis-nx/blob/master/source/main.cpp): `source/main.cpp`
- [Application lifecycle](https://github.com/sakamochanq/qgis-nx/blob/master/gui/MainApplication.cpp): `gui/MainApplication.cpp`

### User interface

- [Splash screen](https://github.com/sakamochanq/qgis-nx/blob/master/gui/SplashScreen.cpp): `gui/SplashScreen.cpp`
- [Home screen](https://github.com/sakamochanq/qgis-nx/blob/master/gui/HomeScreen.cpp): `gui/HomeScreen.cpp`
- [Splash logo asset](https://github.com/sakamochanq/qgis-nx/tree/master/romfs): `romfs`

### Device service

- [Joy-Con LED control](https://github.com/sakamochanq/qgis-nx/blob/master/services/JoyConLedController.cpp): `services/JoyConLedController.cpp`

### Other components

- **Switch user**
- **Switch HID/Hidsys**
- **Plutonium renderer**

## Connections

- Switch user → Runtime entry: launches (evidence: `source/main.cpp`)
- Runtime entry → Plutonium renderer: creates (evidence: `source/main.cpp`)
- Runtime entry → Application lifecycle: loads and shows (evidence: `source/main.cpp`)
- Application lifecycle → Splash screen: creates and loads (evidence: `gui/MainApplication.cpp`)
- Application lifecycle → Home screen: creates (evidence: `gui/MainApplication.cpp`)
- Application lifecycle → Splash screen: updates progress (evidence: `gui/MainApplication.cpp`)
- Application lifecycle → Home screen: switches layout (evidence: `gui/MainApplication.cpp`)
- Switch user → Home screen: navigates tabs (evidence: `gui/HomeScreen.cpp`)
- Home screen → Application lifecycle: exit callback (evidence: `gui/HomeScreen.cpp`)
- Splash screen → Splash logo asset: loads image (evidence: `gui/SplashScreen.cpp`)
- Application lifecycle → Joy-Con LED control: starts, updates, stops (evidence: `gui/MainApplication.cpp`)
- Joy-Con LED control → Switch HID/Hidsys: controls pad LEDs (evidence: `services/JoyConLedController.cpp`)
