1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #if !defined(AFX_DIRECTION_EDIT_H__D494432C_2D31_4725_BEE7_E042C1F7845F__INCLUDED_)
18 #define AFX_DIRECTION_EDIT_H__D494432C_2D31_4725_BEE7_E042C1F7845F__INCLUDED_
23 #include "ps_wrapper.h"
30 class CDirectionAttr
;
33 /////////////////////////////////////////////////////////////////////////////
34 // CDirectionEdit dialog
37 class CDirectionEdit
: public CDialog
42 CDirectionEdit(IPSWrapper
<NLMISC::CVector
> *wrapper
) ; // standard constructor
44 void init(IPopupNotify
*p
, CWnd
*parent
) ;
47 //{{AFX_DATA(CDirectionEdit)
48 enum { IDD
= IDD_DIRECTION_EDIT
};
49 // NOTE: the ClassWizard will add data members here
54 // ClassWizard generated virtual function overrides
55 //{{AFX_VIRTUAL(CDirectionEdit)
57 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
64 enum State
{ Wait
, Drag
} _MouseState
;
66 IPopupNotify
*_Parent
;
68 // select a new vect from a point (must be in the basis)
69 void selectNewVect(const CPoint
&pos
) ;
72 IPSWrapper
<NLMISC::CVector
> *_Wrapper
;
73 // Generated message map functions
74 //{{AFX_MSG(CDirectionEdit)
75 afx_msg
void OnPaint();
76 afx_msg
void OnLButtonDown(UINT nFlags
, CPoint point
);
77 afx_msg
void OnMouseMove(UINT nFlags
, CPoint point
);
78 afx_msg
void OnLButtonUp(UINT nFlags
, CPoint point
);
79 afx_msg
void OnClose();
84 //{{AFX_INSERT_LOCATION}}
85 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
87 #endif // !defined(AFX_DIRECTION_EDIT_H__D494432C_2D31_4725_BEE7_E042C1F7845F__INCLUDED_)