[Kstars-devel] KDE/kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Sat Jun 28 07:07:21 CEST 2008


Another idea is to match both "M11" and "M 11".  In other words, if I
type "M11", the listbox would show:

1999 RM11
2000 CM114
M 11
M 110

Then we don't need the timer, and we don't have to guess what the user meant...

Jason

On Fri, Jun 27, 2008 at 4:44 PM, Akarsh Simha <akarshsimha at gmail.com> wrote:
>
>> Oops, that's what I meant, yes.
>>
>> However, when I search for "M11" in the Find Object tool, I get:
>>
>> 1999 RM11
>> 2000 CM114
>>
>> Not "M 11" or "M110".
>
> Yes. I will need to think of a solution to this. I don't know what to
> do. Right now, M11 works only if you hit enter before one second.
>
> The idea is that the code first checks if you've selected an object in
> the list box. If you have (or if you have waited for the 1s timer to
> do it), it always takes your choice irrespective of what is in the
> textbox, just like earlier.
>
> If you haven't, then it processes your text to make sensible changes
> like replacing M11 with M 11. It then selects the first object that
> turns up in the list box for "M 11" (IIRC) and goes to that. This
> helps people who just like to key the name of the object in, rather
> than pick it from a list - the only condition being that they hit
> enter within a second.
>
> The ideal solution would be to select no item in the list, if it was
> updated through the textbox. I still need to look into that. :)
>
> Regards
> Akarsh
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFIZXtikAo+aFFLL8MRAnlgAJwMKiZ1IdtqnhjVV74jD3vHvBRVoACeMFdN
> osu/KSQOPvRy3uJz3wQFxwA=
> =K0WM
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel
>
>


More information about the Kstars-devel mailing list