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_ANIMATION_DLG_H__A9ECE123_1C51_11D5_9CD4_0050DAC3A412__INCLUDED_)
18 #define AFX_ANIMATION_DLG_H__A9ECE123_1C51_11D5_9CD4_0050DAC3A412__INCLUDED_
22 #endif // _MSC_VER > 1000
23 // animation_dlg.h : header file
26 #include "nel/misc/types_nl.h"
27 #include "nel/3d/animation_time.h"
29 /////////////////////////////////////////////////////////////////////////////
30 // CAnimationDlg dialog
32 class CAnimationDlg
: public CDialog
36 CAnimationDlg(class CObjectViewer
* main
, CWnd
* pParent
= NULL
); // standard constructor
38 BOOL
EnableWindow(BOOL enable
= TRUE
);
40 //{{AFX_DATA(CAnimationDlg)
41 enum { IDD
= IDD_ANIMATION
};
44 CSliderCtrl TimeLineCtrl
;
62 void setCurrentFrame (float currentFrame
);
64 void setAnimTime (float animStart
, float animEnd
);
66 NL3D::TAnimationTime
getTime ();
67 NL3D::TAnimationTime
getLastTime ();
68 float getSpeed() { return Speed
; }
71 // ClassWizard generated virtual function overrides
72 //{{AFX_VIRTUAL(CAnimationDlg)
74 virtual void DoDataExchange(CDataExchange
* pDX
); // DDX/DDV support
82 // Generated message map functions
83 //{{AFX_MSG(CAnimationDlg)
85 afx_msg
void OnPlay();
86 afx_msg
void OnStop();
87 afx_msg
void OnChangeCurrentFrame();
88 afx_msg
void OnChangeEndEdit();
89 afx_msg
void OnChangeSpeed();
90 afx_msg
void OnStart();
91 afx_msg
void OnChangeStartEdit();
92 afx_msg
void OnHScroll(UINT nSBCode
, UINT nPos
, CScrollBar
* pScrollBar
);
93 virtual BOOL
OnInitDialog();
94 afx_msg
void OnDestroy();
99 //{{AFX_INSERT_LOCATION}}
100 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
102 #endif // !defined(AFX_ANIMATION_DLG_H__A9ECE123_1C51_11D5_9CD4_0050DAC3A412__INCLUDED_)