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)
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
24 #include "PPageBase.h"
25 #include "PlayerListCtrl.h"
26 #include "StaticLink.h"
28 // CPPageAccelTbl dialog
30 class CPPageAccelTbl
: public CPPageBase
32 DECLARE_DYNAMIC(CPPageAccelTbl
)
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
;
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
};
56 enum { IDD
= IDD_PPAGEACCELTBL
};
57 CPlayerListCtrl m_list
;
59 CString m_WinLircAddr
;
61 CStaticLink m_WinLircLink
;
65 CStaticLink m_UIceLink
;
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();
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
);