📄 edit.h
字号:
#ifndef __EDIT.H__
#define __EDIT.H__
#include "Const.h"
#include "Menu.h"
#include "Window.h"
#include "Type.h"
#include "MenuVal.h"
#include "Common.h"
// Edit.cpp包含的函数
void EditProgram(int &, int &);
void ChangeMode(const Mode);
void ShowInsert(const int);
void PressDel();
void PressBackSpace();
void PressMenuLetterKey(const int, int &);
void PressRight();
void PressLeft();
void PressUp();
void PressDown();
void PressPageUp();
void PressPageDown();
void PressCtrlPageUp();
void PressCtrlPageDown();
void PressCtrlY();
void PressEnter();
void PressTab();
void PressText(const int);
int NextTab(const int);
int PreviousTab(const int);
// 外部调用的函数
extern void Receive(int &);
extern ErrorType CheckLine(const char []);
extern void ShowPosition();
extern void Explain(const int, const int);
extern void PrintMessages();
extern void ShowSaved(const int);
extern void PrintText(const int);
extern void StandardizeLine(const int);
extern bool IsIndent(const int);
extern void SetCursor();
// 系统状态(编辑状态,菜单状态)
Mode SystemMode = EditMode;
// 菜单打开标志
bool MenuOn;
// 外部引用的变量
extern int TextX;
extern int TextY;
extern int NowX;
extern int NowY;
extern int EndLine;
extern char TextMirror[4096];
extern int TabStart[MaxY];
extern bool Insert;
extern Window winEdit;
extern Menu mnuCool[Menu::TotMenu];
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -