summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FileSystemModel.h
AgeCommit message (Collapse)Author
2022-04-04LibGUI: Return Optional<Node const&> from node_for_path()Ali Mohammad Pur
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-03-12Libraries: Use default constructors/destructors in LibGUILenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2021-11-11Everywhere: Pass AK::StringView by valueAndreas Kling
2021-09-27LibGUI: Add 'on_rename_successful' callback to FileSystemModelMarco Cutecchia
2021-09-08LibGUI: West Const to East Const refactorDawid Wolosowicz
2021-09-08LibGUI: Remove an unnecessarily specific inline capacityDawid Wolosowicz
2021-08-31LibGUI: Rename FileSystemModel's "Owner" column to "User"Andreas Kling
A file is owned by a User+Group, not an Owner+Group.
2021-08-08LibGUI: Implement granular updates for FileSystemModelsin-ack
FileSystemModel will now react to specific events from Core::FileWatcher in order to granularly update its data based on addition or removal of files from the tree. Metadata changes are currently not handled, but in the future they can be used to re-stat() a file to get its updated statistics.
2021-08-08LibGUI: Prefix some private FileSystemModel::Node members with m_sin-ack
This commit has no functional changes.
2021-08-06Everywhere: Replace Model::update() with Model::invalidate()sin-ack
Most of the models were just calling did_update anyway, which is pointless since it can be unified to the base Model class. Instead, code calling update() will now call invalidate(), which functions identically and is more obvious in what it does. Additionally, a default implementation is provided, which removes the need to add empty implementations of update() for each model subclass. Co-Authored-By: Ali Mohammad Pur <ali.mpfard@gmail.com>
2021-07-19File Manager: Differentiate between navigation and rename errorsls
Adds a new on_rename_error handler and renames the old on_error handler to on_directory_change_error in FileSystemModel. The on_rename_error handler creates a MessageDialog with the error message.
2021-05-12Userland+LibCore: Update FileWatcher + its users for InodeWatcher 2.0sin-ack
With the new InodeWatcher API, the old style of creating a watcher per inode will no longer work. Therefore the FileWatcher API has been updated to support multiple watches, and its users have also been refactored to the new style. At the moment, all operations done on a (Blocking)FileWatcher return Result objects, however, this may be changed in the future if it becomes too obnoxious. :^) Co-authored-by: Gunnar Beutner <gunnar@beutner.name>
2021-04-23AK: Rename adopt() to adopt_ref()Andreas Kling
This makes it more symmetrical with adopt_own() (which is used to create a NonnullOwnPtr from the result of a naked new.)
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-04-17LibGUI: Make some API's take String instead of StringViewAndreas Kling
2021-04-09LibGUI: Allow navigating into symlinked directories in FilePickerAndreas Kling
If you double-click on a symlink to a directory while browsing with a FilePicker, you most likely want to open the directory the symlink points to, not open the symlink itself. So let's do that. :^)
2021-02-11LibGUI: Use Core::FileWatcher in FileSystemModelDexesTTP
This replaces the manual watch_file and Notifier handling with the new Core::FileWatcher wrapper, which reduces the manual handling and makes the code easier to reason about :^)
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling