kstars
#include <kspopupmenu.h>

Public Member Functions | |
KSPopupMenu () | |
~KSPopupMenu () | |
void | addLinksToMenu (SkyObject *obj, bool showDSS=true) |
void | createDeepSkyObjectMenu (DeepSkyObject *obj) |
void | createEmptyMenu (SkyPoint *nullObj) |
void | createMoonMenu (KSMoon *moon) |
void | createPlanetMenu (SkyObject *p) |
void | createSatelliteMenu (Satellite *satellite) |
void | createStarMenu (StarObject *star) |
void | createSupernovaMenu (Supernova *supernova) |
Detailed Description
The KStars Popup Menu.
The menu is sensitive to the object type of the object which was clicked to invoke the menu. Items in the menu include name and type data; rise/transit/set times; actions such as Center, Details, Telescope actions, and Label; and Image and Information URL links.
- Version
- 1.0
Definition at line 43 of file kspopupmenu.h.
Constructor & Destructor Documentation
KSPopupMenu::KSPopupMenu | ( | ) |
Default constructor.
Definition at line 109 of file kspopupmenu.cpp.
KSPopupMenu::~KSPopupMenu | ( | ) |
Destructor (empty)
Definition at line 113 of file kspopupmenu.cpp.
Member Function Documentation
void KSPopupMenu::addLinksToMenu | ( | SkyObject * | obj, |
bool | showDSS = true |
||
) |
Add an item to the popup menu for each of the URL links associated with this object.
URL links appear in two categories: images and information pages. For some objects, a link to Digitized Sky Survey images will automatically be added in addition to the object's normal image links. Also, for some objects, an "Add link..." item will be included, which allows the user to add their own custom URLs for this object.
- Parameters
-
obj pointer to the skyobject which the menu describes showDSS if true, include DSS Image links
Definition at line 409 of file kspopupmenu.cpp.
void KSPopupMenu::createDeepSkyObjectMenu | ( | DeepSkyObject * | obj | ) |
Create a popup menu for a deep-sky object.
DSOs get the following labels: a common name and/or a catalog name, an object type, and rise/transit/set times. DSOs get a "Center & Track" item, an Angular Distance item, an "Attach Label" item, and a "Detailed Info" item. They may have image/info links, and also get the DSS Image links and the "Add Link..." item. They do not get an "Add Trail" item.
- Parameters
-
obj pointer to the object which the menu describes
Definition at line 194 of file kspopupmenu.cpp.
void KSPopupMenu::createEmptyMenu | ( | SkyPoint * | nullObj | ) |
Create a popup menu for empty sky.
The popup menu when right-clicking on nothing is still useful. Instead of a name label, it shows "Empty Sky". The rise/set/transit times of the clicked point on the sky are also shown. You also get the Center & Track and Angular Distance items, and the DSS image links.
- Parameters
-
nullObj pointer to point on the sky
Definition at line 124 of file kspopupmenu.cpp.
void KSPopupMenu::createMoonMenu | ( | KSMoon * | moon | ) |
Definition at line 210 of file kspopupmenu.cpp.
void KSPopupMenu::createPlanetMenu | ( | SkyObject * | p | ) |
Create a popup menu for a solar system body.
Solar System bodies get a name label, a type label ("solar system object"), and rise/set/transit time labels. They also get Center&Track, Angular Distance, Detailed Info, Attach Label, and Add Trail items. They can have image/info links, and also get the "Add Link..." item.
- Note
- despite the name "createPlanetMenu", this function is used for comets and asteroids as well.
- Parameters
-
p the solar system object which the menu describes.
Definition at line 203 of file kspopupmenu.cpp.
void KSPopupMenu::createSatelliteMenu | ( | Satellite * | satellite | ) |
Create a popup menu for a satellite.
- Parameters
-
satellite the satellite which the menu describes.
Definition at line 216 of file kspopupmenu.cpp.
void KSPopupMenu::createStarMenu | ( | StarObject * | star | ) |
Create a popup menu for a star.
Stars get the following labels: a primary name and/or a genetive name, a spectral type, an object type ("star"), and rise/transit/set times. Stars get a "Center & Track" item, an Angular Distance item, and a "Detailed Info" item. Named stars get an "Attach Label" item and an "Add Link..." item, and may have image/info links; all stars get DSS image links. Stars do not get an "Add Trail" item.
- Parameters
-
star pointer to the star which the menu describes
Definition at line 170 of file kspopupmenu.cpp.
void KSPopupMenu::createSupernovaMenu | ( | Supernova * | supernova | ) |
Create a popup menu for a supernova.
- Parameters
-
supernova the supernova which the menu describes.
Definition at line 254 of file kspopupmenu.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:22 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.