CRobotControlMainFrame Class Reference

#include <RobotControlMainFrame.h>

Inheritance diagram for CRobotControlMainFrame:

CMDIFrameWndEx CFrameWndBase< TBase > CFrameWndBase< TBase > CBmpMenuOwnerWnd< TBase > CBmpMenuOwnerWnd< TBase > CBmpMenuOwnerWnd< TBase > CBmpMenuOwnerWnd< TBase > List of all members.

Public Member Functions

 CRobotControlMainFrame ()
virtual ~CRobotControlMainFrame ()
bool handleMessageInDialog (UINT dialogID, InMessage &message)
void OnIdle ()
void createDialogBarsAndToolBars (CSplashScreenDlg &splashScreen)
virtual BOOL OnCommand (WPARAM wParam, LPARAM lParam)
virtual BOOL OnCmdMsg (UINT nID, int nCode, void *pExtra, AFX_CMDHANDLERINFO *pHandlerInfo)
void OnConfigurationLoad (CString sectionName)
void OnConfigurationSave (CString sectionName)

Public Attributes

DebugDrawingManager debugDrawingManager

Protected Member Functions

afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnClose ()
afx_msg void OnDropDown (NMHDR *pNotifyStruct, LRESULT *pResult)
afx_msg void OnDestroy ()
afx_msg void OnViewToolBar (UINT nID)
afx_msg void OnUpdateViewBar (CCmdUI *pCmdUI)
afx_msg void OnUpdateCmdUI (CCmdUI *pCmdUI)
afx_msg void OnAppAbout ()
 DECLARE_MESSAGE_MAP ()

Protected Attributes

std::map< UINT, CRobotControlDialogBar * > dialogBarMap
CArray< CRobotControlDialogBar *,
CRobotControlDialogBar * > 
dialogBarArray
CArray< CDynamicBarT< CRobotControlDialogBar > *,
CDynamicBarT< CRobotControlDialogBar > * > 
dynamicBarArray
std::map< UINT, CRobotControlToolBar * > toolBarMap
CArray< CRobotControlToolBar *,
CRobotControlToolBar * > 
toolBarArray
CStatusBar m_wndStatusBar
CRobotControlMenu menu

Private Member Functions

 DECLARE_DYNAMIC (CRobotControlMainFrame)

Detailed Description

The RobotControl main window. Embeds the dialogs and toolbars. Hosts the debug drawing manager.

Author:
Martin Lötzsch

Definition at line 31 of file RobotControlMainFrame.h.


Constructor & Destructor Documentation

CRobotControlMainFrame::CRobotControlMainFrame (  ) 

Constructor

Definition at line 320 of file RobotControlMainFrame.cpp.

CRobotControlMainFrame::~CRobotControlMainFrame (  )  [virtual]

Deconstructor

Definition at line 324 of file RobotControlMainFrame.cpp.

References dialogBarArray, dynamicBarArray, and toolBarArray.


Member Function Documentation

void CRobotControlMainFrame::createDialogBarsAndToolBars ( CSplashScreenDlg splashScreen  ) 

Creates the dialogs and toolbars. This is not done in OnCreate but later.

Parameters:
splashScreen A reference to the splash screen to display progress messages.

Definition at line 82 of file RobotControlMainFrame.cpp.

References CREATE_DIALOG_BAR, CREATE_TOOLBAR, getConfigurationManager(), ID_TOOLBAR_CAMERAPARAMETERS, ID_TOOLBAR_DEBUGKEYS, ID_TOOLBAR_GAME, ID_TOOLBAR_LOGPLAYER, ID_TOOLBAR_WLAN, IDC_STATUS_BAR_LOGPLAYER_FILENAME, IDC_STATUS_BAR_LOGPLAYER_MESSAGE, IDC_STATUS_BAR_LOGPLAYER_MESSAGE_ID, IDC_STATUS_BAR_SIMULATION_STEPS, IDD_DIALOG_BAR_COLORTABLE64, IDD_DIALOG_BAR_DEBUGMESSAGEGENERATOR, IDD_DIALOG_BAR_GT2004BALLLOCATOR_SETTINGS, IDD_DIALOG_BAR_GT2004WALKINGPARAMETERSET, IDD_DIALOG_BAR_HEADMOTIONTESTER, IDD_DIALOG_BAR_HISTOGRAM, IDD_DIALOG_BAR_HSICOLORTABLETOOL, IDD_DIALOG_BAR_IMAGEVIEWER, IDD_DIALOG_BAR_INVKINPARAMETERS, IDD_DIALOG_BAR_JOINT_VIEWER, IDD_DIALOG_BAR_JOYSTICKMOTIONTESTER, IDD_DIALOG_BAR_KICK_EDITOR, IDD_DIALOG_BAR_LARGEIMAGEVIEWER, IDD_DIALOG_BAR_MESSAGEVIEWER, IDD_DIALOG_BAR_MOFTESTER, IDD_DIALOG_BAR_MOTIONTESTER, IDD_DIALOG_BAR_OPTIONRATING, IDD_DIALOG_BAR_RADAR_VIEWER, IDD_DIALOG_BAR_SETTINGS, IDD_DIALOG_BAR_SIMULATOR_OBJECT_VIEWER, IDD_DIALOG_BAR_STATISTICS, IDD_DIALOG_BAR_TACTICDESIGNER, IDD_DIALOG_BAR_TEST_DATA_GENERATOR, IDD_DIALOG_BAR_TIME_DIAGRAM, IDD_DIALOG_BAR_TSLCOLORTABLETOOL, IDD_DIALOG_BAR_VALUE_HISTORY, IDD_DIALOG_BAR_XABSL2, IDD_DIALOG_BAR_XABSL2PROFILER, and CRobotControlConfigurationManager::loadConfiguration().

