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.
90 lines
2.2 KiB
C++
90 lines
2.2 KiB
C++
#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; //曲线=0 交点=1 空=2
|
|
double stepX; //网格步长
|
|
double stepY; //网格步长
|
|
int girdColorR;
|
|
int girdColorG;
|
|
int girdColorB;
|
|
int textHeight;
|
|
int textScale; //地理 = 0, 数学=1, 地理1=2, 地理2全部=3
|
|
int notatioinMode; //所有边=0, 左边上边=1,上边右边=2,右边下边=3,下边左边=4
|
|
double baseX; //基数x
|
|
double baseY; //基数y
|
|
double coefficientX; //系数x
|
|
double coefficientY; //系数y
|
|
double left; //坐标范围左
|
|
double top; //坐标范围上
|
|
double right; //坐标范围右
|
|
double bottom; //坐标范围底
|
|
int isShowOutBorder; //是否显示外边框
|
|
int borderThickness; //边框厚度
|
|
int blackOutterBorder; //是否显示为黑边框
|
|
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; //文字大小
|
|
double m_dThickness; //边框厚度
|
|
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); //由度转换为度分秒格式
|
|
void ToDegree(CRect8& rect); //由度分秒转换为度格式
|
|
|
|
public:
|
|
void CreateFrame(CNet* pNet);
|
|
};
|
|
|
|
}; |