CSimulatedRobotsToolBar Class Reference

#include <SimulatedRobotsToolBar.h>

Inheritance diagram for CSimulatedRobotsToolBar:

CRobotControlToolBar CToolBarEx List of all members.

Public Member Functions

virtual void Init ()
virtual bool handleCommand (UINT command)
virtual void updateUI (CCmdUI *pCmdUI)
virtual bool handleDropDown (NMHDR *pNotifyStruct)

Protected Member Functions

void setImage (int robot)
virtual bool HasButtonText (UINT nID)

Private Member Functions

 DECLARE_DYNAMIC (CSimulatedRobotsToolBar)

Detailed Description

A ToolBar for the simulated robots ui.
Author:
Martin Lötzsch

Definition at line 19 of file SimulatedRobotsToolBar.h.


Member Function Documentation

CSimulatedRobotsToolBar::DECLARE_DYNAMIC ( CSimulatedRobotsToolBar   )  [private]

bool CSimulatedRobotsToolBar::handleCommand ( UINT  command  )  [virtual]

Handles control notifications which arrived in the main frame

Parameters:
command The id of the control, menu, accelerator etc.
Returns:
If the command was handled.

Reimplemented from CRobotControlToolBar.

Definition at line 69 of file SimulatedRobotsToolBar.cpp.

References SensorData::accelerationY, CSimRobotDocument::activateSwitch(), CRobotControlSimulatedRobots::activeWithImages, CRobotControlSimulatedRobots::activeWithoutImages, SensorData::back, CRobotControlSimulatedRobots::getSimRobotDocument(), getSimulatedRobots(), CRobotControlSimulatedRobots::getSimulatedRobotsAreDisabled(), CRobotControlSimulatedRobots::getState(), SensorData::headBack, SensorData::headFront, IDC_DISABLE_SIMULATED_ROBOTS, IDC_SIMROBOT_BACK_PRESSED, IDC_SIMROBOT_CRASHED, IDC_SIMROBOT_FORE_HEAD_PRESSED, IDC_SIMROBOT_HIND_HEAD_PRESSED, IDC_SIMROBOT_RESET, IDC_SIMROBOT_SEND_ORACLED_WORLD_STATE_LOCAL, IDC_SIMROBOT_START, IDC_SIMROBOT_STEP, IDC_SIMULATED_ROBOT1, IDC_SIMULATED_ROBOT2, IDC_SIMULATED_ROBOT3, IDC_SIMULATED_ROBOT4, IDC_SIMULATED_ROBOT5, IDC_SIMULATED_ROBOT6, IDC_SIMULATED_ROBOT7, IDC_SIMULATED_ROBOT8, CSimRobotDocument::IsRunning(), CRobotControlSimulatedRobots::OnSimReset(), CRobotControlSimulatedRobots::OnSimStart(), CRobotControlSimulatedRobots::OnSimStep(), CRobotControlSimulatedRobots::setSelectedRobot(), CRobotControlSimulatedRobots::setSendOracle(), and CRobotControlSimulatedRobots::setSimulatedRobotsAreDisabled().

bool CSimulatedRobotsToolBar::handleDropDown ( NMHDR *  pNotifyStruct  )  [virtual]

Handles Dropdown events in the toolbar

Returns:
if the message was handled

Reimplemented from CRobotControlToolBar.

Definition at line 316 of file SimulatedRobotsToolBar.cpp.

References CRobotControlSimulatedRobots::activeWithImages, CRobotControlSimulatedRobots::activeWithoutImages, CRobotControlSimulatedRobots::disabled, RobotDesign::ERS210, RobotDesign::ERS7, CRobotControlSimulatedRobots::getDesign(), getSimulatedRobots(), CRobotControlSimulatedRobots::getState(), IDC_SIMROBOT_DETAIL_LEVEL, IDC_SIMROBOT_ZOOM, IDC_SIMULATED_ROBOT1, IDC_SIMULATED_ROBOT2, IDC_SIMULATED_ROBOT3, IDC_SIMULATED_ROBOT4, IDC_SIMULATED_ROBOT5, IDC_SIMULATED_ROBOT6, IDC_SIMULATED_ROBOT7, IDC_SIMULATED_ROBOT8, IDP_SIMROBOT_DETAIL_LEVEL, IDP_SIMROBOT_ZOOM, CRobotControlSimulatedRobots::passive, setImage(), CRobotControlSimulatedRobots::setStateAndDesign(), and VERIFY.

