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.
55 lines
1.7 KiB
C++
55 lines
1.7 KiB
C++
#ifndef TABLEOBJ_H
|
|
#define TABLEOBJ_H
|
|
#pragma once
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
//文件 TableObj.h
|
|
//主要功能:
|
|
// 表格类
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#include "wellbaseobj.h"
|
|
#include "StructDefine.h"
|
|
|
|
class AFX_EXT_CLASS CTableObj : public CWellBaseObj
|
|
{
|
|
public:
|
|
CTableObj(void);
|
|
CTableObj(const CRect8& position);
|
|
virtual ~CTableObj(void);
|
|
|
|
void operator=(const CTableObj &tableOjb);
|
|
|
|
public:
|
|
int m_nRow; //行数
|
|
int m_nCol; //列数
|
|
double m_fWidth; //单位宽度
|
|
double m_fHeight; //单位高度
|
|
TObjectArray <CELLSTRUCT> m_cellArrObj; //表格数组
|
|
TTypeArray <double> m_fWidthArr; //宽度数组
|
|
TTypeArray <double> m_fHeightArr; //高度数组
|
|
map<int, COLORREF> m_clrMap; //颜色与序号Map
|
|
CTable* m_Table; //表格变量
|
|
|
|
////当表格与井处于同一个CXy里面同一个级别时使用
|
|
double m_fTopLeft_X; //Topleft 相对于井TopLeft的位置
|
|
double m_fTopLeft_Y; //Topleft 相对于井TopLeft的位置
|
|
double m_fRect_Height; //高度
|
|
double m_fRect_Width; //宽度
|
|
double m_fAngle; //旋转角度
|
|
|
|
public:
|
|
void Clear(void);
|
|
|
|
virtual void DrawContent(CXyDCBase* pDC, CRect8 rect, CString str, GDFLOGFONT font, int layout);
|
|
|
|
////HFX 2015.5.15 读完PCG内容后把读到的内容转化成CTable中相应的控制变量
|
|
virtual void TransformToTableContent();
|
|
////HFX 2015.5.29 把字符串转化成符号库中的相应符号(读完时使用)
|
|
virtual void TransformCStringToMark(CTableCell* pTableCell,CELLSTRUCT* pCellStruct);
|
|
|
|
//PCG读写
|
|
virtual int ReadPCG(CFile &fr, const short &ver);
|
|
virtual void WritePCG(CFile &fw,int nBaseTabNum);
|
|
};
|
|
|
|
#endif
|