Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / choose_frame_delay.h
blob2ef9c96212118d707d284ecca7f487f3f0a89589
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_CHOOSE_FRAME_DELAY_H__F07A2A7E_FB96_4856_99B5_46DE3B05CD6D__INCLUDED_)
18 #define AFX_CHOOSE_FRAME_DELAY_H__F07A2A7E_FB96_4856_99B5_46DE3B05CD6D__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif // _MSC_VER > 1000
23 // choose_frame_delay.h : header file
27 #include "editable_range.h"
28 #include "object_viewer.h"
29 #include "particle_workspace.h"
33 /////////////////////////////////////////////////////////////////////////////
34 // CChooseLag dialog
36 class CChooseFrameDelay : public CDialog, public CObjectViewer::IMainLoopCallBack
38 // Construction
39 public:
40 CChooseFrameDelay(CObjectViewer *objectViewer, CWnd* pParent); // standard constructor
41 ~CChooseFrameDelay();
44 // Lock frame delay to current particle system
45 void lockToPS(bool lock);
46 bool isLockedToPS() const { return _LockToPS; }
49 // Dialog Data
50 //{{AFX_DATA(CChooseLag)
51 enum { IDD = IDD_CHOOSE_FRAME_DELAY };
52 //}}A FX_DATA
55 // Overrides
56 // ClassWizard generated virtual function overrides
57 //{{AFX_VIRTUAL(CChooseLag)
58 protected:
59 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
60 //}}AFX_VIRTUAL
62 // Implementation
63 protected:
64 bool _LockToPS;
65 CEditableRangeUInt *_ER;
66 // Generated message map functions
67 //{{AFX_MSG(CChooseFrameDelay)
68 virtual BOOL OnInitDialog();
69 afx_msg void OnDestroy();
70 //}}AFX_MSG
71 DECLARE_MESSAGE_MAP()
72 void updateValueFromText();
73 void updateTextFromValue(uint value);
74 struct CCFDWrapper : public IPSWrapperUInt
76 CObjectViewer *OV;
77 uint32 get(void) const;
78 virtual void set(const uint32 &value);
79 } _CFDWrapper;
80 // From CObjectViewer::IMainLoopCallBack
81 virtual void goPreRender();
82 virtual void goPostRender() {}
85 //{{AFX_INSERT_LOCATION}}
86 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
88 #endif // !defined(AFX_CHOOSE_FRAME_DELAY_H__F07A2A7E_FB96_4856_99B5_46DE3B05CD6D__INCLUDED_)