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

Jason Harris kstars at 30doradus.org
Sun Jul 13 16:47:38 CEST 2008


On Sun, Jul 13, 2008 at 7:40 AM, Jason Harris <kstars at 30doradus.org> wrote:
> ConjunctFindDialogUI::ConjunctFindDialogUI( QWidget *parent, bool
> solarSystemOnly, bool restrictEcLat ) {
>    setupUi( this );
>
>    FilterType->addItem( i18n ("Any") );
>    if ( ! solarSystemOnly ) {
>        FilterType->addItem( i18n ("Stars") );
>        FilterType->addItem( i18n ("Open Clusters") );
>        FilterType->addItem( i18n ("Globular Clusters") );
>        FilterType->addItem( i18n ("Gaseous Nebulae") );
>        FilterType->addItem( i18n ("Planetary Nebulae") );
>        FilterType->addItem( i18n ("Galaxies") );
>        FilterType->addItem( i18n ("Constellations") );
>    }
>    FilterType->addItem( i18n ("Solar System") );
>    FilterType->addItem( i18n ("Comets") );
>    FilterType->addItem( i18n ("Asteroids") );
>
Actually, here I would move the last three items to before the if
statement.  That way you can use the same switch statement in init()
regardless of solarSystemOnly...


More information about the Kstars-devel mailing list