Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / direction_edit.h
blob0cb9072e0605fa2617227f75b56c4a62d11232f3
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
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.
8 //
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_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif
23 #include "ps_wrapper.h"
24 namespace NLMISC
26 class CVector ;
30 class CDirectionAttr ;
31 struct IPopupNotify;
33 /////////////////////////////////////////////////////////////////////////////
34 // CDirectionEdit dialog
37 class CDirectionEdit : public CDialog
39 // Construction
40 public:
42 CDirectionEdit(IPSWrapper<NLMISC::CVector> *wrapper) ; // standard constructor
44 void init(IPopupNotify *p, CWnd *parent) ;
46 // Dialog Data
47 //{{AFX_DATA(CDirectionEdit)
48 enum { IDD = IDD_DIRECTION_EDIT };
49 // NOTE: the ClassWizard will add data members here
50 //}}AFX_DATA
53 // Overrides
54 // ClassWizard generated virtual function overrides
55 //{{AFX_VIRTUAL(CDirectionEdit)
56 protected:
57 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
58 //}}AFX_VIRTUAL
60 // Implementation
61 protected:
63 // the mouse state
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();
80 //}}AFX_MSG
81 DECLARE_MESSAGE_MAP()
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_)