📄 regularview.h
字号:
// RegularView.h : interface of the CRegularView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_REGULARVIEW_H__A1E14BDA_E7D1_4D5B_BF5C_138505F59825__INCLUDED_)
#define AFX_REGULARVIEW_H__A1E14BDA_E7D1_4D5B_BF5C_138505F59825__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "node.h" //Node的结点定义
class CRegularView : public CView
{
protected: // create from serialization only
CRegularView();
DECLARE_DYNCREATE(CRegularView)
// Attributes
public:
CRegularDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CRegularView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
void Clear();
void DrawArc(int x1,int y1,int x2,int y2,int x3,int y3,int x4,int y4,char ch);
void DrawLine(int x1,int y1,int x2,int y2,char ch);
void DrawCircle(int x,int y,int status,int deltax,int deltay);
void DrawNFA(int x,int y,Node* pNode,int nLastNode);
void InitNodeArray();
virtual ~CRegularView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CRegularView)
afx_msg void OnDrawNFA();
afx_msg void OnInputExpression();
afx_msg void OnDrawDfa();
afx_msg void OnDrawTable();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
};
#ifndef _DEBUG // debug version in RegularView.cpp
inline CRegularDoc* CRegularView::GetDocument()
{ return (CRegularDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_REGULARVIEW_H__A1E14BDA_E7D1_4D5B_BF5C_138505F59825__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -