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

Support switching pakfile explorer between tree and flat view #58

Open
tsa96 opened this issue Jul 24, 2024 · 0 comments
Open

Support switching pakfile explorer between tree and flat view #58

tsa96 opened this issue Jul 24, 2024 · 0 comments
Labels
Size: Medium Something that may take a few days or so to implement. Type: Enhancement This can improve a system/thing already in place. Where: UI Something that primarily affects the Lumper.UI codebase.

Comments

@tsa96
Copy link
Member

tsa96 commented Jul 24, 2024

Add a button to the top bar of the pakfile explorer that toggles between showing the pakfile contents as a tree (the current system), or a flat list.This used to be possible with the old pakfile UI and it was really nice as a way to quickly glance over the contents of a pakfile.

In theory it's quite easy to do, just create a FlatTreeDataGridSource as well as the current HierarchicalTreeDataGridSource then expose a reactive property that points either of the two (probably best to lazily construct the flat tree for perf).

There's a PR into the TreeDataGrid repo discussing "making this easier", which was never merged, I think because some of the changes made it in as part of a separate PR - worth taking a look at. Also be sure to see https://github.com/AvaloniaUI/Avalonia.Controls.TreeDataGrid/tree/master/samples/TreeDataGridDemo for example usage.

This is mostly blocked until #39 is merged. Someone could get started if they want, but pakfile explorer code on that branch may change.

@tsa96 tsa96 added Size: Medium Something that may take a few days or so to implement. Type: Enhancement This can improve a system/thing already in place. Where: UI Something that primarily affects the Lumper.UI codebase. labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: Medium Something that may take a few days or so to implement. Type: Enhancement This can improve a system/thing already in place. Where: UI Something that primarily affects the Lumper.UI codebase.
Projects
None yet
Development

No branches or pull requests

1 participant