]> git.tdb.fi Git - libs/gltk.git/commit
More flexible storage for Lsit and Dropdown items
authorMikko Rasa <tdb@tdb.fi>
Mon, 10 Jun 2013 19:58:28 +0000 (22:58 +0300)
committerMikko Rasa <tdb@tdb.fi>
Mon, 10 Jun 2013 19:58:28 +0000 (22:58 +0300)
commit1d84ac50711ce9d23cb1dafd83158d4ffa938a15
tree712733ad1b49c0f34c7d417f464d6e44ee8191db
parent371dd319aea53d727a91c64240b942dab983783a
More flexible storage for Lsit and Dropdown items

In many cases these widgets are used to pick an object.  Previously, the
calling code needed to explicitly maintain synchronization between the
objects and list contents.  This change allows the list to actually hold
pointers to the objects, making the retrieval of the selected object
vastly easier.
source/dropdown.cpp
source/dropdown.h
source/list.cpp
source/list.h
source/listdata.h [new file with mode: 0644]