• 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
catalogcomponent.h
Go to the documentation of this file.
1 /***************************************************************************
2  catalogcomponent.h - K Desktop Planetarium
3  -------------------
4  begin : 2005/17/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 CUSTOMCATALOGCOMPONENT_H
19 #define CUSTOMCATALOGCOMPONENT_H
20 
21 
22 #include "listcomponent.h"
23 #include "Options.h"
24 #include "datahandlers/catalogdb.h"
25 
26 struct stat;
27 
39 class CatalogComponent: public ListComponent
40 {
41 public:
42 
47  CatalogComponent( SkyComposite*, const QString &fname, bool showerrs, int index );
48 
52  virtual ~CatalogComponent();
53 
58  virtual void draw( SkyPainter *skyp );
59 
60  virtual void update( KSNumbers *num );
61 
63  QString name() const { return m_catName; }
64 
66  QString fluxFrequency() const { return m_catFluxFreq; }
67 
69  QString fluxUnit() const { return m_catFluxUnit; }
70 
78  inline bool getVisibility() { return (Options::showCatalog()[m_ccIndex] > 0) ? true : false; }
79 
80 private:
81 
83  void loadData();
84 
88  bool readCustomCatalogs();
89 
95  bool removeCatalog( int i );
96 
107  bool processCustomDataLine(int lnum, const QStringList &d, const QStringList &Columns,
108  bool showerrs, QStringList &errs);
109 
115  bool selected();
116 
117  QString m_catName, m_catPrefix, m_catColor, m_catFluxFreq, m_catFluxUnit;
118  float m_catEpoch;
119  bool m_Showerrs;
120  int m_ccIndex;
121  quint32 updateID;
122 
123  static QStringList m_Columns;
124 };
125 
126 #endif
CatalogComponent::fluxUnit
QString fluxUnit() const
Definition: catalogcomponent.h:69
Options::showCatalog
static QList< int > showCatalog()
Get List of toggles for displaying custom object catalogs.
Definition: Options.h:448
CatalogComponent::fluxFrequency
QString fluxFrequency() const
Definition: catalogcomponent.h:66
CatalogComponent::draw
virtual void draw(SkyPainter *skyp)
Draw custom catalog objects on the sky map.
Definition: catalogcomponent.cpp:107
ListComponent
An abstract parent class, to be inherited by SkyComponents that store a QList of SkyObjects.
Definition: listcomponent.h:36
CatalogComponent::~CatalogComponent
virtual ~CatalogComponent()
Destructor.
Definition: catalogcomponent.cpp:46
CatalogComponent
Represents a custom user-defined catalog.
Definition: catalogcomponent.h:39
listcomponent.h
CatalogComponent::CatalogComponent
CatalogComponent(SkyComposite *, const QString &fname, bool showerrs, int index)
Constructor parent Pointer to the parent SkyComposite object.
Definition: catalogcomponent.cpp:38
CatalogComponent::name
QString name() const
Definition: catalogcomponent.h:63
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
Options.h
KSNumbers
There are several time-dependent values used in position calculations, that are not specific to an ob...
Definition: ksnumbers.h:43
CatalogComponent::getVisibility
bool getVisibility()
Definition: catalogcomponent.h:78
NaN::d
const double d
Definition: nan.h:35
CatalogComponent::update
virtual void update(KSNumbers *num)
Update the sky positions of this component.
Definition: catalogcomponent.cpp:74
catalogdb.h
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
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