# indolikarquantifier/qledurestyle architecture

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

- Interactive diagram: https://gitdiagram.com/indolikarquantifier/qledurestyle
- Repository: https://github.com/indolikarquantifier/qledurestyle

## Overview

QLedureStyle is a Qt Widgets application and reusable custom-widget/style library. Its workflow starts the demo, installs the custom style, and displays a window using CFL widgets; separate Qt Designer plugins expose the widgets and style to design-time tooling. The graph also preserves the frame and button style-option types and logger as internal library responsibilities. The README is empty, and several subsystem relationships are not visible in the sampled source, so those links are omitted rather than inferred.

Main entry points: [`MainWindow.cpp`](https://github.com/indolikarquantifier/qledurestyle/blob/master/MainWindow.cpp) (Main window), [`main.cpp`](https://github.com/indolikarquantifier/qledurestyle/blob/master/main.cpp) (Qt startup), [`CFL/Plugins/Widgets/CFLWidgetsPlugin.cpp`](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Widgets/CFLWidgetsPlugin.cpp) (Widget plugin collection), [`CFL/Plugins/Widgets/CFLFramePlugin.cpp`](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Widgets/CFLFramePlugin.cpp) (Frame designer plugin)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_demo["Demo application"]
  node_startup["Qt startup<br/>[main.cpp]"]
  node_window["Main window<br/>[MainWindow.cpp]"]
end

subgraph group_widgets["Custom widgets"]
  node_frame["CFL frame<br/>[CFLFrame.cpp]"]
  node_button["CFL push button<br/>[CFLPushButton.cpp]"]
  node_widgetbase["Widget base<br/>[CFLWidget.cpp]"]
  node_logger["CFL logger<br/>[CFLLogger.cpp]"]
  node_frameoption["Frame style option"]
  node_buttonoption["Button style option"]
end

subgraph group_style["Style rendering"]
  node_ledurestyle["Ledure style<br/>[QLedureStyle.cpp]"]
end

subgraph group_designer["Designer plugins"]
  node_frameplugin["Frame designer plugin<br/>[CFLFramePlugin.cpp]"]
  node_buttonplugin["Button designer plugin"]
  node_widgetplugins["Widget plugin collection"]
  node_styleplugin["Style designer plugin"]
end

node_user(("Application user"))

node_user -->|"launches"| node_startup
node_startup -->|"installs style"| node_ledurestyle
node_startup -->|"creates window"| node_window
node_user -.->|"uses interface"| node_window
node_window -->|"uses"| node_frame
node_window -->|"uses"| node_button
node_frameplugin -->|"creates widget"| node_frame
node_buttonplugin -->|"creates widget"| node_button
node_widgetplugins -->|"aggregates"| node_frameplugin
node_widgetplugins -->|"aggregates"| node_buttonplugin
node_styleplugin -->|"creates style"| node_ledurestyle

click node_startup "https://github.com/indolikarquantifier/qledurestyle/blob/master/main.cpp"
click node_window "https://github.com/indolikarquantifier/qledurestyle/blob/master/MainWindow.cpp"
click node_frame "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/CFLFrame.cpp"
click node_button "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/CFLPushButton.cpp"
click node_widgetbase "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/CFLWidget.cpp"
click node_logger "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/CFLLogger.cpp"
click node_frameoption "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/StylesOption/QStyleOptionCFLFrame.cpp"
click node_buttonoption "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/StylesOption/QStyleOptionCFLPushButton.cpp"
click node_ledurestyle "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/QLedureStyle.cpp"
click node_frameplugin "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Widgets/CFLFramePlugin.cpp"
click node_buttonplugin "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Widgets/CFLPushButtonPlugin.cpp"
click node_widgetplugins "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Widgets/CFLWidgetsPlugin.cpp"
click node_styleplugin "https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Styles/QLedureStylePugin.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_startup,node_window,node_user toneBlue
class node_frame,node_button,node_widgetbase,node_logger,node_frameoption,node_buttonoption toneAmber
class node_ledurestyle toneMint
class node_frameplugin,node_buttonplugin,node_widgetplugins,node_styleplugin toneRose
```

## Components

### Demo application

- [Qt startup](https://github.com/indolikarquantifier/qledurestyle/blob/master/main.cpp): `main.cpp`
- [Main window](https://github.com/indolikarquantifier/qledurestyle/blob/master/MainWindow.cpp): `MainWindow.cpp`

### Custom widgets

- [CFL frame](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/CFLFrame.cpp): `CFL/Components/CFLFrame.cpp`
- [CFL push button](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/CFLPushButton.cpp): `CFL/Components/CFLPushButton.cpp`
- [Widget base](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/CFLWidget.cpp): `CFL/Components/CFLWidget.cpp`
- [CFL logger](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/CFLLogger.cpp): `CFL/Components/CFLLogger.cpp`
- [Frame style option](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/StylesOption/QStyleOptionCFLFrame.cpp): `CFL/Components/StylesOption/QStyleOptionCFLFrame.cpp`
- [Button style option](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/StylesOption/QStyleOptionCFLPushButton.cpp): `CFL/Components/StylesOption/QStyleOptionCFLPushButton.cpp`

### Style rendering

- [Ledure style](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Components/QLedureStyle.cpp): `CFL/Components/QLedureStyle.cpp`

### Designer plugins

- [Frame designer plugin](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Widgets/CFLFramePlugin.cpp): `CFL/Plugins/Widgets/CFLFramePlugin.cpp`
- [Button designer plugin](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Widgets/CFLPushButtonPlugin.cpp): `CFL/Plugins/Widgets/CFLPushButtonPlugin.cpp`
- [Widget plugin collection](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Widgets/CFLWidgetsPlugin.cpp): `CFL/Plugins/Widgets/CFLWidgetsPlugin.cpp`
- [Style designer plugin](https://github.com/indolikarquantifier/qledurestyle/blob/master/CFL/Plugins/Styles/QLedureStylePugin.cpp): `CFL/Plugins/Styles/QLedureStylePugin.cpp`

### Other components

- **Application user**

## Connections

- Application user → Qt startup: launches
- Qt startup → Ledure style: installs style (evidence: `main.cpp`)
- Qt startup → Main window: creates window (evidence: `main.cpp`)
- Application user → Main window: uses interface
- Main window → CFL frame: uses (evidence: `MainWindow.cpp`)
- Main window → CFL push button: uses (evidence: `MainWindow.cpp`)
- Frame designer plugin → CFL frame: creates widget (evidence: `CFL/Plugins/Widgets/CFLFramePlugin.cpp`)
- Button designer plugin → CFL push button: creates widget (evidence: `CFL/Plugins/Widgets/CFLPushButtonPlugin.cpp`)
- Widget plugin collection → Frame designer plugin: aggregates (evidence: `CFL/Plugins/Widgets/CFLWidgetsPlugin.cpp`)
- Widget plugin collection → Button designer plugin: aggregates (evidence: `CFL/Plugins/Widgets/CFLWidgetsPlugin.cpp`)
- Style designer plugin → Ledure style: creates style (evidence: `CFL/Plugins/Styles/QLedureStylePugin.cpp`)
