#include <RobotControlMenu.h>
Public Member Functions | |
CRobotControlMenu () | |
~CRobotControlMenu () | |
void | init () |
CMenu * | getMenu () |
void | updateUI (CCmdUI *pCmdUI) |
bool | handleCommand (UINT command) |
Private Member Functions | |
void | hideLayoutEntries () |
void | showLayoutEntries () |
Jan Hoffmann
Definition at line 24 of file RobotControlMenu.h.
CRobotControlMenu::CRobotControlMenu | ( | ) |
Constructor
Definition at line 29 of file RobotControlMenu.cpp.
CRobotControlMenu::~CRobotControlMenu | ( | ) |
Deconstructor
Definition at line 33 of file RobotControlMenu.cpp.
CMenu * CRobotControlMenu::getMenu | ( | ) |
Returns a pointer to the main menu
Definition at line 85 of file RobotControlMenu.cpp.
References getRobotControlApp().
Referenced by hideLayoutEntries(), and showLayoutEntries().
bool CRobotControlMenu::handleCommand | ( | UINT | command | ) |
Handles control notifications which arrived in the main frame
command | The id of the control, menu, accelerator etc. |
Definition at line 110 of file RobotControlMenu.cpp.
References CRobotControlConfigurationManager::configurations, CRobotControlConfigurationManager::currentConfigurationName, CRobotControlConfigurationManager::deleteConfiguration(), getConfigurationManager(), hideLayoutEntries(), IDC_MENU_SCREENLAYOUT_DELETE, IDC_MENU_SCREENLAYOUT_NEW, IDC_MENU_SCREENLAYOUT_SAVE, IDC_MENU_VIEW_SCREENLAYOUT_FIRST, IDC_MENU_VIEW_SCREENLAYOUT_LAST, CRobotControlConfigurationManager::loadConfiguration(), CSettingNewDialog::m_nameEdit, CRobotControlConfigurationManager::saveConfiguration(), and showLayoutEntries().
Referenced by CRobotControlMainFrame::OnCommand().
void CRobotControlMenu::hideLayoutEntries | ( | ) | [private] |
deletes the list of saved layouts from the menu
Definition at line 175 of file RobotControlMenu.cpp.
References CRobotControlConfigurationManager::configurations, getConfigurationManager(), getMenu(), IDC_MENU_VIEW_SCREENLAYOUT_FIRST, and IDC_MENU_VIEW_SCREENLAYOUT_LAST.
Referenced by handleCommand().
void CRobotControlMenu::init | ( | ) |
Initializes the menu
Definition at line 37 of file RobotControlMenu.cpp.
References CWinAppEx::AddMenuIcon(), CWinAppEx::GetInstance(), IDB_MENU_BUTTONS, IDC_CLEAR_QUEUE_TO_ROBOT, IDC_MESSAGEVIEWER_CLEAR, IDC_SAVE_QUEUE_TO_ROBOT, IDC_SEND_MOTION_NET, IDD_DIALOG_BAR_COLOR_SPACE, 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_POTENTIAL_FIELD_VIEWER, IDD_DIALOG_BAR_RADAR_VIEWER, IDD_DIALOG_BAR_RADAR_VIEWER_3D, 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, and showLayoutEntries().
void CRobotControlMenu::showLayoutEntries | ( | ) | [private] |
inserts the list of saved layouts to the "windows layouts" submenu
Definition at line 187 of file RobotControlMenu.cpp.
References CRobotControlConfigurationManager::configurations, getConfigurationManager(), getMenu(), IDC_MENU_VIEW_SCREENLAYOUT_FIRST, and IDC_MENU_VIEW_SCREENLAYOUT_LAST.
Referenced by handleCommand(), and init().
void CRobotControlMenu::updateUI | ( | CCmdUI * | pCmdUI | ) |
Enables the controls in the menu. This function is called from the main window for all controls.
pCmdUI | An interface to the control that allows enabling/disabling, checking etc. |
Definition at line 90 of file RobotControlMenu.cpp.
References CRobotControlConfigurationManager::configurations, getConfigurationManager(), IDC_MENU_VIEW_SCREENLAYOUT_FIRST, and IDC_MENU_VIEW_SCREENLAYOUT_LAST.
Referenced by CRobotControlMainFrame::OnUpdateCmdUI().