mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
LibGUI: Add GModelSelection to help implementing multiple-select views
Each GAbstractView now has a GModelSelection backed by a simple HashTable<GModelIndex>. When the selection changes somehow, the view gets notified via the notify_selection_changed() callback. In the future it will probably make sense to move to using some kind of ranges as the internal representation instead.
This commit is contained in:
parent
19b69741ed
commit
82559e211d
5 changed files with 95 additions and 0 deletions
|
@ -54,6 +54,7 @@ OBJS = \
|
|||
GComboBox.o \
|
||||
GJsonArrayModel.o \
|
||||
GAboutDialog.o \
|
||||
GModelSelection.o \
|
||||
GWindow.o
|
||||
|
||||
LIBRARY = libgui.a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue