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_SOUND_ANIM_DLG_H__0D6C3D3A_BCBB_4EEA_8E35_27EAD9500A1C__INCLUDED_)
18 #define AFX_SOUND_ANIM_DLG_H__0D6C3D3A_BCBB_4EEA_8E35_27EAD9500A1C__INCLUDED_
24 #include "sound_anim_view.h"
32 class CSoundAnimation
;
33 class CSoundAnimMarker
;
36 class CSoundAnimDlg
: public CDialog
40 CSoundAnimDlg(CObjectViewer
* objView
, CAnimationDlg
* animDlg
, CWnd
* pParent
= NULL
);
42 void setAnimTime(float animStart
, float animEnd
);
44 void refresh(BOOL update
) { _AnimView
.refresh(update
); }
45 void updateScroll(uint pos
, uint min
, uint max
);
46 void selectMarker(NLSOUND::CSoundAnimMarker
* marker
);
52 CObjectViewer
*_ObjView
;
53 CAnimationDlg
*_AnimationDlg
;
54 CSoundAnimView _AnimView
;
55 NLSOUND::CSoundAnimMarker
*_SelectedMarker
;
62 //{{AFX_DATA(CSoundAnimDlg)
63 enum { IDD
= IDD_SOUND_ANIM_DLG
};
68 //{{AFX_VIRTUAL(CSoundAnimDlg)
70 virtual void DoDataExchange(CDataExchange
* pDX
);
76 // Generated message map functions
77 //{{AFX_MSG(CSoundAnimDlg)
78 afx_msg
void OnAddSound();
79 afx_msg
void OnRemoveSound();
80 afx_msg
void OnSave();
81 afx_msg
void OnZoomIn();
82 afx_msg
void OnZoomOut();
83 afx_msg
void OnMark();
84 afx_msg
void OnDelete();
85 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct
);
86 virtual BOOL
OnInitDialog();
87 afx_msg
void OnHScroll(UINT nSBCode
, UINT nPos
, CScrollBar
* pScrollBar
);
92 //{{AFX_INSERT_LOCATION}}
93 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
95 #endif // !defined(AFX_SOUND_ANIM_DLG_H__0D6C3D3A_BCBB_4EEA_8E35_27EAD9500A1C__INCLUDED_)