• 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
  • skycomponents
constellationnamescomponent.h
Go to the documentation of this file.
1 /***************************************************************************
2  constellationnamescomponent.h - K Desktop Planetarium
3  -------------------
4  begin : 2005/10/08
5  copyright : (C) 2005 by Thomas Kabelmann
6  email : thomas.kabelmann@gmx.de
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 #ifndef CONSTELLATIONNAMESCOMPONENT_H
19 #define CONSTELLATIONNAMESCOMPONENT_H
20 
21 #include <QList>
22 #include "listcomponent.h"
23 
24 class SkyLabeler;
25 class CultureList;
26 
34 class ConstellationNamesComponent : public ListComponent
35 {
36 public:
52  ConstellationNamesComponent(SkyComposite *parent, CultureList* cultures);
53 
55  virtual ~ConstellationNamesComponent();
56 
60  virtual void draw( SkyPainter *skyp );
61 
65  virtual void update( KSNumbers *num );
66 
68  inline bool isLocalCNames() { return localCNames; }
69 
70  virtual bool selected();
71 
72 private:
73  bool localCNames;
74 };
75 
76 #endif
ConstellationNamesComponent::selected
virtual bool selected()
Definition: constellationnamescomponent.cpp:95
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
ConstellationNamesComponent
Represents the constellation names on the sky map.
Definition: constellationnamescomponent.h:34
ListComponent
An abstract parent class, to be inherited by SkyComponents that store a QList of SkyObjects.
Definition: listcomponent.h:36
ConstellationNamesComponent::ConstellationNamesComponent
ConstellationNamesComponent(SkyComposite *parent, CultureList *cultures)
Constructor parent Pointer to the parent SkyComposite object.
Definition: constellationnamescomponent.cpp:31
listcomponent.h
ConstellationNamesComponent::isLocalCNames
bool isLocalCNames()
Return true if we are using localized constellation names.
Definition: constellationnamescomponent.h:68
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
ConstellationNamesComponent::update
virtual void update(KSNumbers *num)
we need a custom routine (for now) so we don't precess the locations of the names.
Definition: constellationnamescomponent.cpp:102
ConstellationNamesComponent::draw
virtual void draw(SkyPainter *skyp)
Draw constellation names on the sky map.
Definition: constellationnamescomponent.cpp:111
SkyLabeler
The purpose of this class is to prevent labels from overlapping.
Definition: skylabeler.h:112
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
ConstellationNamesComponent::~ConstellationNamesComponent
virtual ~ConstellationNamesComponent()
Destructor.
Definition: constellationnamescomponent.cpp:92
CultureList
A list of all cultures.
Definition: culturelist.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 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