Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI: Rework the Tab side menus #907

Merged
merged 41 commits into from
Jan 6, 2024

Conversation

shawnlaffan
Copy link
Owner

@shawnlaffan shawnlaffan commented Jan 6, 2024

Something of an omnibus PR as it addresses several issues encountered while working on #902.

Updates #902 - support exports of the displayed tree
Updates #905 - tree plot controls are now in their own submenu of the side menu
Updates #906 - support tree plotting by depth across all tabs that plot trees
Fixes #908 - export interface disables keyboard shortcuts

Also refactors (nearly) all of the $self->{xmlPage}->get_object calls to use a generic method.

Also ensure we update the tree side menu when
an analysis has been run.
Otherwise we were ending up with a mix of colours
from different colouring systems.

This was missed when storing colours in
commit d60f19d
And remove it from the display menu.
These were missed in recent commits that
focused on the spatial tab.
Micro-optimisation but might be useful.
Useful for large data sets.
This makes it available to other tab objects.
And in the process, we now keep track of the plot mode
across trees.  So if a user wants depth based plotting
then this is consistent as the tree is changed.
Has a lot of overlap with the Labels tab,
but there are sufficient differences to suggest
refactoring would make maintenance harder.
Also avoid some uninitialised warnings.
This unifies the interfaces across
the different tab types and enables
a future refactor to combine the common
tree menu items.
Same process as the previous commit,
although it is only used in the
Clustering tab and its subclasses.
@shawnlaffan shawnlaffan merged commit 461d853 into master Jan 6, 2024
8 checks passed
@shawnlaffan shawnlaffan deleted the issue_902_export_tree_from_spatial_tab branch January 6, 2024 05:03
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.

GUI Export interface disables keyboard shortcuts when cancelled
1 participant