bool CSimulatedRobotsToolBar::HasButtonText ( UINT  nID  )  [protected, virtual]

Determines if a Button has a button text

Reimplemented from CRobotControlToolBar.

Definition at line 58 of file SimulatedRobotsToolBar.cpp.

References IDC_SIMROBOT_SEND_ORACLED_WORLD_STATE_LOCAL.

void CSimulatedRobotsToolBar::Init (  )  [virtual]

Initializes the toolbar's controls and members

Implements CRobotControlToolBar.

Definition at line 21 of file SimulatedRobotsToolBar.cpp.

References BTNS_WHOLEDROPDOWN, IDB_SIMULATED_ROBOTS, IDB_SIMULATED_ROBOTS_COLD, IDC_DISABLE_SIMULATED_ROBOTS, IDC_SIMROBOT_BACK_PRESSED, IDC_SIMROBOT_CRASHED, IDC_SIMROBOT_DETAIL_LEVEL, IDC_SIMROBOT_FORE_HEAD_PRESSED, IDC_SIMROBOT_HIND_HEAD_PRESSED, IDC_SIMROBOT_RESET, IDC_SIMROBOT_SEND_ORACLED_WORLD_STATE_LOCAL, IDC_SIMROBOT_START, IDC_SIMROBOT_STEP, IDC_SIMROBOT_ZOOM, IDC_SIMULATED_ROBOT1, IDC_SIMULATED_ROBOT2, IDC_SIMULATED_ROBOT3, IDC_SIMULATED_ROBOT4, IDC_SIMULATED_ROBOT5, IDC_SIMULATED_ROBOT6, IDC_SIMULATED_ROBOT7, and IDC_SIMULATED_ROBOT8.

void CSimulatedRobotsToolBar::setImage ( int  robot  )  [protected]

Sets the correct toobar image of a simulated robot

Definition at line 297 of file SimulatedRobotsToolBar.cpp.

References CRobotControlSimulatedRobots::activeWithImages, CRobotControlSimulatedRobots::activeWithoutImages, CRobotControlSimulatedRobots::disabled, getSimulatedRobots(), IDC_SIMULATED_ROBOT1, CRobotControlSimulatedRobots::passive, and CToolBarEx::SetImage().

Referenced by handleDropDown().

void CSimulatedRobotsToolBar::updateUI ( CCmdUI *  pCmdUI  )  [virtual]

Enables the controls in the toolbar. This function is called from the main window for all controls.

Parameters:
pCmdUI An interface to the control that allows enabling/disabling, checking etc.

Reimplemented from CRobotControlToolBar.

Definition at line 143 of file SimulatedRobotsToolBar.cpp.

References SensorData::accelerationY, CRobotControlSimulatedRobots::activeWithImages, SensorData::back, FALSE, CRobotControlSimulatedRobots::getDoRestart(), CRobotControlSimulatedRobots::getSelectedRobot(), CRobotControlSimulatedRobots::getSimRobotDocument(), getSimulatedRobots(), CRobotControlSimulatedRobots::getSimulatedRobotsAreDisabled(), CRobotControlSimulatedRobots::getState(), SensorData::headBack, SensorData::headFront, IDC_DISABLE_SIMULATED_ROBOTS, IDC_SIMROBOT_BACK_PRESSED, IDC_SIMROBOT_CRASHED, IDC_SIMROBOT_FORE_HEAD_PRESSED, IDC_SIMROBOT_HIND_HEAD_PRESSED, IDC_SIMROBOT_RESET, IDC_SIMROBOT_SEND_ORACLED_WORLD_STATE_LOCAL, IDC_SIMROBOT_START, IDC_SIMROBOT_STEP, IDC_SIMULATED_ROBOT1, IDC_SIMULATED_ROBOT2, IDC_SIMULATED_ROBOT3, IDC_SIMULATED_ROBOT4, IDC_SIMULATED_ROBOT5, IDC_SIMULATED_ROBOT6, IDC_SIMULATED_ROBOT7, IDC_SIMULATED_ROBOT8, IDC_STATUS_BAR_SIMULATION_STEPS, and CSimRobotDocument::isSwitchActivated().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:25:08 2006 for DT2005.panorama by  doxygen 1.4.7