]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/os2/accel.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / os2 / accel.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/os2/accel.h
3// Purpose: wxAcceleratorTable class
4// Author: David Webster
5// Modified by:
6// Created: 10/13/99
7// Copyright: (c) David Webster
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_ACCEL_H_
12#define _WX_ACCEL_H_
13
14#include "wx/object.h"
15
16class WXDLLIMPEXP_FWD_CORE wxAcceleratorTable;
17
18// Hold Ctrl key down
19#define wxACCEL_ALT 0x01
20
21// Hold Ctrl key down
22#define wxACCEL_CTRL 0x02
23
24 // Hold Shift key down
25#define wxACCEL_SHIFT 0x04
26
27 // Hold no key down
28#define wxACCEL_NORMAL 0x00
29
30class WXDLLIMPEXP_CORE wxAcceleratorTable: public wxObject
31{
32DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
33public:
34 wxAcceleratorTable();
35 wxAcceleratorTable(const wxString& rsResource); // Load from .rc resource
36 wxAcceleratorTable( int n
37 ,const wxAcceleratorEntry vaEntries[]
38 ); // Load from array
39
40 virtual ~wxAcceleratorTable();
41
42 bool Ok() const { return IsOk(); }
43 bool IsOk() const;
44 void SetHACCEL(WXHACCEL hAccel);
45 WXHACCEL GetHACCEL(void) const;
46
47 // translate the accelerator, return TRUE if done
48 bool Translate( WXHWND hWnd
49 ,WXMSG* pMsg
50 ) const;
51};
52
53WXDLLIMPEXP_DATA_CORE(extern wxAcceleratorTable) wxNullAcceleratorTable;
54
55WXDLLIMPEXP_CORE wxString wxPMTextToLabel(const wxString& rsTitle);
56#endif
57 // _WX_ACCEL_H_