-
Notifications
You must be signed in to change notification settings - Fork 0
/
SectWnd.h
64 lines (57 loc) · 1.44 KB
/
SectWnd.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
50
51
52
53
54
55
56
57
58
59
60
61
62
#pragma once
// CSectWnd
class CSectWnd : public CWnd
{
DECLARE_DYNAMIC(CSectWnd)
public:
CSectWnd();
virtual ~CSectWnd();
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnPaint(void);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
public:
CIGCMap *cigcmap;
CString cArtPath;
int bShowZ;
void ChangeSector(CIGCSector *);
void DeleteAllBases(void);
void DeleteAllRocks(void);
protected:
PtrObject ClipBoard;
CMenu rmenu;
CMenu rmenu_rocks;
CMenu alephmenu;
CMenu basemenu;
CMenu rockmenu;
CMenu *ObjectMenu(PtrObject);
CIGCSector *cursect;
CList<PtrAleph,PtrAleph&> cl_palephs;
CList<PtrBase,PtrBase&> cl_pbases;
CList<PtrRock,PtrRock&> cl_procks;
PtrObject IsOverObject(CPoint);
PtrObject dragobject;
PtrObject menuobject;
CPoint dragpoint; // used to drag and to store rightmenu
float dragZ;
bool bSettingZ;
bool bMakingAleph;
LONG AlephX,AlephY;
LONG AlephDestX,AlephDestY;
void DrawGrid(CPaintDC *);
bool grid_on;
void ObjProps(PtrObject);
void ObjDelete(PtrObject);
SectorInfos sectinfo;
CFont fontsm;
public:
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
void AllUpdate(void);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnRMenu( UINT nID );
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
};