X64 transport [Part 5] (Update plugins.cpp)
[xy_vsfilter.git] / src / apps / mplayerc / PPageAccelTbl.h
blob9322dc375cdec4dc3df1e97b8f4ecb2ff00a1c4f
1 /*
2 * Copyright (C) 2003-2006 Gabest
3 * http://www.gabest.org
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
8 * any later version.
9 *
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GNU Make; see the file COPYING. If not, write to
17 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18 * http://www.gnu.org/copyleft/gpl.html
22 #pragma once
24 #include "PPageBase.h"
25 #include "PlayerListCtrl.h"
26 #include "StaticLink.h"
28 // CPPageAccelTbl dialog
30 class CPPageAccelTbl : public CPPageBase
32 DECLARE_DYNAMIC(CPPageAccelTbl)
34 private:
35 enum {COL_CMD, COL_MOD, COL_KEY, COL_TYPE, COL_ID, COL_MOUSE, COL_APPCMD, COL_RMCMD, COL_RMREPCNT};
36 CList<wmcmd> m_wmcmds;
38 void SetupList();
40 int m_counter;
42 public:
43 CPPageAccelTbl();
44 virtual ~CPPageAccelTbl();
46 static CString MakeAccelModLabel(BYTE fVirt);
47 static CString MakeAccelVkeyLabel(WORD key, bool fVirtKey);
48 static CString MakeAccelShortcutLabel(UINT id);
49 static CString MakeAccelShortcutLabel(ACCEL& a);
50 static CString MakeMouseButtonLabel(UINT mouse);
51 static CString MakeAppCommandLabel(UINT id);
53 enum {APPCOMMAND_LAST=APPCOMMAND_MEDIA_CHANNEL_DOWN};
55 // Dialog Data
56 enum { IDD = IDD_PPAGEACCELTBL };
57 CPlayerListCtrl m_list;
58 BOOL m_fWinLirc;
59 CString m_WinLircAddr;
60 CEdit m_WinLircEdit;
61 CStaticLink m_WinLircLink;
62 BOOL m_fUIce;
63 CString m_UIceAddr;
64 CEdit m_UIceEdit;
65 CStaticLink m_UIceLink;
67 protected:
68 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
69 virtual BOOL OnInitDialog();
70 virtual BOOL OnApply();
71 virtual BOOL PreTranslateMessage(MSG* pMsg);
72 virtual BOOL OnSetActive();
73 virtual BOOL OnKillActive();
75 DECLARE_MESSAGE_MAP()
77 public:
78 afx_msg void OnBeginlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
79 afx_msg void OnDolabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
80 afx_msg void OnEndlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
81 afx_msg void OnBnClickedButton1();
82 afx_msg void OnBnClickedButton2();
83 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
84 afx_msg void OnTimer(UINT nIDEvent);