-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathOnStationSurveyTree.h
103 lines (93 loc) · 3.12 KB
/
OnStationSurveyTree.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
#ifndef I_ONSTATIONSURVEYTREE__
#define I_ONSTATIONSURVEYTREE__
// OnStationSurveyTree.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// COnStationSurveyTree window
class CFolder;
class CLegQuery;
class COnStationDoc;
class CLegQuery;
class CFixedPoint;
class CSurfaceData;
class CRealFolder;
class CSurveyLeg;
class COverallDataView;
typedef enum SURVEYTREESELECTED {STS_NONE,STS_REALFOLDER,STS_SURVEY,STS_FIXEDPOINT,STS_SURFACE,STS_FIXEDPOINTFOLDER};
class COnStationSurveyTree : public CTreeCtrl
{
private:
static CImageList m_ImageList;
COverallDataView * m_pOverallDataView;
int m_iColorScheme;
BOOL m_bDragging;
BOOL m_bFixedPointsFolderIsOpen;
HTREEITEM m_hDragItem;
CLegQuery * m_pLegQuery;
static int m_idxFolder;
static int m_idxSurvey;
static int m_idxPin;
static int m_idxSurfaceFolder;
static int m_idxSurfaceRoot;
static int m_idxPinRoot;
static void InitializeTreeImageList();
void RecursiveTreeViewFill(CFolder *folder,HTREEITEM hParent,CLegQuery * pLegQuery,HTREEITEM insertAfter=TVI_LAST);
void SetNewName(HTREEITEM hItem,LPCSTR szName);
void AddNewOne(CFolder * newone,BOOL bRecalculate,CFolder * pInsertAfter);
// Construction
public:
COnStationSurveyTree();
SURVEYTREESELECTED GetSelectedType();
CSurveyLeg * GetSelectedSurveyLeg();
CRealFolder * GetSelectedRealFolder();
CFixedPoint * GetSelectedFixedPoint();
CSurfaceData * GetSelectedSurface();
void InitialUpdate(COverallDataView * pDataView);
void SetQuery(CLegQuery * pLegQuery);
CLegQuery * GetLegQuery() {return m_pLegQuery;}
void SetColorScheme(int iColorScheme);
void UpdateItems();
void OnUpdateEditEdit(CCmdUI *);
void OnUpdateEditCopy(CCmdUI *);
void OnUpdateEditDelete(CCmdUI *);
void SetIncludeFixedPoints(BOOL bIncludeFixedPoints);
void OnDelete();
void OnEditSelectedItem();
void OnCopy();
void OnShowProperties();
void OnCut();
void OnPaste();
void OnNewfolder();
void OnNewsurvey();
void OnNewFixedPoint();
// Attributes
public:
BOOL IsDragging() const {return m_bDragging;}
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COnStationSurveyTree)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~COnStationSurveyTree();
void OnLButtonUp(UINT nFlags, CPoint point);
void OnMouseMove(UINT nFlags, CPoint point);
//Workaround for Bug number 10000 in this fucking piece of shit OS.
void FuckYouMicrosoftMorons();
// Generated message map functions
protected:
//{{AFX_MSG(COnStationSurveyTree)
afx_msg void OnBegindrag(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnEndlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnGetdispinfo(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDblclk(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnRclick(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnBeginlabeledit(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnSelChanged(NMHDR* pNMHDR, LRESULT* pResult);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
#endif