Difference between revisions of "GEPS 002: RelationView Expand and Collapse"

From Gramps
Jump to: navigation, search
(New page: Proposed changes for enhancing RelationView by adding expand/collapse Category:GEPS ==Introduction== This page proposes and discusses possible changes to the RelationView of the GRAMP...)
 
(No difference)

Revision as of 11:35, 3 September 2007

Proposed changes for enhancing RelationView by adding expand/collapse

Introduction

This page proposes and discusses possible changes to the RelationView of the GRAMPS GUI (Relationships).

The first proposed change is the addition of expand/collapse buttons on the Parents and Family lines. This would allow the user to hide the details of the Parents, or a particular Family. This functionality helps a researcher focus their attention on one aspect (family) of the person.

This differs from the "View" -> "Show Siblings" and "Show Details" in a couple of ways:

  1. the expand/collapse is specific to a particular family
  2. only lasts for the current session

The change does remember what families have been collapsed, so when you return to a person, you get the same view as previous view (for this session).

Example/Screenshot

The first screenshot shows the RelationView as normal, but includes the "Collapse" icon (currently a magnifying glass with a minus sign.)

Expand-1.png

The second screenshot shows the RelationView, and now includes the "Expand" icon (currently a magnifying glass with a plus sign.)

Expand-2.png

Code

The changes necessary to implement these changes can be found here. This can be applied to version gramps30.

Options

The families/parents to expand/collapse are kept in a list. Currently, the list is kept during the session, but could be cleared on changing the active person.

The icon can be changed to something better. I wanted a triangle like on the people view (">" when collapsed, "V" when expanded) better there wasn't anything like that in stock gtk icons).

Impact

Requires a single phrase for translation: "Expand/Collapse section".

Has a minimal screen impact.

The handles of families that are collapsed are placed into a list. A substantial number of families would have to be collapsed for this to have an effect on performance. This is deemed to be unlikely.

Future versions

One could expand/collapse the siblings (which would make it so that the Show Siblings option would not be needed). However, this could make the screen too busy (considering that we would like to add some addition elements to this page).

User Contributions