qPCR4vir / nana

a modern C++ GUI library
http://nanapro.org
Boost Software License 1.0
16 stars 2 forks source link

incorrect listbox navigate with cursor when items ordered #1

Closed qPCR4vir closed 9 years ago

qPCR4vir commented 9 years ago

It is a dificult problem. We need to make the code more readable, organize similar function, and give more descriptive names. It seems that we need to be very consisten in the use of the relative and display positions and of the absoulte position. We need the relative positions for navegation, but the absolute for persistency after each sort().

qPCR4vir commented 9 years ago

Item_proxy: the very nature of this, to give acses to the real data if the item make it exclusively abs! You need to create item_proxys only from abs pos, and it will navigate using the iterator propiertes in the abs pos, not in the display pos. It would be good to have an explicit interfase to display pos to avoid missunderstandis.

index_pair Item_proxy::display_pos()
Item_proxy Item_proxy::from_display_pos(ess, index_pair diplay_pos)
last_selected =>absolute !!
selected: absolute !!