60 #include "rnr/rnrconfig.h" 78 int StateWin::receiveEvent()
83 nEventId = m_session.win().waitKey(m_usecTimeOut / 1000);
86 if( m_bKbEvents && (nEventId >= 0) )
92 else if( (m_pButtons != NULL) &&
93 ((nEventId = m_pButtons->getCurrentEvent()) !=
UIEventNone) )
100 else if( m_bMouseEvents )
102 nEventId = m_mouse.getCurrentEvent();
115 void StateWin::actionEnterState(
int nPrevStateId,
int nEventId)
117 if( !m_bOneTimeInit )
119 initOnceGuiInterface();
126 m_pButtons->bind(m_session.getWin());
129 m_session.win().showPageRef(m_strRefTag);
135 m_session.setContext(
this);
141 void StateWin::actionExitState(
int nNextStateId,
int nEventId)
143 m_pButtons->unbind();
145 m_session.win().showPageRef(
"");
147 destroyGuiInterface();
RoadNarrows Robotics Win abstract base class interface.
GUI window StateWin derived state class interface.
SessionWin derived class.
RoadNarrows Robotics base OpenCV Mouse class interface.
State base class interface.