Bug 313606 - Provide Collapse All/Expand All actions in tree views’ nodes
Summary: Provide Collapse All/Expand All actions in tree views’ nodes
Status: RESOLVED FIXED
Alias: None
Product: calligraplan
Classification: Applications
Component: usability (other bugs)
Version First Reported In: Git
Platform: Chakra Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dag Andersen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 07:40 UTC by Adrián Chaves (Gallaecio)
Modified: 2017-10-11 11:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrián Chaves (Gallaecio) 2013-01-21 07:40:37 UTC
I would like to be able to expand or collapse all the children of a tree view node, or all of them. I’m thinking in the Gantt view but this can apply to other views (or editors) as well.

For example, I would like to be able to expand all the items in the right-side of the Gantt view at once. But I would also like to be able to expand all the children of a specific node (you can already expand a node, but you can’t expand its children but going one by one). Same applies for the collapse operation.

I’m thinking of context menu actions, although for the whole list (instead of specific nodes) a couple of buttons somewhere might be necessary.

Reproducible: Always
Comment 1 matpen 2016-02-28 20:15:15 UTC
Also, plan should remember the status of the various treeviews when rescheduling and/or restarting the program. It seems that all nodes get collapsed after such operations, which is a pain with many nodes.
Comment 2 Dag Andersen 2017-10-06 10:53:25 UTC
Git commit afa05aa737a8824e3558f52451d4d53ebb381694 by Dag Andersen.
Committed on 06/10/2017 at 10:52.
Pushed by danders into branch 'master'.

Plan: Provide expand/collapse in context menu

Expands/collapses item and all its children if cursor is on an item.

M  +5    -0    plan/libs/ui/kptaccountseditor.cpp
M  +3    -1    plan/libs/ui/kptaccountsview.cpp
M  +5    -0    plan/libs/ui/kptcalendareditor.cpp
M  +2    -0    plan/libs/ui/kptdocumentseditor.cpp
M  +18   -3    plan/libs/ui/kptganttview.cpp
M  +1    -1    plan/libs/ui/kptrequestresourcespanel.cpp
M  +6    -0    plan/libs/ui/kptresourceappointmentsview.cpp
M  +6    -0    plan/libs/ui/kptresourceeditor.cpp
M  +6    -0    plan/libs/ui/kptscheduleeditor.cpp
M  +15   -0    plan/libs/ui/kpttaskeditor.cpp
M  +13   -0    plan/libs/ui/kpttaskstatusview.cpp
M  +68   -2    plan/libs/ui/kptviewbase.cpp
M  +18   -2    plan/libs/ui/kptviewbase.h

https://commits.kde.org/calligra/afa05aa737a8824e3558f52451d4d53ebb381694
Comment 3 Dag Andersen 2017-10-11 11:46:44 UTC
Git commit 930577b39d7d12b8a59b5ce29b775b1fa73a7934 by Dag Andersen.
Committed on 11/10/2017 at 11:46.
Pushed by danders into branch 'master'.

Plan: Retain treeviews expanded rows across operations

The following is handled:
. save->load
. Recalculate schedule
. Change schedule

Show/hide project is not handled but this is nothing a user will do often,
so I think it should be acceptable.
FEATURE

M  +1    -0    plan/kptmaindocument.cpp
M  +2    -2    plan/kptview.cpp
M  +3    -0    plan/libs/models/kptnodeitemmodel.cpp
M  +3    -0    plan/libs/models/kptresourceappointmentsmodel.cpp
M  +3    -0    plan/libs/models/kpttaskstatusmodel.cpp
M  +11   -0    plan/libs/ui/kptaccountseditor.cpp
M  +4    -1    plan/libs/ui/kptaccountseditor.h
M  +26   -0    plan/libs/ui/kptaccountsview.cpp
M  +1    -0    plan/libs/ui/kptaccountsview.h
M  +46   -1    plan/libs/ui/kptganttview.cpp
M  +2    -0    plan/libs/ui/kptganttview.h
M  +26   -0    plan/libs/ui/kptresourceappointmentsview.cpp
M  +3    -0    plan/libs/ui/kptresourceappointmentsview.h
M  +50   -3    plan/libs/ui/kpttaskeditor.cpp
M  +2    -1    plan/libs/ui/kpttaskeditor.h
M  +51   -0    plan/libs/ui/kpttaskstatusview.cpp
M  +3    -0    plan/libs/ui/kpttaskstatusview.h
M  +96   -20   plan/libs/ui/kptviewbase.cpp
M  +15   -2    plan/libs/ui/kptviewbase.h

https://commits.kde.org/calligra/930577b39d7d12b8a59b5ce29b775b1fa73a7934