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.
54 lines
934 B
C++
54 lines
934 B
C++
#pragma once
|
|
#include ".\itemselectcurve.h"
|
|
|
|
|
|
namespace NItem
|
|
{
|
|
|
|
#define LINK_CURVE_DEFAULT 0
|
|
#define LINK_CURVE_MERGE 1
|
|
|
|
class CItemLinkCurve :
|
|
public CItemSelectCurve
|
|
{
|
|
public:
|
|
CItemLinkCurve(CSigmaDoc * ppDoc);
|
|
virtual ~CItemLinkCurve(void);
|
|
|
|
//virtual BOOL InitPropertyGrid(CXTPPropertyGrid& grid);
|
|
//virtual BOOL OnGridItemChangeValue(CXTPPropertyGridItem* pItem);
|
|
|
|
/**
|
|
* 获取曲线合并模式
|
|
*
|
|
* \return
|
|
*/
|
|
int GetMergeIdea() const;
|
|
|
|
/**
|
|
* 设置合并模式
|
|
*
|
|
* \param mergeIdea
|
|
* \return 如果不支持该模式,将返回 false
|
|
*/
|
|
bool SetMergeIdea(int mergeIdea);
|
|
|
|
bool IsDelete() const;
|
|
void SetDelete(bool isDelete);
|
|
|
|
public:
|
|
virtual BOOL DoSelectEnd(void);
|
|
int m_nMode;
|
|
BOOL MergeCurveDialog(void);
|
|
|
|
protected:
|
|
BOOL LinkCurve(void);
|
|
BOOL MergeCurve(void);
|
|
void GetLinkPointList(CPointList& PointList, SELECT_ITEM &st1, SELECT_ITEM &st2);
|
|
|
|
//for MergeCurve
|
|
int m_nMergeIdea;
|
|
BOOL m_bIsDelete;
|
|
};
|
|
|
|
}; |