Skip to content

Docking: every view is a dock, and layouts are saved and restored - #4

Merged
teo1747 merged 1 commit into
mainfrom
feat/docking-layout
Nov 12, 2026
Merged

teo1747 merged 1 commit into
mainfrom
feat/docking-layout

Conversation

@teo1747

@teo1747 teo1747 commented Nov 12, 2026

Copy link
Copy Markdown
Member

What

  • Qt Advanced Docking System 5.1.1 replaces Qt's own docks, as §11 q1 decided. It's fetched at configure time by version and SHA-256, built as a shared library (LGPL-2.1-or-later, linked dynamically, §9) and listed in third_party/components.json, so it appears in the About box's notices.
  • Workbench (app/src/workbench.*) owns the layout:
    • every view can be moved, split, tabbed, floated onto another monitor and closed;
    • the layout is saved on close and restored on start;
    • layouts can be saved by name and opened from View › Layouts;
    • View › Reset layout brings back the default;
    • a layout from another layout version is ignored, never half applied.
  • The main window has two views, "Core" and "Core log", both ordinary docks.
  • tst_workbench checks the rule: no view is fixed, a layout saved is the layout restored in a new window, closed views stay closed, named layouts survive a restart, reset works, and a wrong-version layout is refused.
  • Spec: §7 states the layout rule ("The layout is the person's"), and §9 lists its test.
  • CI and docs: Linux CI installs libxcb1-dev (ADS links it). The development guide notes that the first configure downloads ADS.

Why

A fully flexible layout is the owner's main requirement. Testing it now, with the first two views, proves it on Windows, Linux and macOS before more views depend on it. ADS 5.x also adds the Wayland support that 4.x lacked.

Not yet

Layouts are kept in the user's settings until projects exist (S1); then they move into the project's .emblink-studio/ (§6).

The main window now uses Qt Advanced Docking System 5.1.1, as §11 q1
decided. It is fetched by version and SHA-256, built as a shared
library (LGPL-2.1-or-later, linked dynamically) and listed in
third_party/components.json.

Workbench (app/src/workbench.*) places the views and handles layouts:
- every view can be moved, split, tabbed, floated and closed;
- the layout is saved on close and restored on start;
- layouts can be saved by name and opened from View > Layouts;
- View > Reset layout brings back the default;
- a layout from another layout version is ignored.

"Core" and "Core log" are its first two views. tst_workbench checks
the rule: no view is fixed, a layout saved is the layout restored
in a new window, closed views stay closed, named layouts survive a
restart, and reset works.

Spec §7 states the layout rule and §9 its test. Linux CI installs
libxcb1-dev, which ADS links. The development guide says the first
configure downloads ADS.

Signed-off-by: teo1747 <148846371+teo1747@users.noreply.github.com>
@teo1747
teo1747 merged commit f08d7f7 into main Nov 12, 2026
11 checks passed
@teo1747
teo1747 deleted the feat/docking-layout branch November 12, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant