📄 mainfrm.h
字号:
//////////////////////////////////////////////////////////////////////
//
// File: MainFrm.h
//
// $Archive: /ComemL/Util/PCfg/MainFrm.h $
//
// Purpose:
//
// $Author: Tpm $
//
// $History: MainFrm.h $
//
// ***************** Version 1 *****************
// User: Tpm Date: 7/13/98 Time: 8:38a
// Created in $/ComemL/Util/PCfg
//
// ***************** Version 18 *****************
// User: Tpm Date: 12/08/97 Time: 6:24p
// Updated in $/Comem/Mapper
// Bug: Small screen sizes should be displayed badly
// Fix: Modified mainframe resize to redraw on the fly.
//
// ***************** Version 17 *****************
// User: Tpm Date: 11/18/97 Time: 8:56p
// Updated in $/Comem/Mapper
// Req: Add "Running" status to main window.
// Fix: Added a new status panel (RUNNING.../Stopped).
//
// ***************** Version 16 *****************
// User: Tpm Date: 11/06/97 Time: 12:20p
// Updated in $/Comem/Mapper
// Bug: Cache view should indicate valid status more clearly.
// Fix: Used more noticible crGoldenrodcolor.
// Bug: View Target should change to View Shared Mem.
// Fix: Changed text.
// Bug: Remove CPU Properties dialog.
// Fix: Removed Item from Menu (dialog imlpementation is still around).
// Bug: Remove view Map.
// Fix: Removed Item from Menu.
// Bug: Remove Edit\InsertObject, OLE, etc.
// Fix: Removed Items from Menu.
// Bug: Remove Window\Arrange Icons.
// Fix: Removed Item from Menu.
//
// ***************** Version 15 *****************
// User: Tpm Date: 10/31/97 Time: 6:17p
// Updated in $/Comem/Mapper
// Bug: SWAP ICache/DCache locations.
// Bug: Recalc CACHE start addresses to mask off low order bit.
// Req: Make double-Click in Visual map bring up mem in local space.
// Fix: Space is remapped now.
//
// ***************** Version 14 *****************
// User: Tpm Date: 10/31/97 Time: 10:04a
// Updated in $/Comem/Mapper
// Req: Add Address Selector to Memory Views to select cache pages.
// Fix: Added Selector and strings for cache pages.
//
// ***************** Version 13 *****************
// User: Tpm Date: 10/30/97 Time: 3:44p
// Updated in $/Comem/Mapper
// Bug: ICache/DCache need to show local addresses.
// Fix: Address is now translated.
//
// ***************** Version 12 *****************
// User: Tpm Date: 10/30/97 Time: 1:40p
// Updated in $/Comem/Mapper
// Req: Display DCache and ICache memory.
// Fix: Added options to menu.
//
// ***************** Version 11 *****************
// User: Tpm Date: 10/30/97 Time: 9:18a
// Updated in $/Comem/Mapper
// Req: Implement "Load/Save Configuration" for .ini file.
// Fix: Added options to File Menu.
// Req: Should display .ini file ID in toolbar vice "Mapper1".
// Fix: Displays .ini file now.
// Bug: StartScreen Comem Number dropdown is too short.
// Fix: Changed properties to have "No Integral height"; now shows mult
// selections.
//
// ***************** Version 10 *****************
// User: Tpm Date: 10/27/97 Time: 2:56p
// Updated in $/Comem/Mapper
// Req: Put CoMem ID into toolbar.
// Fix: Added Card # to TitleBar
//
// ***************** Version 9 *****************
// User: Stevek Date: 10/22/97 Time: 12:27p
// Updated in $/Comem/Mapper
// Added header blocks to all files at once!
//
// Copyright (c) 1997 Anchor Chips, Inc. May not be reproduced without
// permission. See the license agreement for more details.
//
//////////////////////////////////////////////////////////////////////
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////
class CMainFrame : public CMDIFrameWnd
{
public:
DECLARE_DYNAMIC(CMainFrame)
CMainFrame();
CWnd* OpenMemView(int nMemBlockType);
//TPMTPMTPM void SetTitle(CString strNewTitle){m_strTitle = strNewTitle;}
void SetTitle(CString strNewTitle){TRACE("strNewTitle=%s\n", strNewTitle);}
// Attributes
public:
// Operations
public:
void DockControlBarLeftOf(CToolBar* Bar,CToolBar* LeftOf);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMainFrame)
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMainFrame();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected: // control bar embedded members
CStatusBar m_wndStatusBar;
CToolBar m_wndToolBar;
CToolBar m_wndControlBar;
// Generated message map functions
protected:
//{{AFX_MSG(CMainFrame)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnFileLoadAddin();
afx_msg void OnFileSaveAddin();
afx_msg void OnFileLoadEeprom();
afx_msg void OnFileSaveEeprom();
afx_msg void OnTestfunctionTest1();
afx_msg void OnI2cTest();
afx_msg void OnViewTargetmemory();
afx_msg void OnTestfunctionTestfileoutput();
afx_msg void OnTestfunctionTestfileinput();
afx_msg void OnTestfunctionOutputdatafile();
afx_msg void OnViewPciregisters();
afx_msg void OnViewPagetable();
afx_msg void OnViewAddinprintbuffer();
afx_msg void OnButtonReset();
afx_msg void OnButtonRun();
afx_msg void OnViewDebugregs();
afx_msg void OnViewEepromcontents();
afx_msg void OnViewTargetcpuproperties();
afx_msg void OnViewHostmemory();
afx_msg void OnFileLoadConfiguration();
afx_msg void OnFileSaveConfiguration();
afx_msg void OnViewDatacache();
afx_msg void OnViewInstructioncache();
afx_msg void OnViewSharedmemory();
afx_msg void OnUpdateRunning(CCmdUI *pCmdUI);
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
int doFileLoad(char * title, BOOL eeprom);
void doFileSave(char * title, BOOL eeprom);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -