-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLOGIWIRE.H
49 lines (41 loc) · 1.17 KB
/
LOGIWIRE.H
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// Logiwire.h - interface for CLogiWire and derivatives
//
// Copyright (C) 1993-1994 George Mills and Softronics, Inc. Corporation
// All rights reserved.
//
class CLogiView;
class CLogiDoc;
class CLogiGate;
/////////////////////////////////////////////////////////////////////////////
class CLogiWire : public CLogiObj
{
protected:
DECLARE_SERIAL(CLogiWire);
CLogiWire();
public:
CString Name;
int StartIO;
int EndIO;
int m_iRoute;
BOOL m_bHide;
CLogiGate *pStartGateObj;
CLogiGate *pEndGateObj;
CPen* pOldPen;
CLogiWire(const CRect& position, char *name, int ipage, CLogiDoc* pdoc);
// Implementation
public:
virtual ~CLogiWire();
virtual void CleanupReferences();
virtual void Serialize(CArchive& ar);
virtual void Draw(CDC* pDC, CLogiView* pView = NULL);
virtual BOOL Intersects(const CRect& rect);
virtual int GetHandleCount();
virtual CPoint GetHandle(int nHandle);
virtual HCURSOR GetHandleCursor(int nHandle);
virtual void MoveHandleTo(int nHandle, CPoint point, CLogiView* pView = NULL);
virtual CLogiObj* Clone(CLogiDoc* pDoc);
virtual void OnOpen(CLogiView* pView);
protected:
friend class CRectTool;
}
;