BCDA-APS / gemviz

Data visualization for tiled
https://bcda-aps.github.io/gemviz/
Other
4 stars 0 forks source link

refactor main window per storyboard #24

Closed prjemian closed 1 year ago

prjemian commented 1 year ago

Adjust the main window design to better match the storyboard design. Include consideration of a QtCore.QSplitter (as mentioned in #23) which allows the user to adjust the size balance of two adjacent panels.

prjemian commented 1 year ago

This refactoring will better fit the planned layout for the search filter panel (#15).

prjemian commented 1 year ago

Main window is responsible for this view: Slide7

prjemian commented 1 year ago

Only make changes in the .ui file.

prjemian commented 1 year ago

Ok, minor code change for handling the FilterPanel() widget. It's an improvement, IMO.

prjemian commented 1 year ago

Also reflow the filterpanel UI from horizontal to vertical.

prjemian commented 1 year ago

Refactored UI: image

The QSplitters are used to move the divider between the two parts. Also, a QScrollArea is used in the Search Catalog and Search Terms and another one in the Matching Run(s) in case the content starts to take up too much space.

prjemian commented 1 year ago

In each QGroupBox, the designer automatically adds a QWidget inside the QScrollArea. If you delete the QWidget, the designer also deletes the encompassing QScrollArea.

Summary: Do not delete the QWidget.

Instead, give each QScrollArea a name and we'll replace its widget in the mainwindow.py file. https://github.com/BCDA-APS/tiled-viz2023/blob/77acfc854e6aca2e39bfa81d88d3db076ded28dd/gemviz23/demo/mainwindow.py#L24