kstars
obslistwizard.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef OBSLISTWIZARD_H
00018 #define OBSLISTWIZARD_H
00019
00020 #include <kdialogbase.h>
00021
00022 #include "obslistwizardui.h"
00023
00024 class KStars;
00025 class QListViewItem;
00026
00031 class ObsListWizard : public KDialogBase
00032 {
00033 Q_OBJECT
00034 public:
00037 ObsListWizard( QWidget *parent = 0, const char *name = 0 );
00040 ~ObsListWizard();
00041
00044 QPtrList<SkyObject>& obsList() { return ObsList; }
00045
00046 private slots:
00047 void slotAllButton();
00048 void slotNoneButton();
00049 void slotDeepSkyButton();
00050 void slotSolarSystemButton();
00051 void slotChangeLocation();
00052 void slotShowStackWidget(QListViewItem*);
00053 void slotEnableConstellationPage(bool);
00054 void slotEnableRectPage(bool);
00055 void slotEnableCircPage(bool);
00056
00057 void slotEnableMagPage(bool);
00058
00061 void slotUpdateObjectCount();
00062 void slotApplyFilters() { applyFilters( true ); }
00063
00064 private:
00065 void initialize();
00066 void applyFilters( bool doBuildList );
00067 void applyRegionFilter( SkyObject *o, bool doBuildList, bool doAdjustCount=true );
00068
00069 QPtrList<SkyObject> ObsList;
00070 KStars *ksw;
00071 ObsListWizardUI *olw;
00072 uint ObjectCount, StarCount, PlanetCount, CometCount, AsteroidCount;
00073 uint GalaxyCount, OpenClusterCount, GlobClusterCount, GasNebCount, PlanNebCount;
00074 bool rectOk, circOk;
00075 double ra1, ra2, dc1, dc2, rCirc;
00076 SkyPoint pCirc;
00077 };
00078
00079 #endif