RCSimMainFrame Class Reference

main frame of the application More...

Collaboration diagram for RCSimMainFrame:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void ActiveViewChanged (RCWorldDoc *pDoc)
RCLogWindow & GetLogWindow ()
void OnFileNew ()
void OnFileOpen (const TChar *caFileName=NULL)
RCSimMouseHandler::RSHandleResponse HandleMouseAction (TLong nFlags, RCPoint Pos, RCCameraComponent &Camera, RCSimulation &Simulation)

Static Public Member Functions

static RCSimMainFrameGetInstance ()
static const RCGlobalSettingsGlobalSettings ()

Protected Types

typedef TRCComponentList<
RCSimMouseHandler > 
TMouseHandlerList
typedef vector< RCDockable * > TDockableVector
enum  TConstants {
  TOOLBAR_BUTTON_WIDTH = 32,
  SIM_TIME_TEXT_INDEX = 1,
  SIM_TIME_INDEX = 2,
  SIM_SPEED_TEXT_INDEX = 3,
  SIM_SPEED_INDEX = 4,
  SIM_RATE_TEXT_INDEX = 5,
  SIM_RATE_INDEX = 6,
  STATUSBAR_PANE_COUNT = 7
}

Protected Member Functions

virtual BOOL PreCreateWindow (CREATESTRUCT &cs)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnClose ()
afx_msg void OnUpdateSimViewCmdUI (CCmdUI *pCmdUI)
afx_msg void OnUpdateToggleDockableCmdUI (CCmdUI *pCmdUI)
afx_msg void OnToggleDockable (TInt nCmdId)
afx_msg void OnGlobalSettings ()
afx_msg void OnMouseSettings ()
afx_msg void OnWindowNew ()
afx_msg LRESULT OnUpdateSimInfo (WPARAM wParam, LPARAM lParam)
afx_msg void DisableCmdUI (CCmdUI *pCmdUI)
void InitStatusBar ()
void VerifyGlobalSettings ()
void OpenSimulationFile (const TChar *caFileName)
RCMdiChildFrame * CreateSimChildFrame (RCSimulationDoc *pDocument)

Static Protected Member Functions

static void RegisterCmdIcons ()

Protected Attributes

RCToolBar m_ToolBar
RCToolBar m_GuiBar
RCToolBar m_SimBar
RCToolBar m_RecBar
RCLogWindow m_LogWindow
RCIniFileSerializer m_IniFileSerializer
RCParameterGroup m_IniParamGroup
RCGlobalSettings m_GlobalSettings
TMouseHandlerList m_MouseHandlerList
TDockableVector m_DockableList

Static Protected Attributes

static const RCString LOG_NAME = _T("MainFrame")
static const RCString INI_FILE = _T("simbob.ini")
static const RCString DOCK_STATE_SECTION = _T("DockStates")
static const RCString MRU_FILES_SECTION = _T("MRUFiles")
static const RCString LOG_WINDOW_SECTION = _T("LogWindow")
static RCSimMainFramem_pInstance = NULL
static const TInt TOOLBAR_CMD_LIST []
static const TInt GUIBAR_CMD_LIST []
static const TInt SIMBAR_CMD_LIST []
static const TInt RECBAR_CMD_LIST []
static const TInt STATUSBAR_CMD_IDS [STATUSBAR_PANE_COUNT]
static const RCString STATUSBAR_TEXT [STATUSBAR_PANE_COUNT]
static const TSInt STATUSBAR_WIDTH [STATUSBAR_PANE_COUNT]
static const TInt STATUSBAR_STYLE [STATUSBAR_PANE_COUNT]

Friends

class RCMdiChildFrame

Detailed Description

main frame of the application

Author:
<a href="mailto:stellmann@users.sourceforge.net'"Patrik Stellmann


Member Data Documentation

const TInt RCSimMainFrame::GUIBAR_CMD_LIST [static, protected]
 

Initial value:

{
    RCToolBar::SEPARATOR_CMD_ID,
}

const TInt RCSimMainFrame::RECBAR_CMD_LIST [static, protected]
 

Initial value:

{
    RCToolBar::SEPARATOR_CMD_ID,
}

const TInt RCSimMainFrame::SIMBAR_CMD_LIST [static, protected]
 

Initial value:

{
    IDC_SIMULATION_START,
    IDC_SIMULATION_PAUSE,
    IDC_SIMULATION_STOP,
}

const TInt RCSimMainFrame::STATUSBAR_CMD_IDS [static, protected]
 

Initial value:

{
    ID_SEPARATOR,
    ID_SIM_TIME_TEXT,
    ID_SIM_TIME,
    ID_SIM_SPEED_TEXT,
    ID_SIM_SPEED,
    ID_SIM_RATE_TEXT,
    ID_SIM_SPEED,
}

const TInt RCSimMainFrame::STATUSBAR_STYLE [static, protected]
 

Initial value:

{
    SBPS_STRETCH | SBPS_NOBORDERS,  
    SBPS_NOBORDERS,         
    SBPS_NORMAL,            
    SBPS_NOBORDERS,         
    SBPS_NORMAL,            
    SBPS_NOBORDERS,         
    SBPS_NORMAL,            
}

const RCString RCSimMainFrame::STATUSBAR_TEXT [static, protected]
 

Initial value:

{
    _T(""),                     
    _T("  time:"),                  
    _T(" xx:xx:xx.xxx"),            
    _T("  speed:"),                 
    _T(" xxx%"),                    
    _T("  frame rate:"),            
    _T(" xxx.x fps"),               
}

const TSInt RCSimMainFrame::STATUSBAR_WIDTH [static, protected]
 

Initial value:

{
    0,
    25,         
    60,         
    35,         
    35,         
    30,         
    30,         
}


The documentation for this class was generated from the following files:
Generated on Thu Feb 16 12:46:08 2006 for Simulator Bob by  doxygen 1.4.6-NO