CRobotControlConfigurationManager Class Reference

#include <RobotControlConfigurationManager.h>

List of all members.

Public Member Functions

void init ()
 ~CRobotControlConfigurationManager ()
void loadConfiguration ()
void saveConfiguration ()
void deleteConfiguration ()

Public Attributes

CString currentConfigurationName
CArray< CString, CString > configurations


Detailed Description

Manages configurations for the RobotControl application. A configuration contains window layout, dialog settings and other informations. Configurations are stored in the registry.

Author:
Martin Lötzsch

Definition at line 23 of file RobotControlConfigurationManager.h.


Constructor & Destructor Documentation

CRobotControlConfigurationManager::~CRobotControlConfigurationManager (  ) 

Destructor. Saves available configuration names to the registry

Definition at line 42 of file RobotControlConfigurationManager.cpp.

References configurations, and currentConfigurationName.


Member Function Documentation

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().


Member Data Documentation

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().

CString CRobotControlConfigurationManager::currentConfigurationName

the name of the current configuration

Definition at line 33 of file RobotControlConfigurationManager.h.

Referenced by deleteConfiguration(), CRobotControlMenu::handleCommand(), init(), loadConfiguration(), saveConfiguration(), and ~CRobotControlConfigurationManager().


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