#include <RobotControlConfigurationManager.h>
Public Member Functions | |
void | init () |
~CRobotControlConfigurationManager () | |
void | loadConfiguration () |
void | saveConfiguration () |
void | deleteConfiguration () |
Public Attributes | |
CString | currentConfigurationName |
CArray< CString, CString > | configurations |
Definition at line 23 of file RobotControlConfigurationManager.h.
CRobotControlConfigurationManager::~CRobotControlConfigurationManager | ( | ) |
Destructor. Saves available configuration names to the registry
Definition at line 42 of file RobotControlConfigurationManager.cpp.
References configurations, and currentConfigurationName.
void CRobotControlConfigurationManager::deleteConfiguration | ( | ) |
Saves the current configuration using currentConfigurationName
Definition at line 107 of file RobotControlConfigurationManager.cpp.
References currentConfigurationName, getRobotControlApp(), init(), loadConfiguration(), and CRobotControlApp::pMainFrame.
Referenced by CRobotControlMenu::handleCommand().
void CRobotControlConfigurationManager::init | ( | ) |
Loads the names of all available configurations from the registry.
Definition at line 17 of file RobotControlConfigurationManager.cpp.
References configurations, and currentConfigurationName.
Referenced by deleteConfiguration(), and CRobotControlApp::InitInstance().
void CRobotControlConfigurationManager::loadConfiguration | ( | ) |
Loads and applies the current configuration using currentConfigurationName
Definition at line 54 of file RobotControlConfigurationManager.cpp.
References currentConfigurationName, getRobotControlApp(), CSizingControlBar::GlobalLoadState(), CMDIFrameWndEx::LoadBarState(), CSizableReBar::LoadState(), CFrameWndBase< TBase >::m_wndReBar, CRobotControlMainFrame::OnConfigurationLoad(), CRobotControlApp::pMainFrame, and CFrameWndBase< TBase >::ShowWindow().
Referenced by CRobotControlMainFrame::createDialogBarsAndToolBars(), deleteConfiguration(), and CRobotControlMenu::handleCommand().
void CRobotControlConfigurationManager::saveConfiguration | ( | ) |
Saves the current configuration using currentConfigurationName
Definition at line 72 of file RobotControlConfigurationManager.cpp.
References configurations, currentConfigurationName, getRobotControlApp(), CSizingControlBar::GlobalSaveState(), CFrameWndBase< TBase >::m_lpszFrameWndPlacementEntry, CFrameWndBase< TBase >::m_wndReBar, CRobotControlMainFrame::OnConfigurationSave(), CRobotControlApp::pMainFrame, and CSizableReBar::SaveState().
Referenced by CRobotControlMenu::handleCommand().
CArray<CString,CString> CRobotControlConfigurationManager::configurations |
the names of all configurations in the registry
Definition at line 36 of file RobotControlConfigurationManager.h.
Referenced by CRobotControlMenu::handleCommand(), CRobotControlMenu::hideLayoutEntries(), init(), saveConfiguration(), CRobotControlMenu::showLayoutEntries(), CRobotControlMenu::updateUI(), and ~CRobotControlConfigurationManager().
the name of the current configuration
Definition at line 33 of file RobotControlConfigurationManager.h.
Referenced by deleteConfiguration(), CRobotControlMenu::handleCommand(), init(), loadConfiguration(), saveConfiguration(), and ~CRobotControlConfigurationManager().