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