# papergooserus/papergooserus_file architecture

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

- Interactive diagram: https://gitdiagram.com/papergooserus/papergooserus_file
- Repository: https://github.com/papergooserus/papergooserus_file
- Video tour (about a minute): https://gitdiagram.com/papergooserus/papergooserus_file/video

## Overview

PaperGooseRus_FILE is a GTK4 file-manager interface scaffold, not a functioning file manager: its navigation, file panels, properties area, and terminal are placeholders. The documented workflow is opening the window and viewing this arranged interface; the menu provides an exit action and the status area displays “Готово.” The main-window source shows how it composes these regions and uses the paned wrapper. The entry-point implementation was read but not excerpted, so its relationship to window creation is omitted; the README confirms the terminal is not yet backed by VTE.

Main entry points: [`core/ui/mainwindow.c`](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c) (Main window), [`core/wrappers/paned.c`](https://github.com/papergooserus/papergooserus_file/blob/main/core/wrappers/paned.c) (Resizable file split), [`core/ui/menubar.c`](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/menubar.c) (Application menu), [`core/ui/statusbar.c`](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/statusbar.c) (Status bar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Window shell"]
  node_window["Main window<br/>[mainwindow.c]"]
end

subgraph group_regions["Interface regions"]
  node_menu["Application menu<br/>[menubar.c]"]
  node_status["Status bar<br/>[statusbar.c]"]
  node_navigation["Navigation placeholder<br/>[mainwindow.c]"]
  node_filepanes["File panel placeholders<br/>[mainwindow.c]"]
  node_properties["Properties placeholder<br/>[mainwindow.c]"]
  node_terminal["Terminal placeholder<br/>[mainwindow.c]"]
end

subgraph group_layouts["Layout helpers"]
  node_splitter["Resizable file split<br/>[paned.c]"]
  node_boxhelper["Box wrapper<br/>[box.c]"]
  node_gridhelper["Grid wrapper<br/>[grid.c]"]
end

node_user(("User"))

node_user -.->|"uses"| node_window
node_window -->|"creates"| node_menu
node_window -->|"creates"| node_status
node_window -->|"creates"| node_navigation
node_window -->|"creates"| node_filepanes
node_window -->|"calls"| node_splitter
node_splitter -->|"wraps"| node_filepanes
node_window -->|"creates"| node_properties
node_window -->|"creates"| node_terminal

click node_window "https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c"
click node_menu "https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/menubar.c"
click node_status "https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/statusbar.c"
click node_navigation "https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c"
click node_filepanes "https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c"
click node_splitter "https://github.com/papergooserus/papergooserus_file/blob/main/core/wrappers/paned.c"
click node_properties "https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c"
click node_terminal "https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c"
click node_boxhelper "https://github.com/papergooserus/papergooserus_file/blob/main/core/wrappers/box.c"
click node_gridhelper "https://github.com/papergooserus/papergooserus_file/blob/main/core/wrappers/grid.c"

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_window,node_user toneBlue
class node_menu,node_status,node_navigation,node_filepanes,node_properties,node_terminal toneAmber
class node_splitter,node_boxhelper,node_gridhelper toneMint
```

## Components

### Window shell

- [Main window](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c): `core/ui/mainwindow.c`

### Interface regions

- [Application menu](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/menubar.c): `core/ui/menubar.c`
- [Status bar](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/statusbar.c): `core/ui/statusbar.c`
- [Navigation placeholder](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c): `core/ui/mainwindow.c`
- [File panel placeholders](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c): `core/ui/mainwindow.c`
- [Properties placeholder](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c): `core/ui/mainwindow.c`
- [Terminal placeholder](https://github.com/papergooserus/papergooserus_file/blob/main/core/ui/mainwindow.c): `core/ui/mainwindow.c`

### Layout helpers

- [Resizable file split](https://github.com/papergooserus/papergooserus_file/blob/main/core/wrappers/paned.c): `core/wrappers/paned.c`
- [Box wrapper](https://github.com/papergooserus/papergooserus_file/blob/main/core/wrappers/box.c): `core/wrappers/box.c`
- [Grid wrapper](https://github.com/papergooserus/papergooserus_file/blob/main/core/wrappers/grid.c): `core/wrappers/grid.c`

### Other components

- **User**

## Connections

- User → Main window: uses
- Main window → Application menu: creates (evidence: `core/ui/mainwindow.c`)
- Main window → Status bar: creates (evidence: `core/ui/mainwindow.c`)
- Main window → Navigation placeholder: creates (evidence: `core/ui/mainwindow.c`)
- Main window → File panel placeholders: creates (evidence: `core/ui/mainwindow.c`)
- Main window → Resizable file split: calls (evidence: `core/ui/mainwindow.c`)
- Resizable file split → File panel placeholders: wraps (evidence: `core/wrappers/paned.c`)
- Main window → Properties placeholder: creates (evidence: `core/ui/mainwindow.c`)
- Main window → Terminal placeholder: creates (evidence: `core/ui/mainwindow.c`)
