summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GJsonArrayModel.cpp
AgeCommit message (Collapse)Author
2020-02-06LibGUI: Remove leading G from filenamesAndreas Kling
2020-02-06LibCore: Remove leading C from filenamesAndreas Kling
2020-02-02LibGUI: Put all classes in the GUI namespace and remove the leading GAndreas Kling
This took me a moment. Welcome to the new world of GUI::Widget! :^)
2020-02-02LibCore: Put all classes in the Core namespace and remove the leading CAndreas Kling
I've been wanting to do this for a long time. It's time we start being consistent about how this stuff works. The new convention is: - "LibFoo" is a userspace library that provides the "Foo" namespace. That's it :^) This was pretty tedious to convert and I didn't even start on LibGUI yet. But it's coming up next.
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2020-01-02LibGUI: Clear out a GJsonArrayModel if it fails to open the JSON sourceAndreas Kling
This fixes an issue in SystemMonitor where old data would linger in the table views after selecting a process owned by another user. Since we can no longer read /proc/PID/* unless PID belongs to us, we will now present empty views for these processes. :^)
2019-10-29AK: Allow JsonValue to store 64-bit integers internallyAndreas Kling
Add dedicated internal types for Int64 and UnsignedInt64. This makes it a bit more straightforward to work with 64-bit numbers (instead of just implicitly storing them as doubles.)
2019-09-21LibCore: Convert CFile to ObjectPtrAndreas Kling
2019-08-14GJsonArrayModel: Add hook for customizing the GModel::Role::Custom dataAndreas Kling
2019-08-12GJsonArrayModel: Add hook to customize what comes out of GModel::SortAndreas Kling
Now you can provide a massage_for_sort hook in your FieldSpec. This allows you to implement arbitrary sorting rules for the data.
2019-08-10GJsonArrayModel: Support fields that aren't tied to a single JSON valueAndreas Kling
Change the custom data massaging callback to take a const JsonObject&. This will allow binding together data from multiple fields into one output in the model. :^)
2019-08-10GJsonArrayModel: Add an optional "massage_for_display" fieldspec hookAndreas Kling
This allows to you install a custom callback that can do anything with Role::Display data before it's returned by GJsonArrayModel::data().
2019-08-10LibGUI: Add GJsonArrayModel, a simple JSON-data-file-as-GModel helperAndreas Kling
This makes it very easy to expose JSON files as GModels. :^)