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
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.
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
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