kstars
kspopupmenu.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
00018
00019 #ifndef KSPOPUPMENU_H
00020 #define KSPOPUPMENU_H
00021
00022 #include <kpopupmenu.h>
00023
00034 class KStars;
00035 class StarObject;
00036 class SkyObject;
00037 class QLabel;
00038
00039 class KSPopupMenu : public KPopupMenu
00040 {
00041 Q_OBJECT
00042 public:
00044 KSPopupMenu( QWidget *parent = 0, const char *name = 0 );
00045
00047 ~KSPopupMenu();
00048
00065 void initPopupMenu( SkyObject *obj, QString name1, QString name2, QString type,
00066 bool showRiseSet=true, bool showCenterTrack=true,
00067 bool showDetails=true, bool showTrail=false,
00068 bool addTrail=false, bool showAngularDistance=true,
00069 bool showObsList=true );
00070
00081 void addLinksToMenu( SkyObject *obj, bool showDSS=true, bool allowCustom=true );
00082
00093 void createStarMenu( StarObject *star );
00094
00105 void createDeepSkyObjectMenu( SkyObject *obj );
00106
00113 void createCustomObjectMenu( SkyObject *obj );
00114
00125 void createPlanetMenu( SkyObject *p );
00126
00136 void createEmptyMenu( SkyObject *nullObj=0 );
00137
00144 void setRiseSetLabels( SkyObject *obj );
00145
00149 bool addINDI(void);
00150
00151 private:
00152 KStars *ksw;
00153 QLabel *pmTitle, *pmTitle2, *pmType, *pmConstellation;
00154 QLabel *pmRiseTime, *pmSetTime, *pmTransitTime;
00155
00156 };
00157
00158 #endif