Added aqua_speed for rite geo 50 tryker
[ryzomcore.git] / nel / tools / 3d / object_viewer / animation_dlg.h
blobaf29adf2eed21f9f12d7118bc0de828998ba4136
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_ANIMATION_DLG_H__A9ECE123_1C51_11D5_9CD4_0050DAC3A412__INCLUDED_)
18 #define AFX_ANIMATION_DLG_H__A9ECE123_1C51_11D5_9CD4_0050DAC3A412__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
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
34 // Construction
35 public:
36 CAnimationDlg(class CObjectViewer * main, CWnd* pParent = NULL); // standard constructor
38 BOOL EnableWindow(BOOL enable = TRUE);
39 // Dialog Data
40 //{{AFX_DATA(CAnimationDlg)
41 enum { IDD = IDD_ANIMATION };
42 CButton FRWCtrl;
43 CButton FFWCtrl;
44 CSliderCtrl TimeLineCtrl;
45 CButton PlayCtrl;
46 CButton StopCtrl;
47 float End;
48 float Speed;
49 float Start;
50 BOOL Loop;
51 int UICurrentFrame;
52 BOOL Inplace;
53 BOOL IncPos;
54 //}}AFX_DATA
56 bool Playing;
57 uint64 LastTime;
58 CObjectViewer* Main;
59 float CurrentFrame;
60 float LastFrame;
62 void setCurrentFrame (float currentFrame);
63 void handle ();
64 void setAnimTime (float animStart, float animEnd);
65 void updateBar ();
66 NL3D::TAnimationTime getTime ();
67 NL3D::TAnimationTime getLastTime ();
68 float getSpeed() { return Speed; }
70 // Overrides
71 // ClassWizard generated virtual function overrides
72 //{{AFX_VIRTUAL(CAnimationDlg)
73 protected:
74 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
75 //}}AFX_VIRTUAL
79 // Implementation
80 protected:
82 // Generated message map functions
83 //{{AFX_MSG(CAnimationDlg)
84 afx_msg void OnEnd();
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();
95 //}}AFX_MSG
96 DECLARE_MESSAGE_MAP()
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_)