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.
kev/Drawer/Module/GeoSigmaDraw/ItemSelectElement.h

68 lines
1.7 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "item.h"
namespace NItem
{
class CItemSelectElement : public CItem
{
public:
CItemSelectElement(CSigmaDoc * ppDoc);
virtual ~CItemSelectElement(void);
class SELECT_ITEM
{
public:
POSITION pos;
CPoint2D point;
SELECT_ITEM()
{
pos=NULL;
};
};
CList<SELECT_ITEM,SELECT_ITEM> SelectList;
protected:
CList<SELECT_ITEM,SELECT_ITEM> RedoList;
BOOL m_nCompareIdea; //在已选择曲线中查找是否已选中过,-1=不比较0=比较首尾1=比较全部
int m_SelectType;
UINT m_SelectID;
int num; //选择的个数
BOOL m_bRedraw;
int m_countSelected;
public:
void OnDraw(CXyDC* pDC) override;
void OnDraw(CXyDC* pXyDC, CDC* pDC) override;
void OnLButtonDown(CDC* pDC, UINT nFlags, CPoint point, int vk) override;
int OnMouseMove(CDC* pDC, UINT nFlags, CPoint point) override;
virtual void DrawSelectItem(POSITION pos);
virtual void DrawSelectItem(SELECT_ITEM& item);
virtual BOOL DoSelectEnd(void);
virtual BOOL SelectItem(POSITION pos,CPoint2D point);
virtual BOOL Select(POSITION pos, CPoint2D point);
virtual BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
virtual void Redo(void);
virtual void Undo(void);
virtual BOOL IsElementType(POSITION pos, int type);
virtual BOOL IsCanSelected(POSITION pos);
virtual BOOL IsSelectItem(POSITION pos);
void RemoveAllSelect();
//void InvalidateOne(POSITION pos);
BOOL IsMoveSelect(void);
BOOL IsCanRedo(void);
BOOL IsCanUndo(void);
POSITION GetSelectItem(int nIndex);
void RemoveAt(int nIndex);
int GetSelectCount(void);
void SetNumber(int nNum);
void SetSelectInfo(int nType,UINT nInfoID);
void SetCompareIdea(int nIdea);
void InvalidateSelect(void);
void EnableDraw(BOOL bEnable);
int GetCountSelected();
};
};