#include <CRSliderUpdateEvent.h>
Public Member Functions | |
CRSliderUpdateEvent (wxEvent *event) | |
Constructor. | |
virtual void | EmitCpp () |
Emit event simulation specific C++ code. | |
virtual bool | IsPending () const |
Return true because slider update events are assembled into one. | |
virtual void | Process (CRCapturedEvent **pendingEvt) |
Process event, only called after checking for handling ability. | |
virtual | ~CRSliderUpdateEvent () |
Destructor. |
Understandably, moving the slider creates several events -- intermediate positions are taken into account as well; cf. text control text update events. Moreover, a range of different events are created:
TODO: Maybe sometimes it is desirable to create intermediate events, so capturing wxEVT_SCROLL_THUMBRELEASE should be used in general, and for in special cases (where intermediate events are of interest) this behaviour should be switched to on???
Definition at line 42 of file CRSliderUpdateEvent.h.
wxTst::CRSliderUpdateEvent::CRSliderUpdateEvent | ( | wxEvent * | event | ) |
Constructor.
event | event to handle |
Definition at line 25 of file CRSliderUpdateEvent.cpp.
wxTst::CRSliderUpdateEvent::~CRSliderUpdateEvent | ( | ) | [virtual] |
void wxTst::CRSliderUpdateEvent::EmitCpp | ( | ) | [virtual] |
Emit event simulation specific C++ code.
Implements wxTst::CRCapturedEvent.
Definition at line 79 of file CRSliderUpdateEvent.cpp.
References wxTst::CRCppEmitter::AddCode(), wxTst::CRCppEmitter::AddContainerLookupCode(), wxTst::CRCppEmitter::GetInstance(), and wxTst::CRCppEmitter::MakeVarName().
bool wxTst::CRSliderUpdateEvent::IsPending | ( | ) | const [virtual] |
Return true because slider update events are assembled into one.
Reimplemented from wxTst::CRCapturedEvent.
Definition at line 38 of file CRSliderUpdateEvent.cpp.
void wxTst::CRSliderUpdateEvent::Process | ( | CRCapturedEvent ** | pendingEvt | ) | [virtual] |
Process event, only called after checking for handling ability.
pendingEvt | current pending event with respect to code emitting (or NULL if none is pending) |
Implements wxTst::CRCapturedEvent.
Definition at line 44 of file CRSliderUpdateEvent.cpp.
References wxTst::CRWindowHierarchyHandler::FindContainerName(), wxTst::CRCapturedEvent::GetEvent(), wxTst::CRWindowHierarchyHandler::GetInstance(), and wxTst::CRCapturedEvent::m_event.