⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfrm.h

📁 用bcg库编写的java IDE 源码
💻 H
字号:
// MainFrm.h : interface of the CMainFrame class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRM_H__46C0BD0B_74EF_4089_B51A_FFE3D860DC8B__INCLUDED_)
#define AFX_MAINFRM_H__46C0BD0B_74EF_4089_B51A_FFE3D860DC8B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000



#define CBaseFrameWnd CBCGMDIFrameWnd
//#define CBaseFrameWnd CGuiMDIFrame



#include "worksbar.h"
#include "outpbar.h"
#include "bgstatbar.h"

#include "UndoRedoDlg.h"
#include "WizToolBar.h"
#include "CodeFinisherListBox.h"
#include "ParamWnd.h"



class CMainFrame : public CBaseFrameWnd
{
	DECLARE_DYNAMIC(CMainFrame)
public:
	CMainFrame();
//   static CList<CMainDockBar*,CMainDockBar*> m_DockingWindows;
// Attributes
public:
	bool m_bFullScreen;
	BOOL m_bGotFocus;
private:
	// used for full-screen mode
	bool         m_bStatusBarWasVisible; // , m_bToolBarWasVisible;
	CRect	     m_mainRect;
	CToolBar     *m_pwndFullScreenBar;
	bool m_bMax, m_bChildMax;
// Operations
public:
    CFileViewTree* getFileView(){return CWorkSpaceBar::m_pwndFileView;}

    void FullScreenOn();
	void FullScreenOff();
	int  MDIGetCount();
	void MDIPrev();
	void ChooseStatusBar (BOOL bActivate);

    CCodeFinisherListBox        m_wndCodeCompletionList;
	CParamWnd                   m_wndParamView;
    CImageList        m_ilCCimages;
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMainFrame)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	//}}AFX_VIRTUAL
//	void AddClass(LPCTSTR szpName,CDefinitionBlock *pDef);
	CWorkSpaceBar* GetWorkSpaceBar();

	
// Implementation
public:
	virtual ~CMainFrame();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
    void FlashUntilFocus ();
	void CloseWorkSpace();
protected:  // control bar embedded members
	
	
	CStatusBarEx		  m_wndStatusBar;	
	CBCGMenuBar		      m_wndMenuBar;
    CBCGToolBar		      m_wndToolBar;
    CBCGToolBarImages	  m_BarImages;		// Disk images
    CWizToolBar           m_wndWizardBar;
    CBCGToolBar           m_wndBuildBar;
	
    CImageList            m_compileImg;
    CImageList            m_wizbarImg;

    CWorkSpaceBar         m_wndWorkspaceBar;
    COutputBar            m_wndOutputBar;

	BOOL                  m_bActivated;
	CMenu* cm;
// Generated message map functions
protected:
	//{{AFX_MSG(CMainFrame)

	//}}AFX_MSG
	afx_msg void OnSdkSystem();
	afx_msg void OnUpdateSdkSystem(CCmdUI* pCmdUI);

	afx_msg void OnBuildStartDebugGo();
	afx_msg void OnUpdateBuildStartDebugGo(CCmdUI* pCmdUI);
	afx_msg void OnInitMenuPopup(CMenu* pPopupMenu, UINT nIndex, BOOL bSysMenu);

	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClose();
	afx_msg void OnGo();
	afx_msg void OnUpdateGo(CCmdUI* pCmdUI);
	afx_msg void OnRun();
	afx_msg void OnUpdateRun(CCmdUI* pCmdUI);
	afx_msg void OnStopBuild();
	afx_msg void OnUpdateStopBuild(CCmdUI* pCmdUI);
	afx_msg void OnBuild();
	afx_msg void OnUpdateBuild(CCmdUI* pCmdUI);
	afx_msg void OnMDIActivate( BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd );
	afx_msg void OnSearch();
	afx_msg void OnUpdateSearch(CCmdUI* pCmdUI);
	afx_msg void OnWindowList();
	afx_msg void OnUpdateWindowList(CCmdUI* pCmdUI);
	afx_msg void OnFindInFile();
	afx_msg void OnUpdateFindInFile(CCmdUI* pCmdUI);
	afx_msg void OnWizBarMenu();
	afx_msg void OnUpdateWizBarMenu(CCmdUI* pCmdUI);
	afx_msg void OnViewOutput();
	afx_msg void OnUpdateViewOutput(CCmdUI* pCmdUI);
	afx_msg void OnViewWorkspace();
	afx_msg void OnUpdateViewWorkspace(CCmdUI* pCmdUI);
	afx_msg void OnUpdateWindowPrevious(CCmdUI* pCmdUI);
	afx_msg void OnWindowNext();
	afx_msg void OnUpdateWindowNext(CCmdUI* pCmdUI);
	afx_msg void OnWindowFiles();
	afx_msg void OnUpdateWindowFiles(CCmdUI* pCmdUI);
	afx_msg void OnWindowDockingView();
	afx_msg void OnUpdateWindowDockingView(CCmdUI* pCmdUI);
	afx_msg void OnWindowCloseAll();
	afx_msg void OnUpdateWindowCloseAll(CCmdUI* pCmdUI);
	afx_msg void OnWindowClose();
	afx_msg void OnUpdateWindowClose(CCmdUI* pCmdUI);
	afx_msg void OnWindowCascade();
	afx_msg void OnUpdateWindowCascade(CCmdUI* pCmdUI);
	afx_msg void OnViewRefresh();
	afx_msg void OnUpdateViewRefresh(CCmdUI* pCmdUI);
	afx_msg void OnViewProperties();
	afx_msg void OnUpdateViewProperties(CCmdUI* pCmdUI);
	afx_msg void OnViewFullscreen();
	afx_msg void OnUpdateViewFullscreen(CCmdUI* pCmdUI);
	afx_msg void OnEditFindInFile();
	afx_msg void OnUpdateEditFindInFile(CCmdUI* pCmdUI);
	afx_msg void OnFileSaveAll();
	afx_msg void OnUpdateFileSaveAll(CCmdUI* pCmdUI);
	afx_msg void OnUpdateWizBarClass(CCmdUI* pCmdUI);
	afx_msg void OnUpdateWizBarFunct(CCmdUI* pCmdUI);
	afx_msg void OnFileOpenworkspace();
	afx_msg void OnUpdateFileOpenworkspace(CCmdUI* pCmdUI);
	afx_msg void OnFileSaveworkspace();
	afx_msg void OnUpdateFileSaveworkspace(CCmdUI* pCmdUI);
	afx_msg void OnFileCloseworkspace();
	afx_msg void OnUpdateFileCloseworkspace(CCmdUI* pCmdUI);
	afx_msg void OnEditGoto();
	afx_msg void OnUpdateEditGoto(CCmdUI* pCmdUI);
	afx_msg void OnWorkspcAddNewProject();
	afx_msg void OnUpdateWorkspcAddNewProject(CCmdUI* pCmdUI);
	afx_msg void OnWorkspcDockingView();
	afx_msg void OnUpdateWorkspcDockingView(CCmdUI* pCmdUI);
	afx_msg void OnWorkspcHide();
	afx_msg void OnUpdateWorkspcHide(CCmdUI* pCmdUI);
	afx_msg void OnWorkspcInsertProjInto();
	afx_msg void OnUpdateWorkspcInsertProjInto(CCmdUI* pCmdUI);
	afx_msg void OnWorkspcProp();
	afx_msg void OnUpdateWorkspcProp(CCmdUI* pCmdUI);
	afx_msg void OnProjectBuild();
	afx_msg void OnUpdateProjectBuild(CCmdUI* pCmdUI);
	afx_msg void OnProjectBuildSel();
	afx_msg void OnUpdateProjectBuildSel(CCmdUI* pCmdUI);
	afx_msg void OnProjectClean();
	afx_msg void OnUpdateProjectClean(CCmdUI* pCmdUI);
	afx_msg void OnProjectDependencies();
	afx_msg void OnUpdateProjectDependencies(CCmdUI* pCmdUI);
	afx_msg void OnProjectDockingView();
	afx_msg void OnUpdateProjectDockingView(CCmdUI* pCmdUI);
	afx_msg void OnProjectExportMakefile();
	afx_msg void OnUpdateProjectExportMakefile(CCmdUI* pCmdUI);
	afx_msg void OnProjectHide();
	afx_msg void OnUpdateProjectHide(CCmdUI* pCmdUI);
	afx_msg void OnProjectInsertProjectIntoWorkspace();
	afx_msg void OnUpdateProjectInsertProjectIntoWorkspace(CCmdUI* pCmdUI);
	afx_msg void OnProjectNewFolder();
	afx_msg void OnUpdateProjectNewFolder(CCmdUI* pCmdUI);
	afx_msg void OnProjectProp();
	afx_msg void OnUpdateProjectProp(CCmdUI* pCmdUI);
	afx_msg void OnProjectSetAsActive();
	afx_msg void OnUpdateProjectSetAsActive(CCmdUI* pCmdUI);
	afx_msg void OnProjectSettings();
	afx_msg void OnUpdateProjectSettings(CCmdUI* pCmdUI);
	afx_msg void OnProjectUnload();
	afx_msg void OnUpdateProjectUnload(CCmdUI* pCmdUI);
	afx_msg void OnFolderNew();
	afx_msg void OnUpdateFolderNew(CCmdUI* pCmdUI);
	afx_msg void OnFolderHide();
	afx_msg void OnUpdateFolderHide(CCmdUI* pCmdUI);
	afx_msg void OnFolderDockingView();
	afx_msg void OnUpdateFolderDockingView(CCmdUI* pCmdUI);
	afx_msg void OnFolderAddFiles();
	afx_msg void OnUpdateFolderAddFiles(CCmdUI* pCmdUI);
	afx_msg void OnFolderProp();
	afx_msg void OnUpdateFolderProp(CCmdUI* pCmdUI);
	afx_msg void OnFolderSettings();
	afx_msg void OnUpdateFolderSettings(CCmdUI* pCmdUI);
	afx_msg void OnFileOpenex();
	afx_msg void OnUpdateFileOpenex(CCmdUI* pCmdUI);
	afx_msg void OnFileProp();
	afx_msg void OnUpdateFileProp(CCmdUI* pCmdUI);
	afx_msg void OnFileSettings();
	afx_msg void OnUpdateFileSettings(CCmdUI* pCmdUI);
	afx_msg void OnToolOptions();
	afx_msg void OnSetFocus(CWnd* pOldWnd);
    afx_msg void OnWindowPrevious();
	afx_msg void OnEditUndo();
	afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI);
    afx_msg void OnEditRedo();
    afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI);

	afx_msg void OnViewCustomize();
	afx_msg LRESULT OnToolbarReset(WPARAM,LPARAM);
	afx_msg LRESULT OnToolbarContextMenu(WPARAM,LPARAM);
	afx_msg LRESULT OnHelpCustomizeToolbars(WPARAM wp, LPARAM lp);
	afx_msg LONG OnOpenHere (WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()

	void OnBroadCastMsg(WPARAM wParam, LPARAM lParam);

	afx_msg void OnDropDown(WPARAM wParam, LPARAM lParam);

	afx_msg void OnSelchangeClass();
	afx_msg void OnSelchangeFunction();

	CUndoRedoDlg m_wndUndoRedo;
};

inline void CMainFrame::MDIPrev ()
	{ ASSERT (::IsWindow (m_hWnd)); ::SendMessage (m_hWndMDIClient, WM_MDINEXT, 0, TRUE); }

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_MAINFRM_H__46C0BD0B_74EF_4089_B51A_FFE3D860DC8B__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -