[Kstars-devel] kdeedu/kstars/kstars

Thomas Kabelmann thomas.kabelmann at gmx.de
Thu Oct 9 22:27:06 CEST 2003


Hi Jason,

it's a good idea to show only visible objects in finddialog, but there is a 
problem with the current implementation. It works fine when the faint limit 
will decreased. But it doesn't reload objects, which were removed from the 
list, when the faint limit will increased. I think the memory saving isn't 
really much because it only frees objects of type SkyObjectName which contain 
a QString and a pointer. The SkyObject is still in memory.

There are 2 ideas I have to solve the problem. First we could hold 2 lists in 
memory. The first contains all visible objects and the second list contains 
all invisible objects. We only have to update the lists when faint limit was 
changed and can put all objects of list #1 in the finddialog. The second idea 
is to put all objects in one list. While filling the finddialog we have to 
check if the current object is visible or not. We should try both variants to 
see which is faster.

Greetings,
Thomas



More information about the Kstars-devel mailing list