Referenced by CRobotControlApp::InitInstance().

CRobotControlMainFrame::DECLARE_DYNAMIC ( CRobotControlMainFrame   )  [private]

CRobotControlMainFrame::DECLARE_MESSAGE_MAP (  )  [protected]

Reimplemented from CMDIFrameWndEx.

bool CRobotControlMainFrame::handleMessageInDialog ( UINT  dialogID,
InMessage message 
)

Sends a message to a dialog bar

Parameters:
dialogID The id of the dialog bar (from resource.h)
message The message
Returns:
If the message was handled

Definition at line 386 of file RobotControlMainFrame.cpp.

References dialogBarMap.

Referenced by CMessageHandlerForQueueToGUI::handleMessage().

void CRobotControlMainFrame::OnAppAbout (  )  [protected]

Definition at line 446 of file RobotControlMainFrame.cpp.

void CRobotControlMainFrame::OnClose (  )  [protected]

Reimplemented from CFrameWndBase< TBase >.

Definition at line 401 of file RobotControlMainFrame.cpp.

References debugDrawingManager, CRobotControlPhysicalRobots::disconnect(), getPhysicalRobots(), CFrameWndBase< TBase >::OnClose(), and DebugDrawingManager::saveProperties().

BOOL CRobotControlMainFrame::OnCmdMsg ( UINT  nID,
int  nCode,
void *  pExtra,
AFX_CMDHANDLERINFO *  pHandlerInfo 
) [virtual]

Custom message routing

Definition at line 336 of file RobotControlMainFrame.cpp.

References OnCommand(), and toolBarArray.

BOOL CRobotControlMainFrame::OnCommand ( WPARAM  wParam,
LPARAM  lParam 
) [virtual]

Handles WM_COMMAND control notifications

Definition at line 360 of file RobotControlMainFrame.cpp.

References dialogBarArray, CRobotControlMenu::handleCommand(), menu, and toolBarArray.

Referenced by OnCmdMsg().

void CRobotControlMainFrame::OnConfigurationLoad ( CString  sectionName  ) 

Is called when a configuration is loaded.

Parameters:
sectionName The registry section for the current configuration

Definition at line 452 of file RobotControlMainFrame.cpp.

References dialogBarArray.

Referenced by CRobotControlConfigurationManager::loadConfiguration().

void CRobotControlMainFrame::OnConfigurationSave ( CString  sectionName  ) 

Is called when a configuration is saved.

Parameters:
sectionName The registry section for the current configuration

Definition at line 461 of file RobotControlMainFrame.cpp.

References dialogBarArray.

Referenced by CRobotControlConfigurationManager::saveConfiguration().

int CRobotControlMainFrame::OnCreate ( LPCREATESTRUCT  lpCreateStruct  )  [protected]

Reimplemented from CMDIFrameWndEx.

Definition at line 373 of file RobotControlMainFrame.cpp.

References debugDrawingManager, DebugDrawingManager::loadProperties(), CFrameWndBase< TBase >::m_wndReBar, and CMDIFrameWndEx::OnCreate().

void CRobotControlMainFrame::OnDestroy (  )  [protected]

Definition at line 441 of file RobotControlMainFrame.cpp.

void CRobotControlMainFrame::OnDropDown ( NMHDR *  pNotifyStruct,
LRESULT *  pResult 
) [protected]

Definition at line 391 of file RobotControlMainFrame.cpp.

References toolBarArray.

void CRobotControlMainFrame::OnIdle (  ) 

Should be called for idle processings

Definition at line 470 of file RobotControlMainFrame.cpp.

References dialogBarArray, and toolBarArray.

Referenced by CRobotControlApp::OnIdle().

void CRobotControlMainFrame::OnUpdateCmdUI ( CCmdUI *  pCmdUI  )  [protected]

Definition at line 155 of file RobotControlMainFrame.cpp.

