Classes | Public Member Functions | Private Member Functions | Private Attributes

gui2::tdebug_clock Class Reference

Clock to test the draw events. More...

#include <debug_clock.hpp>

Inheritance diagram for gui2::tdebug_clock:
Inheritance graph
[legend]
Collaboration diagram for gui2::tdebug_clock:
Collaboration graph
[legend]

List of all members.

Classes

struct  ttime
 Helper struct to keep track of the time. More...

Public Member Functions

 tdebug_clock ()

Private Member Functions

virtual const std::string & window_id () const
 Inherited from tdialog, implemented by REGISTER_DIALOG.
void pre_show (CVideo &video, twindow &window)
 Inherited from tdialog.
void post_show (CVideo &video)
 Inherited from tdialog.
void update_time (const bool force)
 The callback for the drawing routine.

Private Attributes

tprogress_barhour_percentage_
 Progress bar for displaying the hours as a percentage.
tprogress_barminute_percentage_
 Progress bar for displaying the minutes as a percentage.
tprogress_barsecond_percentage_
 Progress bar for displaying the seconds as a percentage.
tinteger_selector_hour_
 An integer selector to display the total seconds.
tinteger_selector_minute_
 An integer selector to display the total seconds this hour.
tinteger_selector_second_
 An integer selector to display the seconds this minute.
tcontrolclock_
 A widget that can display the time.
twindowwindow_
 The window being shown.
event::tsignal_function signal_
 The signal patched in the drawing routine.
ttime time_
 The `current' time.

Detailed Description

Clock to test the draw events.

Definition at line 30 of file debug_clock.hpp.


Constructor & Destructor Documentation

gui2::tdebug_clock::tdebug_clock (  )  [inline]

Definition at line 34 of file debug_clock.hpp.


Member Function Documentation

void gui2::tdebug_clock::post_show ( CVideo video  )  [private]

Inherited from tdialog.

Definition at line 109 of file debug_clock.cpp.

void gui2::tdebug_clock::pre_show ( CVideo video,
twindow window 
) [private, virtual]

Inherited from tdialog.

Reimplemented from gui2::tpopup.

Definition at line 65 of file debug_clock.cpp.

void gui2::tdebug_clock::update_time ( const bool  force  )  [private]

The callback for the drawing routine.

It updates the `time' in the various controls.

Parameters:
force Force an update even it the time didn't change? (This is used to set the clock initially.)

Definition at line 114 of file debug_clock.cpp.

virtual const std::string& gui2::tdebug_clock::window_id (  )  const [private, virtual]

Inherited from tdialog, implemented by REGISTER_DIALOG.

Implements gui2::tpopup.


Member Data Documentation

A widget that can display the time.

Definition at line 70 of file debug_clock.hpp.

Referenced by gui2::tdebug_clock::ttime::ttime().

An integer selector to display the total seconds.

Definition at line 61 of file debug_clock.hpp.

Progress bar for displaying the hours as a percentage.

Definition at line 52 of file debug_clock.hpp.

An integer selector to display the total seconds this hour.

Definition at line 64 of file debug_clock.hpp.

Progress bar for displaying the minutes as a percentage.

Definition at line 55 of file debug_clock.hpp.

An integer selector to display the seconds this minute.

Definition at line 67 of file debug_clock.hpp.

Progress bar for displaying the seconds as a percentage.

Definition at line 58 of file debug_clock.hpp.

The signal patched in the drawing routine.

Definition at line 76 of file debug_clock.hpp.

The `current' time.

Note:
Since the dialog is used to test the drawing routine by keeping track of the calls to the drawing routine, the clock might be off.

Definition at line 123 of file debug_clock.hpp.

The window being shown.

Reimplemented from gui2::tpopup.

Definition at line 73 of file debug_clock.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:01 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs