📄 ideview.h
字号:
// IDEView.h : interface of the CIDEView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_IDEVIEW_H__95FABB0D_BAEC_4DA4_8C1A_F59422C57922__INCLUDED_)
#define AFX_IDEVIEW_H__95FABB0D_BAEC_4DA4_8C1A_F59422C57922__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "IDEDoc.h"
#include "BCMenu.h"
#include "OutBar.h"
#include "WorkSpaceBar.h"
#include "ProgressStatusBar.h"
#include "SetDlg.h"
#include "Define.h"
#include <fstream>
#include <vector>
using namespace std;
class CMainFrame;
class CIDEView : public CEditView
{
protected: // create from serialization only
CIDEView();
DECLARE_DYNCREATE(CIDEView)
// Attributes
public:
CIDEDoc* GetDocument();
// Operations
public:
void GetCompileResult();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CIDEView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CIDEView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
void PaintLeft(); //画左边显示条
void DisplayCodeInfo();//在工作空间显示源码信息
protected:
CEdit *m_pEdit; //文本编辑控件
CTreeCtrl *m_pTreeCtrl; //工作空间栏的树控件
CMainFrame* m_pMainFrame; //主框架
COutBar* m_pwndOutBar; //输出信息显示栏
CWorkSpaceBar* m_pwndWorkSpaceBar; //工作空间栏
CProgressStatusBar *m_pwndStatusBar;//状态栏
CIDEDoc *m_pIDEDoc;
CSetDlg m_SetDlg;
CFont m_fontCurFont;
CString m_strCompileProgName;//分析程序路径
int m_LineHeight;//行高
int m_nCurLn; //当前行
int m_nCurCol;//当前列
vector<LEXPROPERTYVS> m_vectorSymbol;//符号表
vector<TREENODE_LPV> m_vectorTreeNode_Lpv;
// Generated message map functions
protected:
void DisplayLnCol();
//{{AFX_MSG(CIDEView)
afx_msg void OnStart();
afx_msg void OnSet();
afx_msg void OnChange();
afx_msg void OnPaint();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnSelall();
afx_msg void OnCaptureChanged(CWnd *pWnd);
afx_msg void OnClean();
afx_msg void OnFont();
//}}AFX_MSG
afx_msg void OnPaintLeft(WPARAM,LPARAM);//自定义消息
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in IDEView.cpp
inline CIDEDoc* CIDEView::GetDocument()
{ return (CIDEDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_IDEVIEW_H__95FABB0D_BAEC_4DA4_8C1A_F59422C57922__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -