📄 spreadsheetimpl.h
字号:
// SpreadsheetImpl.h#include "SpreadsheetCell.h"class SpreadsheetApplication; // forward declarationclass SpreadsheetImpl{ public: SpreadsheetImpl(const SpreadsheetApplication& theApp, int inWidth = kMaxWidth, int inHeight = kMaxHeight); SpreadsheetImpl(const SpreadsheetImpl& src); ~SpreadsheetImpl(); SpreadsheetImpl& operator=(const SpreadsheetImpl& rhs); void setCellAt(int x, int y, const SpreadsheetCell& cell); SpreadsheetCell getCellAt(int x, int y); int getId(); // Initializing here doesn't work in some compilers static const int kMaxHeight = 100; static const int kMaxWidth = 100; protected: bool inRange(int val, int upper); void copyFrom(const SpreadsheetImpl& src); int mWidth, mHeight; int mId; SpreadsheetCell** mCells; const SpreadsheetApplication& mTheApp; static int sCounter;};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -