Skip to content

GeneralPage: reflow General Settings into 3 columns - #27

Merged
arkottke merged 5 commits into
mainfrom
general-settings-3col-layout
Sep 9, 2026
Merged

GeneralPage: reflow General Settings into 3 columns#27
arkottke merged 5 commits into
mainfrom
general-settings-3col-layout

Conversation

@arkottke

@arkottke arkottke commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Reflows the GeneralPage ("General Settings") layout from 2 columns (with one column stacking 4 group boxes vertically) into 3 columns to reduce vertical space on laptop screens.
  • Column 0: Project (wider, spans rows 0-1)
  • Column 1: Type of Analysis, Site Property Variation
  • Column 2: Calculation Parameters, Layer Discretization
  • Also updates .github/copilot-instructions.md build/test/format sections to match the current CMake Presets + vcpkg workflow.

Test plan

  • Relying on CI (example-tests.yml) to build via CMake Presets + vcpkg and run the example regression tests, since this sandbox lacks a prebuilt Qt6/Qwt toolchain.
  • Manual visual check of the General Settings page recommended before merge.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

arkottke and others added 5 commits September 9, 2026 11:57
Split the vertically-stacked group boxes (Type of Analysis, Site
Property Variation, Calculation Parameters, Layer Discretization)
into two columns alongside the Project column, reducing the page's
overall height for smaller/laptop screens.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Correct outdated build instructions (CMake Presets + vcpkg, not plain
cmake/make), document the actual CTest regression test workflow via
scripts/compare_examples.py, and clarify clang-format enforcement.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
setEditorData() called comboBox->addItems() every time it ran, but Qt
re-invokes setEditorData() on the still-open editor whenever the model
emits dataChanged() (not just once at editor creation). This duplicated
the Type list, so ADVANCED_FEATURES builds showed 6 entries instead of
the expected 3 (2 without ADVANCED_FEATURES). Move the addItems() call
to createEditor(), which only runs once per editor.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Motion Input Location (and other depth drop-downs backed by
DepthComboBox/DepthComboBoxDelegate) displayed a bare number for a
specified depth, unlike the QDoubleSpinBox-based depth fields
elsewhere which show a ' <unit>' suffix via Units::instance()->length().

setDepth() now appends the current length unit suffix to the item
text. Added a parseDepth() helper that extracts the leading numeric
value while ignoring a trailing unit suffix, used by depth() and the
live-typing toDouble() slot so parsing still works with or without the
suffix. Added an updateUnits() slot connected to Units::systemChanged
so the suffix refreshes immediately if the unit system is changed while
a depth is already specified.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@arkottke
arkottke merged commit 0ead846 into main Sep 9, 2026
4 checks passed
@arkottke
arkottke deleted the general-settings-3col-layout branch September 10, 2026 15:18
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