Clock to test the draw events. More...
#include <debug_clock.hpp>


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_bar * | hour_percentage_ |
| Progress bar for displaying the hours as a percentage. | |
| tprogress_bar * | minute_percentage_ |
| Progress bar for displaying the minutes as a percentage. | |
| tprogress_bar * | second_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. | |
| tcontrol * | clock_ |
| A widget that can display the time. | |
| twindow * | window_ |
| The window being shown. | |
| event::tsignal_function | signal_ |
| The signal patched in the drawing routine. | |
| ttime | time_ |
| The `current' time. | |
Clock to test the draw events.
Definition at line 30 of file debug_clock.hpp.
| gui2::tdebug_clock::tdebug_clock | ( | ) | [inline] |
Definition at line 34 of file debug_clock.hpp.
| void gui2::tdebug_clock::post_show | ( | CVideo & | video | ) | [private] |
Inherited from tdialog.
Definition at line 109 of file debug_clock.cpp.
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.
| 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.
tcontrol* gui2::tdebug_clock::clock_ [private] |
A widget that can display the time.
Definition at line 70 of file debug_clock.hpp.
Referenced by gui2::tdebug_clock::ttime::ttime().
tinteger_selector_* gui2::tdebug_clock::hour_ [private] |
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.
tinteger_selector_* gui2::tdebug_clock::minute_ [private] |
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.
tinteger_selector_* gui2::tdebug_clock::second_ [private] |
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.
ttime gui2::tdebug_clock::time_ [private] |
The `current' time.
Definition at line 123 of file debug_clock.hpp.
twindow* gui2::tdebug_clock::window_ [private] |
The window being shown.
Reimplemented from gui2::tpopup.
Definition at line 73 of file debug_clock.hpp.
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:22:01 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |