57 #ifndef _RNR_STATE_WIN_H 58 #define _RNR_STATE_WIN_H 65 #include "rnr/rnrconfig.h" 97 const std::string &strStateName=
"",
98 const std::string &strRefTag=
"") :
99 State(nStateId, strStateName, strRefTag),
120 const std::string &strStateName,
121 const std::string &strRefTag,
123 State(nStateId, strStateName, strRefTag, listStateEvents),
229 if( !m_bOneTimeInit )
232 m_bOneTimeInit =
true;
282 #endif // _RNR_STATE_WIN_H
virtual ~StateWin()
Destructor.
Win & win()
Get the session window object.
virtual void initOnceGuiInterface()
One-time initialization of the window gui interface.
StateWin(int nStateId, SessionWin &session, const std::string &strStateName, const std::string &strRefTag, StateEvent *listStateEvents[])
List constructor.
virtual void initOnceButtons()
One-time button menu initialization.
virtual int receiveEvent()
Receive next window event.
WinButtonMenu * m_pButtons
button menu
bool m_bMouseEvents
enable/disable mouse events
void enableMouseEvents(bool bEnable)
Enable/disable mouse events.
RoadNarrows Robotics Win abstract base class interface.
virtual void actionEnterState(int nPrevStateId, int nEventId)
Execute "enter state" action.
SessionWin & m_session
state id
virtual void destroyGuiInterface()
Destroy the window gui interface.
SessionWin derived class.
virtual void setButtonStates()
Set button states.
bool m_bOneTimeInit
state's one-time initializaion
bool m_bKbEvents
enable/disable keyboard events
virtual void buildGuiInterface()
Build the window gui interface.
void enableKbEvents(bool bEnable)
Enable/disable keyboard events.
State base class interface.
StateWin(int nStateId, SessionWin &session, const std::string &strStateName="", const std::string &strRefTag="")
Initialization constructor.
SessionWin & session()
Get the embedding window session.
virtual void showWorkspace()=0
Show/refresh all gui widgets in workspace.
virtual void eraseWorkspace()=0
Remove all widgets contained in the window's workspace container.
Window OpenCV Mouse base class.
virtual void showGuiInterface()
Show the window gui interface.
virtual void actionExitState(int nNextStateId, int nEventId)
Execute "exit state" action.