blob: db2d5226cdfa00218f8b9549191d7abd9515b91d (
plain)
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
|
/*
* $Id$
*
* (C) 2003-2006 Gabest
* (C) 2006-2010 see AUTHORS
*
* This file is part of mplayerc.
*
* Mplayerc is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Mplayerc 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#pragma once
#include "../../subpic/ISubPic.h"
#include "LineNumberEdit.h"
#include "ShaderAutoCompleteDlg.h"
#include "mplayerc.h"
// Q174667
class CShaderLabelComboBox : public CComboBox
{
public:
CEdit m_edit;
DECLARE_MESSAGE_MAP()
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnDestroy();
};
class CShaderEdit : public CLineNumberEdit
{
int m_nEndChar;
UINT m_nIDEvent;
public:
CShaderEdit();
~CShaderEdit();
CShaderAutoCompleteDlg m_acdlg;
DECLARE_MESSAGE_MAP()
afx_msg void OnUpdate();
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnTimer(UINT_PTR nIDEvent);
virtual BOOL PreTranslateMessage(MSG* pMsg);
};
// CShaderEditorDlg dialog
class CPixelShaderCompiler;
class CShaderEditorDlg : public CResizableDialog
{
private:
UINT m_nIDEventShader;
bool m_fSplitterGrabbed;
bool HitTestSplitter(CPoint p);
CPixelShaderCompiler* m_pPSC;
AppSettings::Shader* m_pShader;
public:
CShaderEditorDlg(); // standard constructor
virtual ~CShaderEditorDlg();
BOOL Create(CWnd* pParent = NULL);
// Dialog Data
enum { IDD = IDD_SHADEREDITOR_DLG };
CShaderLabelComboBox m_labels;
CComboBox m_targets;
CShaderEdit m_srcdata;
CEdit m_output;
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual void OnOK() {}
virtual void OnCancel() {}
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnCbnSelchangeCombo1();
afx_msg void OnBnClickedButton2();
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnKillFocus(CWnd* pNewWnd);
};
|