mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
Utilities: Add a disk space usage analyzation program.
SpaceAnalyzer: Partially address code review changes. - Use GUI::CommonActions::make_about_action(). - Pass large arguments by const reference instead of by value. - Mark const functions as such. - Add newline at end of SpaceAnalyzer.af - Use full words instead of abbreviations in variable names. - Use application's namespace instead of 'TreeMap'. - move() certain assignments. - Use member declaration initialization. - Initialize TreeNode* member of QueueEntry. - Rewrite find_mount_for_path to return MountInfo* instead. - Rename ITreeMap and ITreeMapNode to TreeMap and TreeMapNode. - Replace ext suffix with rect suffix for rectangles. SpaceAnalyzer: Further address code review and coding style. - Remove get prefix from accessor functions. - Layout algorithm in its own function, with callback. - Remove nullptr comparisons. - Store lstat errors in error_accumulator. - Use Rect::shatter. - Use Rect's orientation based functions. SpaceAnalyzer: Make sort_children_by_area const qualified.
This commit is contained in:
parent
56ff0f89af
commit
e575d3fd3d
9 changed files with 801 additions and 0 deletions
4
Base/res/apps/SpaceAnalyzer.af
Normal file
4
Base/res/apps/SpaceAnalyzer.af
Normal file
|
@ -0,0 +1,4 @@
|
|||
[App]
|
||||
Name=SpaceAnalyzer
|
||||
Executable=/bin/SpaceAnalyzer
|
||||
Category=Utilities
|
BIN
Base/res/icons/16x16/app-space-analyzer.png
Normal file
BIN
Base/res/icons/16x16/app-space-analyzer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.4 KiB |
BIN
Base/res/icons/32x32/app-space-analyzer.png
Normal file
BIN
Base/res/icons/32x32/app-space-analyzer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 952 B |
Loading…
Add table
Add a link
Reference in a new issue