wxTst::TimedDialogEnder Class Reference

Periodical looking for a certain window (in fact a modal dialog identified by caption) to close/end. More...

#include <TimedDialogEnder.h>

Inheritance diagram for wxTst::TimedDialogEnder:

Inheritance graph
[legend]
Collaboration diagram for wxTst::TimedDialogEnder:

Collaboration graph
[legend]

List of all members.

Protected Member Functions

virtual void DestroyTimer ()
 Stop and destroy timer.
virtual void OnTimer (wxTimerEvent &event)
 Timer event handling functionality with "main" functionality.


Detailed Description

Periodical looking for a certain window (in fact a modal dialog identified by caption) to close/end.

Internally a timer component is used to periodically check if a window with the given caption exists. If so, it is tried to close it with the given return code. After successfully closing the window, the timer is stopped and destroyed. The reason why this works for wxMessageBox is because it is inherited from wxMessageDialog class and popped up by calling ShowModal().

Supports debug logging with trace mask "TimedDialogEnder".

TODO/REMARK: Works currently only under M$ Windows!

Definition at line 38 of file TimedDialogEnder.h.


Member Function Documentation

void wxTst::TimedDialogEnder::DestroyTimer (  )  [protected, virtual]

Stop and destroy timer.

Moved out from destructor to allow reuse in case of successful closing of window.

Definition at line 53 of file TimedDialogEnder.cpp.

Referenced by OnTimer().

void wxTst::TimedDialogEnder::OnTimer ( wxTimerEvent &  event  )  [protected, virtual]

Timer event handling functionality with "main" functionality.

Parameters:
event notifying timer event

Definition at line 67 of file TimedDialogEnder.cpp.

References DestroyTimer().


The documentation for this class was generated from the following files:

wxWidgets Logo Get wxGuiTesting at SourceForge.net. Fast, secure and Free Open Source software downloads
Generated on Tue Mar 17 17:29:30 2009 for wxGuiTesting by doxygen 1.5.5