• 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
  • dialogs
timedialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  timedialog.h - K Desktop Planetarium
3  -------------------
4  begin : Sun Feb 11 2001
5  copyright : (C) 2001 by Jason Harris
6  email : jharris@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 TIMEDIALOG_H_
19 #define TIMEDIALOG_H_
20 
21 #include <kdialog.h>
22 #include <qvariant.h>
23 //Added by qt3to4:
24 #include <QLabel>
25 #include <QVBoxLayout>
26 #include <QHBoxLayout>
27 #include <QKeyEvent>
28 
29 #include "kstarsdatetime.h"
30 
31 class QHBoxLayout;
32 class QVBoxLayout;
33 class KDatePicker;
34 class QTimeEdit;
35 class KPushButton;
36 class GeoLocation;
37 
47 class TimeDialog : public KDialog {
48  Q_OBJECT
49 public:
54  TimeDialog( const KStarsDateTime &now, GeoLocation *_geo, QWidget *parent, bool UTCFrame=false );
55 
59  ~TimeDialog() {}
60 
63  QTime selectedTime( void );
64 
67  QDate selectedDate( void );
68 
71  KStarsDateTime selectedDateTime( void );
72 
73 public slots:
80  void setNow( void );
81 
82 protected:
83  void keyReleaseEvent( QKeyEvent* );
84 
85 private:
86  bool UTCNow;
87  QHBoxLayout *hlay;
88  QVBoxLayout *vlay;
89  KDatePicker *dPicker;
90  QTimeEdit *tEdit;
91  KPushButton* NowButton;
92  GeoLocation *geo;
93 };
94 
95 #endif
QWidget
KDialog
TimeDialog::selectedDate
QDate selectedDate(void)
Definition: timedialog.cpp:103
TimeDialog::selectedTime
QTime selectedTime(void)
Definition: timedialog.cpp:99
TimeDialog
A class for adjusting the Time and Date.
Definition: timedialog.h:47
TimeDialog::setNow
void setNow(void)
When the "Now" button is pressed, read the time and date from the system clock.
Definition: timedialog.cpp:89
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
KStarsDateTime
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
TimeDialog::selectedDateTime
KStarsDateTime selectedDateTime(void)
Definition: timedialog.cpp:107
TimeDialog::keyReleaseEvent
void keyReleaseEvent(QKeyEvent *)
Definition: timedialog.cpp:77
TimeDialog::~TimeDialog
~TimeDialog()
Destructor (empty)
Definition: timedialog.h:59
kstarsdatetime.h
TimeDialog::TimeDialog
TimeDialog(const KStarsDateTime &now, GeoLocation *_geo, QWidget *parent, bool UTCFrame=false)
Constructor.
Definition: timedialog.cpp:36
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