summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Model.h
AgeCommit message (Collapse)Author
2021-11-11Everywhere: Pass AK::StringView by valueAndreas Kling
2021-09-08LibGUI: West Const to East Const refactorDawid Wolosowicz
2021-09-08LibGUI: Remove an unnecessarily specific inline capacityDawid Wolosowicz
2021-08-08LibGUI: Implement granular operations for Model subclassessin-ack
These can be used by Model subclasses to signal the exact operations that happened to a model, so that persistent model indices in that area are not invalidated.
2021-08-08LibGUI: Implement persistent indices for modelssin-ack
This patch adds persistent indices to models. A PersistentModelIndex is a ModelIndex that will survive most model updates (provided that the data the PersistentModelIndex points to has not been removed by the model's data store). PersistentModelIndex objects can be safely held by objects outside the model they originated from.
2021-08-06LibGUI+Applications: Rename Model::is_valid to is_within_rangesin-ack
The previous name did not describe what the function checked, and was easy to confuse with ModelIndex::is_valid.
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-04-29Everywhere: "indexes" => "indices"Andreas Kling
I've wasted a silly amount of time in the past fretting over which of these words to use. Let's just choose one and use it everywhere. :^)
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-03-01LibGUI: Add possibility to search for exact match in modelspeles
2021-02-16LibGUI: Make Model::data_matches() take Variant by const-referenceAndreas Kling
2021-01-12Libraries: Move to Userland/Libraries/Andreas Kling