Skip to content

Beautify Overview (Part 1)#1672

Merged
jws-1 merged 15 commits into
developfrom
beautify-overview-01
Sep 27, 2023
Merged

Beautify Overview (Part 1)#1672
jws-1 merged 15 commits into
developfrom
beautify-overview-01

Conversation

@jws-1
Copy link
Copy Markdown
Member

@jws-1 jws-1 commented Sep 25, 2023

This PR implements the first pass of beautification of the Overview Tab, with the main goal of ensuring that nodes are properly layed out and resized.

@jws-1 jws-1 marked this pull request as ready for review September 25, 2023 13:28
Copy link
Copy Markdown
Member

@trisyoungs trisyoungs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely looking better. Just a single question on perhaps reusing property definitions in some way, but that's about it from me!

Comment on lines +41 to +46
Layout.fillHeight: true
Layout.fillWidth: true
Layout.maximumHeight: 200
Layout.maximumWidth: 200
Layout.preferredHeight: 100
Layout.preferredWidth: 200
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is repeated for all intramolecular types, can these properties be captured in a subclass / custom widget type of way?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That'd be nice, although it seems harder to do than it sounds - I'll look into it a bit more though.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turns out that this is quite difficult to do, since the Layout... properties are "attached" by the RowLayout that the various intramolecular objects live in. This means we couldn't, as far as I can tell, have a base Intramolecular class with these properties that we then inherit from, as the attached properties wouldn't be defined...

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suspected it might be! Time to move on I guess...

@jws-1 jws-1 merged commit d390bda into develop Sep 27, 2023
@jws-1 jws-1 deleted the beautify-overview-01 branch September 27, 2023 14:44
rprospero added a commit that referenced this pull request Mar 11, 2024
Co-authored-by: Adam Washington <adam.washington@stfc.ac.uk>
rprospero added a commit that referenced this pull request Apr 8, 2024
Co-authored-by: Adam Washington <adam.washington@stfc.ac.uk>
rprospero added a commit that referenced this pull request Apr 9, 2024
Co-authored-by: Adam Washington <adam.washington@stfc.ac.uk>
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.

3 participants