|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include "itemframe.h"
|
|
|
|
|
|
|
|
|
|
|
|
namespace NItem
|
|
|
|
|
|
{
|
|
|
|
|
|
#pragma pack(1)
|
|
|
|
|
|
struct ItemEditNetData
|
|
|
|
|
|
{
|
|
|
|
|
|
ItemEditNetData()
|
|
|
|
|
|
:isShowOutBorder(0),
|
|
|
|
|
|
borderThickness(0),
|
|
|
|
|
|
blackOutterBorder(0),
|
|
|
|
|
|
borderColorR(0),
|
|
|
|
|
|
borderColorG(0),
|
|
|
|
|
|
borderColorB(0)
|
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
|
|
int showMode; //<2F><><EFBFBD><EFBFBD>=0 <20><><EFBFBD><EFBFBD>=1 <20><>=2
|
|
|
|
|
|
double stepX; //<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
double stepY; //<2F><><EFBFBD><EFBFBD>
|
|
|
|
|
|
int girdColorR;
|
|
|
|
|
|
int girdColorG;
|
|
|
|
|
|
int girdColorB;
|
|
|
|
|
|
int textHeight;
|
|
|
|
|
|
int textScale; //<2F><><EFBFBD><EFBFBD> = 0, <20><>ѧ=1, <20><><EFBFBD><EFBFBD>1=2, <20><><EFBFBD><EFBFBD>2ȫ<32><C8AB>=3
|
|
|
|
|
|
int notatioinMode; //<2F><><EFBFBD>б<EFBFBD>=0, <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>=1,<2C>ϱ<EFBFBD><CFB1>ұ<EFBFBD>=2,<2C>ұ<EFBFBD><D2B1>±<EFBFBD>=3,<2C>±<EFBFBD><C2B1><EFBFBD><EFBFBD><EFBFBD>=4
|
|
|
|
|
|
double baseX; //<2F><><EFBFBD><EFBFBD>x
|
|
|
|
|
|
double baseY; //<2F><><EFBFBD><EFBFBD>y
|
|
|
|
|
|
double coefficientX; //ϵ<><CFB5>x
|
|
|
|
|
|
double coefficientY; //ϵ<><CFB5>y
|
|
|
|
|
|
double left; //<2F><><EFBFBD>귶Χ<EAB7B6><CEA7>
|
|
|
|
|
|
double top; //<2F><><EFBFBD>귶Χ<EAB7B6><CEA7>
|
|
|
|
|
|
double right; //<2F><><EFBFBD>귶Χ<EAB7B6><CEA7>
|
|
|
|
|
|
double bottom; //<2F><><EFBFBD>귶Χ<EAB7B6><CEA7>
|
|
|
|
|
|
int isShowOutBorder; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾ<EFBFBD><CABE><EFBFBD>߿<EFBFBD>
|
|
|
|
|
|
int borderThickness; //<2F>߿<EFBFBD><DFBF><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
int blackOutterBorder; //<2F>Ƿ<EFBFBD><C7B7><EFBFBD>ʾΪ<CABE>ڱ߿<DAB1>
|
|
|
|
|
|
int borderColorR;
|
|
|
|
|
|
int borderColorG;
|
|
|
|
|
|
int borderColorB;
|
|
|
|
|
|
};
|
|
|
|
|
|
#pragma pack()
|
|
|
|
|
|
|
|
|
|
|
|
class CItemEditNet : public CItemEditFrame
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
CItemEditNet(CSigmaDoc * ppDoc);
|
|
|
|
|
|
virtual ~CItemEditNet(void);
|
|
|
|
|
|
|
|
|
|
|
|
int GetStepAndRange(ItemEditNetData* pData);
|
|
|
|
|
|
int Create(ItemEditNetData* pData, CDC* pDC);
|
|
|
|
|
|
virtual void DoLButtonUp(CDC* pDC);
|
|
|
|
|
|
bool ChangeSetting(ItemEditNetData * pData, CNet* pNet);
|
|
|
|
|
|
//virtual BOOL InitPropertyGrid(CXTPPropertyGrid& grid);
|
|
|
|
|
|
//virtual BOOL OnGridItemChangeValue(CXTPPropertyGridItem* pItem);
|
|
|
|
|
|
|
|
|
|
|
|
//BOOL InitPropertyGrid(CXTPPropertyGrid& grid, CNet* pValue);
|
|
|
|
|
|
//BOOL OnGridItemChangeValue(CXTPPropertyGridItem* pItem, CNet* pValue);
|
|
|
|
|
|
|
|
|
|
|
|
//BOOL OnGridItemChangeValue_Frame(CXTPPropertyGridItem* pItem, CNet* pNet);
|
|
|
|
|
|
//BOOL InitPropertyGrid_Frame(CXTPPropertyGrid& grid, CNet* pNet);
|
|
|
|
|
|
COLORREF m_colFrame = RGB(0, 0, 0);
|
|
|
|
|
|
BOOL m_bShowOutFrame = FALSE;
|
|
|
|
|
|
|
|
|
|
|
|
COLORREF color;
|
|
|
|
|
|
CNet* m_pNet;
|
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
int DisplayIdea;
|
|
|
|
|
|
int MarkText;
|
|
|
|
|
|
int TextFormat;
|
|
|
|
|
|
CSize8 m_szText; //<2F><><EFBFBD>ִ<EFBFBD>С
|
|
|
|
|
|
double m_dThickness; //<2F>߿<EFBFBD><DFBF><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
CSize8 m_step;
|
|
|
|
|
|
|
|
|
|
|
|
void GetDisplayIdea(CNet* pValue);
|
|
|
|
|
|
void GetMarkText(CNet* pValue);
|
|
|
|
|
|
void SetDisplayIdea(CNet* pValue);
|
|
|
|
|
|
void SetMarkText(CNet* pValue);
|
|
|
|
|
|
void GetTextFormat(CNet* pValue);
|
|
|
|
|
|
void SetTextFormat(CNet* pValue);
|
|
|
|
|
|
|
|
|
|
|
|
void ToDMS(CRect8& rect); //<2F>ɶ<EFBFBD>ת<EFBFBD><D7AA>Ϊ<EFBFBD>ȷ<EFBFBD><C8B7><EFBFBD><EFBFBD><EFBFBD>ʽ
|
|
|
|
|
|
void ToDegree(CRect8& rect); //<2F>ɶȷ<C9B6><C8B7><EFBFBD>ת<EFBFBD><D7AA>Ϊ<EFBFBD>ȸ<EFBFBD>ʽ
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
void CreateFrame(CNet* pNet);
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
};
|