References dialogBarMap, ID_TOOLBAR_DEBUGKEYS, ID_TOOLBAR_GAME, ID_TOOLBAR_LOGPLAYER, ID_TOOLBAR_SIMULATED_ROBOTS, ID_TOOLBAR_WLAN, IDC_DEBUGKEY_ALWAYS_RADIO, IDC_DEBUGKEY_DISABLED_RADIO, IDC_DEBUGKEY_EDIT_FOR_LOCAL, IDC_DEBUGKEY_EDIT_FOR_ROBOT, IDC_DEBUGKEY_EVERYNMS_RADIO, IDC_DEBUGKEY_EVERYNTIMES_RADIO, IDC_DEBUGKEY_IMMEDIATE_RADIO, IDC_DEBUGKEY_N_EDIT, IDC_DEBUGKEY_NTIMES_RADIO, IDC_DEBUGKEY_REALTIME_RADIO, IDC_DEBUGKEY_REJECT_RADIO, IDC_DEBUGKEY_SECONDS_EDIT, IDC_DEBUGKEY_STICK_IMMEDIATE_RADIO, IDC_DEBUGKEY_STICK_N_RADIO, IDC_DEBUGKEY_WLAN_N_RADIO, IDC_DISABLE_SIMULATED_ROBOTS, IDC_GAME_BLUE_GOAL, IDC_GAME_FINISHED, IDC_GAME_INITIAL, IDC_GAME_KICKOFF_BLUE, IDC_GAME_KICKOFF_RED, IDC_GAME_PENALIZED, IDC_GAME_PLAYING, IDC_GAME_READY, IDC_GAME_RED_GOAL, IDC_GAME_SET, IDC_INVKINPAR_BUTTON_MUTATE, IDC_INVKINPAR_BUTTON_SEND, IDC_INVKINPAR_RADIO_OFFSPRING, IDC_INVKINPAR_RADIO_PARENT, IDC_JOINT_VIEWER_HSCROLL, IDC_LOGPLAYER_JUMP_FRAME, IDC_LOGPLAYER_NEW, IDC_LOGPLAYER_OPEN, IDC_LOGPLAYER_PAUSE, IDC_LOGPLAYER_PLAY, IDC_LOGPLAYER_RECORD, IDC_LOGPLAYER_SAVE, IDC_LOGPLAYER_SMOOTH, IDC_LOGPLAYER_STEP_BACKWARD, IDC_LOGPLAYER_STEP_FORWARD, IDC_LOGPLAYER_STEP_REPEAT, IDC_LOGPLAYER_STOP, IDC_MOFTESTER_EXECUTE_BUTTON, IDC_MOFTESTER_LOOP, IDC_SIMROBOT_BACK_PRESSED, IDC_SIMROBOT_CRASHED, IDC_SIMROBOT_DETAIL_LEVEL, IDC_SIMROBOT_DETAIL_LEVEL0, IDC_SIMROBOT_DETAIL_LEVEL1, IDC_SIMROBOT_DETAIL_LEVEL2, IDC_SIMROBOT_DETAIL_LEVEL3, IDC_SIMROBOT_DETAIL_LEVEL4, IDC_SIMROBOT_DETAIL_LEVEL5, IDC_SIMROBOT_DETAIL_LEVEL6, IDC_SIMROBOT_DETAIL_LEVEL7, IDC_SIMROBOT_DETAIL_LEVEL8, IDC_SIMROBOT_DETAIL_LEVEL9, IDC_SIMROBOT_DIST0RTION1, IDC_SIMROBOT_DIST0RTION2, IDC_SIMROBOT_DIST0RTION4, IDC_SIMROBOT_DIST0RTION5, IDC_SIMROBOT_DISTORTION0, IDC_SIMROBOT_DISTORTION3, 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_VIEW_HIDDEN_LINES, IDC_SIMROBOT_ZOOM, IDC_SIMROBOT_ZOOM0, IDC_SIMROBOT_ZOOM1, IDC_SIMROBOT_ZOOM2, IDC_SIMROBOT_ZOOM3, IDC_SIMROBOT_ZOOM4, IDC_SIMROBOT_ZOOM5, IDC_SIMROBOT_ZOOM6, IDC_SIMROBOT_ZOOM7, IDC_SIMROBOT_ZOOM8, IDC_SIMROBOT_ZOOM9, 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_LOGPLAYER_FILENAME, IDC_STATUS_BAR_LOGPLAYER_MESSAGE, IDC_STATUS_BAR_LOGPLAYER_MESSAGE_ID, IDC_STATUS_BAR_SIMULATION_STEPS, IDC_TDG_DESCRIPTION_A_EDIT, IDC_TDG_DESCRIPTION_B_EDIT, IDC_TDG_DESCRIPTION_C_EDIT, IDC_TDG_DESCRIPTION_D_EDIT, IDC_TDG_DESCRIPTION_E_EDIT, IDC_TDG_DESCRIPTION_F_EDIT, IDC_TDG_DESCRIPTION_G_EDIT, IDC_TDG_DESCRIPTION_H_EDIT, IDC_TDG_DESCRIPTION_I_EDIT, IDC_TDG_DESCRIPTION_J_EDIT, IDC_WLAN_ADD, IDC_WLAN_BLUE1, IDC_WLAN_BLUE2, IDC_WLAN_BLUE3, IDC_WLAN_BLUE4, IDC_WLAN_COMBO, IDC_WLAN_CONNECT, IDC_WLAN_DELETE, IDC_WLAN_DISCONNECT, IDC_WLAN_EDIT, IDC_WLAN_RED1, IDC_WLAN_RED2, IDC_WLAN_RED3, IDC_WLAN_RED4, IDC_XABSL2_PARAM_EDIT1, IDC_XABSL2_PARAM_EDIT2, IDC_XABSL2_PARAM_EDIT3, IDC_XABSL2_PARAM_EDIT4, IDC_XABSL2_PARAM_EDIT5, IDC_XABSL2PROFILER_FRAMENUMBER_EDIT, IDD_DIALOG_BAR_INVKINPARAMETERS, IDD_DIALOG_BAR_JOINT_VIEWER, IDD_DIALOG_BAR_MOFTESTER, IDD_DIALOG_BAR_SIMULATOR_OBJECT_VIEWER, IDD_DIALOG_BAR_TEST_DATA_GENERATOR, IDD_DIALOG_BAR_XABSL2, IDD_DIALOG_BAR_XABSL2PROFILER, menu, toolBarMap, and CRobotControlMenu::updateUI().

