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_CHOOSE_FRAME_DELAY_H__F07A2A7E_FB96_4856_99B5_46DE3B05CD6D__INCLUDED_)
18 #define AFX_CHOOSE_FRAME_DELAY_H__F07A2A7E_FB96_4856_99B5_46DE3B05CD6D__INCLUDED_
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 /////////////////////////////////////////////////////////////////////////////
36 class CChooseFrameDelay
: public CDialog
, public CObjectViewer::IMainLoopCallBack
40 CChooseFrameDelay(CObjectViewer
*objectViewer
, CWnd
* pParent
); // standard constructor
44 // Lock frame delay to current particle system
45 void lockToPS(bool lock
);
46 bool isLockedToPS() const { return _LockToPS
; }
50 //{{AFX_DATA(CChooseLag)
51 enum { IDD
= IDD_CHOOSE_FRAME_DELAY
};
56 // ClassWizard generated virtual function overrides
57 //{{AFX_VIRTUAL(CChooseLag)
59 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
65 CEditableRangeUInt
*_ER
;
66 // Generated message map functions
67 //{{AFX_MSG(CChooseFrameDelay)
68 virtual BOOL
OnInitDialog();
69 afx_msg
void OnDestroy();
72 void updateValueFromText();
73 void updateTextFromValue(uint value
);
74 struct CCFDWrapper
: public IPSWrapperUInt
77 uint32
get(void) const;
78 virtual void set(const uint32
&value
);
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_)