1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/object.h"
16 class WXDLLIMPEXP_FWD_CORE wxAcceleratorTable
;
19 #define wxACCEL_ALT 0x01
22 #define wxACCEL_CTRL 0x02
24 // Hold Shift key down
25 #define wxACCEL_SHIFT 0x04
28 #define wxACCEL_NORMAL 0x00
30 class WXDLLIMPEXP_CORE wxAcceleratorTable
: public wxObject
32 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable
)
35 wxAcceleratorTable(const wxString
& rsResource
); // Load from .rc resource
36 wxAcceleratorTable( int n
37 ,const wxAcceleratorEntry vaEntries
[]
40 virtual ~wxAcceleratorTable();
42 bool Ok() const { return IsOk(); }
44 void SetHACCEL(WXHACCEL hAccel
);
45 WXHACCEL
GetHACCEL(void) const;
47 // translate the accelerator, return TRUE if done
48 bool Translate( WXHWND hWnd
53 WXDLLIMPEXP_DATA_CORE(extern wxAcceleratorTable
) wxNullAcceleratorTable
;
55 WXDLLIMPEXP_CORE wxString
wxPMTextToLabel(const wxString
& rsTitle
);