Skip to content

Commit

Permalink
GUI spatial branch colouring: Add menu separators, update tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnlaffan committed Dec 31, 2023
1 parent 918449c commit 6c14981
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions lib/Biodiverse/GUI/Tabs/Spatial.pm
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,9 @@ sub init_branch_colouring_menu {
},
);

$menu->append(Gtk2::SeparatorMenuItem->new);
$menu->append(Gtk2::MenuItem->new_with_label('Lists in this output:'));

state $re_skip_list = qr/(^RECYCLED_SET$)|(SPATIAL_RESULTS|CANAPE>>)$/;

my $output_ref = $self->{output_ref};
Expand All @@ -588,12 +591,14 @@ sub init_branch_colouring_menu {
);
}

$menu->append(Gtk2::SeparatorMenuItem->new);
$menu->append(Gtk2::MenuItem->new_with_label('Lists across project basedatas:'));

# now add the lists from other spatial outputs in the project,
# organised by their parent basedatas
my $own_bd = $output_ref->get_basedata_ref;
my @project_basedatas
= #grep {$_ ne $own_bd}
@{$self->{project}->get_base_data_list};
= @{$self->{project}->get_base_data_list};
foreach my $bd (@project_basedatas) {
my @output_refs
= grep {$_ ne $output_ref}
Expand Down Expand Up @@ -681,22 +686,22 @@ and black denotes those in both. From these one can see
the turnover of branches between the groups (cells) in
each neighbour set.
The next of menu options are list indices in the spatial output
that belongs to this tab. The remainder are lists across
other spatial outputs in the project, organised by their
basedata objects. These are sorted in the same order as in
the Outputs tab. Outputs with no list indices are not shown.
The next set of menu options are list indices in the spatial
output that belongs to this tab. The remainder are lists
across other spatial outputs in the project, organised by their
basedata objects. These are in the same order as in the
Outputs tab. Basedatas and outputs with no list indices are
not shown.
If a branch is not in the list then it is highlighted
using a default colour (usually black). If the selected
output has no labels that are also on the tree then no
highlighting is done.
highlighting is done (all branches remain black).
Right clicking on a group (cell) fixes the highlighting
in place, stopping changes to the branch colouring as
the mouse is hovered over other groups. This allows
the tree to be exported with the current colouring
(if the tree being plotted is the Project level tree).
the tree to be exported with the current colouring.
EOT
;
Expand Down

0 comments on commit 6c14981

Please sign in to comment.