• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
kspopupmenu.h
Go to the documentation of this file.
1 /***************************************************************************
2  kspopupmenu.h - K Desktop Planetarium
3  -------------------
4  begin : Sat Feb 27 2003
5  copyright : (C) 2001 by Jason Harris
6  email : jharris@30doradus.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 
19 #ifndef KSPOPUPMENU_H_
20 #define KSPOPUPMENU_H_
21 
22 #include <kmenu.h>
23 #include <kaction.h>
24 #include <QHash>
25 
26 class StarObject;
27 class SkyPoint;
28 class SkyObject;
29 class DeepSkyObject;
30 class KSMoon;
31 class Satellite;
32 class Supernova;
33 
43 class KSPopupMenu : public KMenu
44 {
45  Q_OBJECT
46 public:
48  KSPopupMenu();
49 
51  ~KSPopupMenu();
52 
62  void addLinksToMenu( SkyObject *obj, bool showDSS=true );
63 
74  void createStarMenu( StarObject *star );
75 
86  void createDeepSkyObjectMenu( DeepSkyObject *obj );
87 
98  void createPlanetMenu( SkyObject *p );
99 
100  void createMoonMenu( KSMoon *moon );
101 
105  void createSatelliteMenu( Satellite *satellite );
106 
111  void createSupernovaMenu(Supernova *supernova);
112 
121  void createEmptyMenu( SkyPoint *nullObj );
122 
123 private slots:
124  void slotEditFlag();
125  void slotDeleteFlag();
126  void slotEditFlag( QAction *action );
127  void slotDeleteFlag( QAction *action );
128 
129 private:
140  void initPopupMenu( SkyObject *obj, QString name, QString type, QString info,
141  bool showDetails=true,
142  bool showObsList=true,
143  bool showFlags=true);
144 
145  void initFlagActions( SkyObject *obj );
146 
150  void addINDI();
151 
156  void addFancyLabel(QString name, int deltaFontSize = 0);
157 
158  int m_CurrentFlagIdx;
159  QHash<QAction*, int> *m_EditActionMapping;
160  QHash<QAction*, int> *m_DeleteActionMapping;
161 };
162 
163 #endif
KSPopupMenu
The KStars Popup Menu.
Definition: kspopupmenu.h:43
KSPopupMenu::createPlanetMenu
void createPlanetMenu(SkyObject *p)
Create a popup menu for a solar system body.
Definition: kspopupmenu.cpp:203
KMenu
KSPopupMenu::addLinksToMenu
void addLinksToMenu(SkyObject *obj, bool showDSS=true)
Add an item to the popup menu for each of the URL links associated with this object.
Definition: kspopupmenu.cpp:409
KSPopupMenu::createEmptyMenu
void createEmptyMenu(SkyPoint *nullObj)
Create a popup menu for empty sky.
Definition: kspopupmenu.cpp:124
KSPopupMenu::createDeepSkyObjectMenu
void createDeepSkyObjectMenu(DeepSkyObject *obj)
Create a popup menu for a deep-sky object.
Definition: kspopupmenu.cpp:194
SkyPoint
The sky coordinates of a point in the sky.
Definition: skypoint.h:50
KSPopupMenu::createMoonMenu
void createMoonMenu(KSMoon *moon)
Definition: kspopupmenu.cpp:210
Supernova
Represents the supernova object.
Definition: supernova.h:44
KSPopupMenu::createStarMenu
void createStarMenu(StarObject *star)
Create a popup menu for a star.
Definition: kspopupmenu.cpp:170
KSPopupMenu::KSPopupMenu
KSPopupMenu()
Default constructor.
Definition: kspopupmenu.cpp:109
DeepSkyObject
Provides all necessary information about a deep-sky object: data inherited from SkyObject (coordinate...
Definition: deepskyobject.h:43
KSMoon
A subclass of SkyObject that provides information needed for the Moon.
Definition: ksmoon.h:36
KSPopupMenu::createSupernovaMenu
void createSupernovaMenu(Supernova *supernova)
Create a popup menu for a supernova.
Definition: kspopupmenu.cpp:254
KSPopupMenu::createSatelliteMenu
void createSatelliteMenu(Satellite *satellite)
Create a popup menu for a satellite.
Definition: kspopupmenu.cpp:216
Satellite
Represents an artificial satellites.
Definition: satellite.h:35
StarObject
This is a subclass of SkyObject.
Definition: starobject.h:41
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
KSPopupMenu::~KSPopupMenu
~KSPopupMenu()
Destructor (empty)
Definition: kspopupmenu.cpp:113
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal