-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathEffEditWnd.h
131 lines (106 loc) · 3.94 KB
/
EffEditWnd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*****************************************************************************/
/* EffEditWnd.h : header file */
/*****************************************************************************/
/******************************************************************************
Copyright (C) 2006 Hermann Seib
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
******************************************************************************/
#if !defined(AFX_EFFEDITWND_H__45274173_9C71_11D5_8162_4000001054B2__INCLUDED_)
#define AFX_EFFEDITWND_H__45274173_9C71_11D5_8162_4000001054B2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "EffectWnd.h"
/*****************************************************************************/
/* CEffEditDlg dialog */
/*****************************************************************************/
class CChildFrame;
class CEffEditWnd;
class CEffEditDlg : public CDialog
{
friend class CEffEditWnd;
// Construction
public:
bool OnSetParameterAutomated(long index, float value);
CEffEditDlg(CWnd* pParent = NULL); // standard constructor
virtual BOOL Create(CWnd *pParentWnd=NULL);
// Dialog Data
//{{AFX_DATA(CEffEditDlg)
enum { IDD = IDD_PARMS };
CSliderCtrl slParmval;
CStatic stParmtext;
CListBox lbParms;
//}}AFX_DATA
void SetMain(CChildFrame *pFrm) { pMain = pFrm; }
void SetEffect(int nEffect);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEffEditDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
void SetParmDisp(CEffect *pEffect, int nParm);
CChildFrame * pMain;
int nEffect;
// Generated message map functions
//{{AFX_MSG(CEffEditDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeParmlist();
afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/*****************************************************************************/
/* CEffEditWnd window */
/*****************************************************************************/
class CChildFrame;
class CEffEditWnd : public CEffectWnd
{
DECLARE_DYNCREATE(CEffEditWnd)
// Construction
public:
CEffEditWnd();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEffEditWnd)
public:
//}}AFX_VIRTUAL
// Implementation
public:
virtual void Update();
virtual bool OnSetParameterAutomated(long index, float value);
virtual void SetEffect(int nEff);
virtual ~CEffEditWnd();
// Generated message map functions
protected:
//{{AFX_MSG(CEffEditWnd)
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
virtual CWnd * CreateView();
virtual HICON RetrieveIcon() { return AfxGetApp()->LoadIcon(IDI_EFFPARM); }
virtual LPCSTR GetEditType() { return "P"; }
virtual BOOL NeedView() { return TRUE; }
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EFFEDITWND_H__45274173_9C71_11D5_8162_4000001054B2__INCLUDED_)