• 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
  • tools
calendarwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  calendarwidget.h - description
3  -------------------
4  begin : Wed Jul 16 2008
5  copyright : (C) 2008 by Jason Harris
6  email : kstars@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 #ifndef CALENDARWIDGET_H_
19 #define CALENDARWIDGET_H_
20 
21 #include <QDate>
22 #include <kplotwidget.h>
23 
27 class CalendarWidget : public KPlotWidget
28 {
29  Q_OBJECT
30  public:
31  explicit CalendarWidget( QWidget *parent=0 );
32  void setHorizon();
33  inline float getRiseTime( int i ) { return riseTimeList.at( i ); }
34  inline float getSetTime( int i ) { return setTimeList.at( i ); }
35 
36  protected:
37  void paintEvent( QPaintEvent *e );
38 
39  private:
40  void drawHorizon( QPainter *p );
41  void drawAxes( QPainter *p );
42 
43  QList<QDate> dateList;
44  QList<float> riseTimeList;
45  QList<float> setTimeList;
46 
47  float minSTime;
48  float maxRTime;
49 
50  QPolygonF polySunRise;
51  QPolygonF polySunSet;
52 };
53 
54 #endif
CalendarWidget::getRiseTime
float getRiseTime(int i)
Definition: calendarwidget.h:33
CalendarWidget::setHorizon
void setHorizon()
Definition: calendarwidget.cpp:72
QWidget
CalendarWidget
An extension of the KPlotWidget for the SkyCalendar tool.
Definition: calendarwidget.h:27
CalendarWidget::CalendarWidget
CalendarWidget(QWidget *parent=0)
Definition: calendarwidget.cpp:34
KPlotWidget
CalendarWidget::getSetTime
float getSetTime(int i)
Definition: calendarwidget.h:34
CalendarWidget::paintEvent
void paintEvent(QPaintEvent *e)
Definition: calendarwidget.cpp:47
QList
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