Linux multi-monitor fullscreen support
[ryzomcore.git] / nel / tools / 3d / object_viewer / sound_anim_dlg.h
blob4e056c56355dd5c06f52eb341eeacb5522fecc80
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_SOUND_ANIM_DLG_H__0D6C3D3A_BCBB_4EEA_8E35_27EAD9500A1C__INCLUDED_)
18 #define AFX_SOUND_ANIM_DLG_H__0D6C3D3A_BCBB_4EEA_8E35_27EAD9500A1C__INCLUDED_
20 #if _MSC_VER > 1000
21 #pragma once
22 #endif
24 #include "sound_anim_view.h"
25 #include "resource.h"
27 class CObjectViewer;
28 class CAnimationDlg;
30 namespace NLSOUND
32 class CSoundAnimation;
33 class CSoundAnimMarker;
36 class CSoundAnimDlg : public CDialog
38 // Construction
39 public:
40 CSoundAnimDlg(CObjectViewer* objView, CAnimationDlg* animDlg, CWnd* pParent = NULL);
42 void setAnimTime(float animStart, float animEnd);
43 void handle();
44 void refresh(BOOL update) { _AnimView.refresh(update); }
45 void updateScroll(uint pos, uint min, uint max);
46 void selectMarker(NLSOUND::CSoundAnimMarker* marker);
48 protected:
50 void updateSounds();
52 CObjectViewer *_ObjView;
53 CAnimationDlg *_AnimationDlg;
54 CSoundAnimView _AnimView;
55 NLSOUND::CSoundAnimMarker *_SelectedMarker;
57 public:
59 // VC++ wizardry
61 // Dialog Data
62 //{{AFX_DATA(CSoundAnimDlg)
63 enum { IDD = IDD_SOUND_ANIM_DLG };
64 //}}AFX_DATA
67 // Overrides
68 //{{AFX_VIRTUAL(CSoundAnimDlg)
69 protected:
70 virtual void DoDataExchange(CDataExchange* pDX);
71 //}}AFX_VIRTUAL
73 // Implementation
74 protected:
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);
88 //}}AFX_MSG
89 DECLARE_MESSAGE_MAP()
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_)