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

kstars

altvstime.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           altvstime.h  -  description
00003                              -------------------
00004     begin                : Mon Dec 23 2002
00005     copyright            : (C) 2002 by Pablo de Vicente
00006     email                : vicente@oan.es
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef ALTVSTIME_H_
00019 #define ALTVSTIME_H_
00020 
00021 #include <QList>
00022 #include <QMouseEvent>
00023 #include <QVBoxLayout>
00024 #include <QPaintEvent>
00025 
00026 #include "ui_altvstime.h"
00027 
00028 class KStarsDateTime;
00029 class QVBoxLayout;
00030 class KDialog;
00031 class SkyObject;
00032 class SkyPoint;
00033 class GeoLocation;
00034 class KStars;
00035 
00036 class AltVsTimeUI : public QFrame, public Ui::AltVsTime {
00037     Q_OBJECT
00038 
00039 public:
00040     AltVsTimeUI( QWidget *p=0 );
00041 };
00042 
00050 class AltVsTime : public KDialog
00051 {
00052     Q_OBJECT
00053 
00054 public:
00057     AltVsTime( QWidget* parent = 0);
00058 
00061     ~AltVsTime();
00062 
00067     void setLSTLimits();
00068 
00073     void showCurrentDate (void);
00074 
00078     KStarsDateTime getDate (void);
00079 
00086     void computeSunRiseSetTimes();
00087 
00093     double getEpoch( const QString &eName );
00094 
00101     void processObject( SkyObject *o, bool forceAdd=false );
00102 
00112     double findAltitude( SkyPoint *p, double hour );
00113 
00117     int currentPlotListItem() const;
00118 
00122     QList<SkyObject*>& skyPointList() { return pList; }
00123 
00124 public slots:
00127     void slotUpdateDateLoc(void);
00128 
00131     void slotClear(void);
00132 
00135     void slotClearBoxes(void);
00136 
00140     void slotAddSource(void);
00141 
00145     void slotBrowseObject(void);
00146 
00149     void slotChooseCity(void);
00150 
00157     void slotAdvanceFocus(void);
00158 
00162     void slotHighlight(int);
00163 
00164 private:
00165     AltVsTimeUI *avtUI;
00166     QVBoxLayout *topLayout;
00167 
00168     GeoLocation *geo;
00169     KStars *ks;
00170     QList<SkyObject*> pList;
00171     QList<SkyObject*> deleteList;
00172 
00173     int DayOffset;
00174     bool dirtyFlag;
00175 };
00176 
00177 #endif // ALTVSTIME_H_

kstars

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal