modelhistory.h
来自「骨骼动画....把魔兽模型解出的代码..」· C头文件 代码 · 共 75 行
H
75 行
//+-----------------------------------------------------------------------------
//| Inclusion guard
//+-----------------------------------------------------------------------------
#ifndef MAGOS_MODEL_HISTORY_H
#define MAGOS_MODEL_HISTORY_H
//+-----------------------------------------------------------------------------
//| Included files
//+-----------------------------------------------------------------------------
#include "Common.h"
//+-----------------------------------------------------------------------------
//| Constants
//+-----------------------------------------------------------------------------
CONST INT MAX_NR_OF_HISTORY_ITEMS = 8;
//+-----------------------------------------------------------------------------
//| Model history node structure
//+-----------------------------------------------------------------------------
struct MODEL_HISTORY_NODE
{
MODEL_HISTORY_NODE()
{
Id = 0;
FileName = "";
ShortFileName = "";
}
UINT Id;
std::string FileName;
std::string ShortFileName;
};
//+-----------------------------------------------------------------------------
//| Model history class
//+-----------------------------------------------------------------------------
class MODEL_HISTORY
{
public:
CONSTRUCTOR MODEL_HISTORY();
DESTRUCTOR ~MODEL_HISTORY();
VOID Clear();
VOID AddFileName(CONST std::string& FileName);
std::string GetFileName(UINT MenuItem);
BOOL Save();
BOOL Load();
UINT GetMinMenuItemId() CONST;
UINT GetMaxMenuItemId() CONST;
protected:
VOID RedrawMenu();
std::list<MODEL_HISTORY_NODE> FileNameList;
};
//+-----------------------------------------------------------------------------
//| Global objects
//+-----------------------------------------------------------------------------
extern MODEL_HISTORY ModelHistory;
//+-----------------------------------------------------------------------------
//| End of inclusion guard
//+-----------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?