diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2006-06-25 01:37:43 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2006-06-25 01:37:43 +0400 |
commit | 0868305e78da2b0742c2ce349efa041d5622ae21 (patch) | |
tree | 663fd93132c7927910ba7c13188d6332b2e3e5b2 /src/apps/mplayerc/ShaderEditorDlg.h | |
parent | 43c8656956a0460fc4551e3ea7a39b9f3094a3e3 (diff) |
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@14 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/apps/mplayerc/ShaderEditorDlg.h')
-rw-r--r-- | src/apps/mplayerc/ShaderEditorDlg.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/src/apps/mplayerc/ShaderEditorDlg.h b/src/apps/mplayerc/ShaderEditorDlg.h new file mode 100644 index 000000000..7950819ce --- /dev/null +++ b/src/apps/mplayerc/ShaderEditorDlg.h @@ -0,0 +1,81 @@ +#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 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);
+
+ DECLARE_MESSAGE_MAP()
+
+public:
+ afx_msg void OnCbnSelchangeCombo1();
+ afx_msg void OnBnClickedButton2();
+ afx_msg void OnTimer(UINT 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);
+};
|