void CRobotControlMainFrame::OnUpdateViewBar ( CCmdUI *  pCmdUI  )  [protected]

Definition at line 425 of file RobotControlMainFrame.cpp.

References int().

void CRobotControlMainFrame::OnViewToolBar ( UINT  nID  )  [protected]

Definition at line 410 of file RobotControlMainFrame.cpp.

References FALSE.


Member Data Documentation

DebugDrawingManager CRobotControlMainFrame::debugDrawingManager

The DebugDrawingManager

Definition at line 78 of file RobotControlMainFrame.h.

Referenced by getDebugDrawingManager(), CRobotControlDialogBar::getDebugImageCameraInfo(), CMessageHandlerForQueueToGUI::handleMessage(), OnClose(), OnCreate(), CRobotControlFieldView::OnCreate(), CRobotControlFieldView::OnMouseWheel(), CRobotControlFieldView::OnPaint(), CRobotControlDialogBar::paintDrawingPaper(), CRobotControlDialogBar::registerDrawingPaper(), and DebugDrawingManagerUI::showContextMenu().

CArray<CRobotControlDialogBar*,CRobotControlDialogBar*> CRobotControlMainFrame::dialogBarArray [protected]

Allows to access the dialog bars by number

Definition at line 86 of file RobotControlMainFrame.h.

Referenced by OnCommand(), OnConfigurationLoad(), OnConfigurationSave(), OnIdle(), and ~CRobotControlMainFrame().

std::map<UINT,CRobotControlDialogBar*> CRobotControlMainFrame::dialogBarMap [protected]

Allows to access the dialog bars by their id

Definition at line 83 of file RobotControlMainFrame.h.

Referenced by handleMessageInDialog(), and OnUpdateCmdUI().

CArray<CDynamicBarT<CRobotControlDialogBar>*,CDynamicBarT<CRobotControlDialogBar>*> CRobotControlMainFrame::dynamicBarArray [protected]

Only used to delete the dialog bars in the end

Definition at line 89 of file RobotControlMainFrame.h.

Referenced by ~CRobotControlMainFrame().

CStatusBar CRobotControlMainFrame::m_wndStatusBar [protected]

The status bar

Definition at line 98 of file RobotControlMainFrame.h.

CRobotControlMenu CRobotControlMainFrame::menu [protected]

Handles the entries of the main menu

Definition at line 101 of file RobotControlMainFrame.h.

Referenced by OnCommand(), and OnUpdateCmdUI().

CArray<CRobotControlToolBar*,CRobotControlToolBar*> CRobotControlMainFrame::toolBarArray [protected]

Allows to access the tool bars by number

Definition at line 95 of file RobotControlMainFrame.h.

Referenced by OnCmdMsg(), OnCommand(), OnDropDown(), OnIdle(), and ~CRobotControlMainFrame().

std::map<UINT,CRobotControlToolBar*> CRobotControlMainFrame::toolBarMap [protected]

Allows to access the tool bars by their id

Definition at line 92 of file RobotControlMainFrame.h.

Referenced by OnUpdateCmdUI().


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