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

kstars

Public Slots | Public Member Functions | Protected Member Functions | List of all members
TimeDialog Class Reference

#include <timedialog.h>

Inheritance diagram for TimeDialog:
Inheritance graph
[legend]

Public Slots

void setNow (void)
 

Public Member Functions

 TimeDialog (const KStarsDateTime &now, GeoLocation *_geo, QWidget *parent, bool UTCFrame=false)
 
 ~TimeDialog ()
 
QDate selectedDate (void)
 
KStarsDateTime selectedDateTime (void)
 
QTime selectedTime (void)
 

Protected Member Functions

void keyReleaseEvent (QKeyEvent *)
 

Detailed Description

A class for adjusting the Time and Date.

Contains a KDatePicker widget for selecting the date, and a QTimeEdit for selecting the time. There is also a "Now" button for selecting the Time and Date from the system clock. Dialog for adjusting the Time and Date.

Author
Jason Harris
Version
1.0

Definition at line 47 of file timedialog.h.

Constructor & Destructor Documentation

TimeDialog::TimeDialog ( const KStarsDateTime &  now,
GeoLocation *  _geo,
QWidget *  parent,
bool  UTCFrame = false 
)

Constructor.

Creates widgets and packs them into QLayouts. Connects Signals and Slots.

Definition at line 36 of file timedialog.cpp.

TimeDialog::~TimeDialog ( )
inline

Destructor (empty)

Definition at line 59 of file timedialog.h.

Member Function Documentation

void TimeDialog::keyReleaseEvent ( QKeyEvent *  kev)
protected

Definition at line 77 of file timedialog.cpp.

QDate TimeDialog::selectedDate ( void  )
Returns
a QDate object with the selected date

Definition at line 103 of file timedialog.cpp.

KStarsDateTime TimeDialog::selectedDateTime ( void  )
Returns
a KStarsDateTime object with the selected date and time

Definition at line 107 of file timedialog.cpp.

QTime TimeDialog::selectedTime ( void  )
Returns
a QTime object with the selected time

Definition at line 99 of file timedialog.cpp.

void TimeDialog::setNow ( void  )
slot

When the "Now" button is pressed, read the time and date from the system clock.

Change the selected date in the KDatePicker to the system's date, and the displayed time to the system time.

Definition at line 89 of file timedialog.cpp.


The documentation for this class was generated from the following files:
  • timedialog.h
  • timedialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 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