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

marble

  • Marble
  • MarbleClock
Signals | Public Member Functions | List of all members
Marble::MarbleClock Class Reference

#include <MarbleClock.h>

Inheritance diagram for Marble::MarbleClock:
Inheritance graph
[legend]

Signals

void timeChanged ()
 
void updateIntervalChanged (int seconds)
 

Public Member Functions

 MarbleClock (QObject *parent=0)
 
 ~MarbleClock ()
 
QDateTime dateTime () const
 
qreal dayFraction () const
 
void setDateTime (const QDateTime &datetime)
 
void setSpeed (int speed)
 
void setTimezone (int timeInSec)
 
void setUpdateInterval (int seconds)
 
int speed () const
 
int timezone () const
 
int updateInterval ()
 

Detailed Description

Definition at line 25 of file MarbleClock.h.

Constructor & Destructor Documentation

Marble::MarbleClock::MarbleClock ( QObject *  parent = 0)
explicit

Definition at line 80 of file MarbleClock.cpp.

Marble::MarbleClock::~MarbleClock ( )

Definition at line 90 of file MarbleClock.cpp.

Member Function Documentation

QDateTime Marble::MarbleClock::dateTime ( ) const

Returns the internal date and time.

Definition at line 110 of file MarbleClock.cpp.

qreal Marble::MarbleClock::dayFraction ( ) const

Determine how much of the current day has elapsed.

Returns
A value between 0 and 1 corresponding to the fraction of the day that has elapsed

Definition at line 95 of file MarbleClock.cpp.

void Marble::MarbleClock::setDateTime ( const QDateTime &  datetime)

Sets the internal date and time a custom one.

Parameters
datetimeThe custom date and time

Definition at line 104 of file MarbleClock.cpp.

void Marble::MarbleClock::setSpeed ( int  speed)

Sets the speed of the timer which is how fast the marble clock can run relative to actual speed of time.

Parameters
speedThe new speed (integer)

Definition at line 131 of file MarbleClock.cpp.

void Marble::MarbleClock::setTimezone ( int  timeInSec)

Sets the timezone of the clock.

Parameters
timeInSecThe new timezone ( in seconds w.r.t. UTC )

Definition at line 142 of file MarbleClock.cpp.

void Marble::MarbleClock::setUpdateInterval ( int  seconds)

Set the interval at which dateTime() is updated and timeChanged() is emitted.

Parameters
secondsThe interval in seconds
See also
updateInterval

Definition at line 115 of file MarbleClock.cpp.

int Marble::MarbleClock::speed ( ) const

Returns the speed of the timer.

Definition at line 126 of file MarbleClock.cpp.

void Marble::MarbleClock::timeChanged ( )
signal

the timeChanged signal will be triggered at updateInterval() rate or at most every second.

int Marble::MarbleClock::timezone ( ) const

Returns the timezone of the clock.

Definition at line 137 of file MarbleClock.cpp.

int Marble::MarbleClock::updateInterval ( )

Returns the interval at which dateTime() is updated and timeChanged() is emitted, The default is 60 seconds.

Returns
The interval in seconds.
See also
setUpdateInterval

Definition at line 121 of file MarbleClock.cpp.

void Marble::MarbleClock::updateIntervalChanged ( int  seconds)
signal

Emitted when setUpdateInterval() is called.


The documentation for this class was generated from the following files:
  • MarbleClock.h
  • MarbleClock.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • 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