15 #ifndef GUI_DIALOGS_DEBUG_CLOCK_HPP_INCLUDED
16 #define GUI_DIALOGS_DEBUG_CLOCK_HPP_INCLUDED
28 class tinteger_selector_;
104 bool step(
const unsigned milliseconds = 30);
tcontrol * clock_
A widget that can display the time.
void post_show(CVideo &video)
Inherited from tdialog.
tprogress_bar * second_percentage_
Progress bar for displaying the seconds as a percentage.
Small abstract helper class.
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
Clock to test the draw events.
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
unsigned minute
The number of minutes.
Helper struct to keep track of the time.
twindow * window_
The window being shown.
void update_time(const bool force)
The callback for the drawing routine.
void set_current_time()
Sets the fields to the current time.
bool step(const unsigned milliseconds=30)
Moves the clock x milliseconds forward.
std::function< void(tdispatcher &dispatcher, const tevent event, bool &handled, bool &halt)> tsignal_function
Callback function signature.
tinteger_selector_ * hour_
An integer selector to display the total seconds.
tinteger_selector_ * second_
An integer selector to display the seconds this minute.
tinteger_selector_ * minute_
An integer selector to display the total seconds this hour.
unsigned millisecond
The number of milliseconds.
tprogress_bar * minute_percentage_
Progress bar for displaying the minutes as a percentage.
unsigned hour
The number of hours.
unsigned second
The number of seconds.
ttime time_
The `current' time.
void pre_show(twindow &window)
Inherited from tdialog.
Base class for all visible items.
GLsizei const GLcharARB ** string
tprogress_bar * hour_percentage_
Progress bar for displaying the hours as a percentage.
event::tsignal_function signal_
The signal patched in the drawing routine.