• 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
targetlistcomponent.h
Go to the documentation of this file.
1 /***************************************************************************
2  targetlistcomponent.h - K Desktop Planetarium
3  -------------------
4  begin : Oct 14 2010 9:59 PM CDT
5  copyright : (C) 2010 Akarsh Simha
6  email : akarsh.simha@kdemail.net
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 TARGETLISTCOMPONENT_H
19 #define TARGETLISTCOMPONENT_H
20 
21 #include "skypainter.h"
22 #include "skycomponent.h"
23 #include "typedef.h"
24 #include "skyobject.h"
25 
50 class TargetListComponent : public SkyComponent {
51 
52  public:
53 
57  explicit TargetListComponent( SkyComposite *parent );
58 
62  TargetListComponent( SkyComposite *parent, QList<SkyObject*> *objectList, QPen _pen,
63  bool (*optionDrawSymbols)(void) = 0, bool (*optionDrawLabels)(void) = 0 );
64 
72  virtual void draw( SkyPainter *skyp );
73 
74  // FIXME: Maybe we should make these member objects private / protected?
75  SkyObjectList *list; // Pointer to list of objects to draw
76  QPen pen; // Pen to use to draw
77 
82  bool (*drawSymbols)( void );
83 
88  bool (*drawLabels)( void );
89 
90  protected:
95  /*
96 
97  // This method is superseded by the definitions in SkyPainter
98  // and might need to be reinstated only while generalizing the
99  // class to draw other textures.
100 
101  virtual void drawTargetSymbol( SkyPainter *skyp, SkyObject *obj );
102  */
103 };
104 
105 #endif
SkyComponent::parent
SkyComposite * parent()
Definition: skycomponent.h:82
TargetListComponent
Highlights objects present in certain lists by drawing "target" symbols around them.
Definition: skycomponents/targetlistcomponent.h:50
skyobject.h
SkyComponent
SkyComponent represents an object on the sky map.
Definition: skycomponent.h:44
skypainter.h
TargetListComponent::draw
virtual void draw(SkyPainter *skyp)
Draw this component by iterating over the list.
Definition: skycomponents/targetlistcomponent.cpp:70
skycomponent.h
SkyComposite
SkyComposite is a kind of container class for SkyComponent objects.
Definition: skycomposite.h:43
TargetListComponent::drawSymbols
bool(* drawSymbols)(void)
Pointer to static method that tells us whether to draw this list or not.
Definition: skycomponents/targetlistcomponent.h:82
TargetListComponent::list
SkyObjectList * list
Definition: skycomponents/targetlistcomponent.h:75
TargetListComponent::drawLabels
bool(* drawLabels)(void)
Pointer to static method that tells us whether to draw labels for this list or not.
Definition: skycomponents/targetlistcomponent.h:88
TargetListComponent::TargetListComponent
TargetListComponent(SkyComposite *parent)
Default constructor.
Definition: skycomponents/targetlistcomponent.cpp:22
TargetListComponent::pen
QPen pen
Definition: skycomponents/targetlistcomponent.h:76
SkyPainter
Draws things on the sky, without regard to backend.
Definition: skypainter.h:47
SkyObjectList
QList< SkyObject * > SkyObjectList
Definition: skycomponents/typedef.h:52
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:21 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