• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libkdegames
 

libkdegames

Public Slots | Public Member Functions | Protected Slots
KGameLCDClock Class Reference

#include <kgamelcd.h>

Inheritance diagram for KGameLCDClock:
KGameLCD

List of all members.

Public Slots

virtual void reset ()
virtual void stop ()
virtual void start ()

Public Member Functions

 KGameLCDClock (TQWidget *parent=0, const char *name=0)
uint seconds () const
TQString pretty () const
void setTime (uint seconds)
void setTime (const TQString &s)

Protected Slots

virtual void timeoutClock ()

Detailed Description

This class is a digital clock widget.

It has a maximum duration of 3599 seconds (one hour) and it gets updated every second.

Since:
3.2

Definition at line 127 of file kgamelcd.h.


Member Function Documentation

TQString KGameLCDClock::pretty ( ) const
Returns:
the time as a string to be displayed: "mm:ss".

Definition at line 135 of file kgamelcd.cpp.

void KGameLCDClock::reset ( ) [virtual, slot]

Stop the clock and reset it to zero.

Definition at line 147 of file kgamelcd.cpp.

uint KGameLCDClock::seconds ( ) const
Returns:
the total number of seconds elapsed.

Definition at line 165 of file kgamelcd.cpp.

void KGameLCDClock::setTime ( uint  seconds)

Set the time.

Definition at line 170 of file kgamelcd.cpp.

void KGameLCDClock::setTime ( const TQString &  s)

Set the time (format should be "mm:ss").

Definition at line 178 of file kgamelcd.cpp.

void KGameLCDClock::start ( ) [virtual, slot]

Start the clock from the current time.

Definition at line 155 of file kgamelcd.cpp.

void KGameLCDClock::stop ( ) [virtual, slot]

Stop the clock but do not reset it to zero.

Definition at line 160 of file kgamelcd.cpp.


The documentation for this class was generated from the following files:
  • kgamelcd.h
  • kgamelcd.cpp

libkdegames

Skip menu "libkdegames"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libkdegames

Skip menu "libkdegames"
  • libkdegames
Generated for libkdegames by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |