Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / logic / logic_editor_dll / ConditionsView.h
blob7bf38a78ac7f8205d45660b22b7b178dbfafe230
1 #if !defined(AFX_CONDITIONSVIEW_H__92023B7C_0AE1_4A06_B272_6CF88976DA52__INCLUDED_)
2 #define AFX_CONDITIONSVIEW_H__92023B7C_0AE1_4A06_B272_6CF88976DA52__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // ConditionsView.h : header file
8 //
10 #include <afxtempl.h> // CMap
11 #include <afxcview.h> // CTreeView base class
13 #include "Condition.h"
15 typedef CArray<HTREEITEM,HTREEITEM&> HTreeItemArray;
16 typedef CList<POSITION,POSITION&> TPositionList;
17 typedef CMap<HTREEITEM,HTREEITEM&,CConditionNode *, CConditionNode *&> CMapHTreeItemToPtr;
21 /////////////////////////////////////////////////////////////////////////////
22 // CConditionsView view
24 class CConditionsView : public CTreeView
26 protected:
27 CConditionsView(); // protected constructor used by dynamic creation
28 DECLARE_DYNCREATE(CConditionsView)
30 // Attributes
31 protected:
32 // map HTREEITEM to the adress of the associated CConditionNode object
33 CMapHTreeItemToPtr m_mapItemToNode;
35 CCondition * m_pSelectedCondition;
36 CCondition * m_pDragCondition;
37 CConditionNode * m_pSelectedNode;
39 CImageList* m_pDragImage;
40 HTREEITEM m_hitemDrag,m_hitemDrop;
42 BOOL m_bRDragging;
43 BOOL m_bRDragCanceled;
45 // Operations
46 public:
48 // expand/collapse the tree ctrl
49 void expand(UINT = TVE_EXPAND, HTREEITEM = NULL);
51 CImageList* CreateDragImageEx(HTREEITEM hItem);
53 HMENU GetRDragMenu();
56 // Overrides
57 // ClassWizard generated virtual function overrides
58 //{{AFX_VIRTUAL(CConditionsView)
59 public:
60 virtual void OnInitialUpdate();
61 protected:
62 virtual void OnDraw(CDC* pDC); // overridden to draw this view
63 virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
64 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
65 //}}AFX_VIRTUAL
66 afx_msg void OnMoveAsChild();
67 afx_msg void OnMoveAsSibling();
68 afx_msg void OnCopyAsChild();
69 afx_msg void OnCopyAsSibling();
71 // Implementation
72 protected:
73 virtual ~CConditionsView();
74 #ifdef _DEBUG
75 virtual void AssertValid() const;
76 virtual void Dump(CDumpContext& dc) const;
77 #endif
79 // Generated message map functions
80 protected:
81 //{{AFX_MSG(CConditionsView)
82 afx_msg void OnSelchanged(NMHDR* pNMHDR, LRESULT* pResult);
83 afx_msg void OnKillFocus(CWnd* pNewWnd);
84 afx_msg void OnBeginrdrag(NMHDR* pNMHDR, LRESULT* pResult);
85 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
86 afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
87 //}}AFX_MSG
88 DECLARE_MESSAGE_MAP()
91 /////////////////////////////////////////////////////////////////////////////
93 //{{AFX_INSERT_LOCATION}}
94 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
96 #endif // !defined(AFX_CONDITIONSVIEW_H__92023B7C_0AE1_4A06_B272_6CF88976DA52__INCLUDED_)