You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
#pragma once
|
|
|
|
|
#include "module.h"
|
|
|
|
|
#include "GlobalDefine.h"
|
|
|
|
|
#include "EnumDirection.h"
|
|
|
|
|
|
|
|
|
|
//obj <20><><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
class CEasyOperationMgr :public CModule
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
CEasyOperationMgr(void);
|
|
|
|
|
~CEasyOperationMgr(void);
|
|
|
|
|
virtual void Draw(CDC* pDC);
|
|
|
|
|
virtual MODULE GetModuleType(){return _EASY_OPERATION_PROP;};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SetShow(bool b){m_bShow = b;};
|
|
|
|
|
void Refresh();
|
|
|
|
|
MOUSE_TOOL JudgeMouseToolType(Dbxy pt);
|
|
|
|
|
DIRECTION GetOprDir(){return m_OprDir;};//<2F><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
Dbxy GetBasePt();
|
|
|
|
|
double GetSize(X_OR_Y xy);
|
|
|
|
|
Dbxy GetDiff(Dbxy StartPt,Dbxy EndPt);
|
|
|
|
|
private:
|
|
|
|
|
void SetRect(DbRect rect);
|
|
|
|
|
DbRect GetDrawRect();
|
|
|
|
|
MOUSE_TOOL JudgeMouseToolTypeExt(Dbxy MousePt,Dbxy pt,MOUSE_TOOL &type);
|
|
|
|
|
private:
|
|
|
|
|
bool m_bShow;//<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ
|
|
|
|
|
DbRect m_OperatRect;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Χ<EFBFBD>ľ<EFBFBD><C4BE><EFBFBD>
|
|
|
|
|
double m_Gap;//<2F><>ѡ<EFBFBD><D1A1>obj <20>ļ<EFBFBD><C4BC><EFBFBD>
|
|
|
|
|
|
|
|
|
|
DIRECTION m_OprDir;//<2F><><EFBFBD><EFBFBD><EFBFBD>ķ<EFBFBD><C4B7><EFBFBD>
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern CEasyOperationMgr *gEasyOperationMgr;
|