]>
Commit | Line | Data |
---|---|---|
9b6dbb09 | 1 | ///////////////////////////////////////////////////////////////////////////// |
925f7740 | 2 | // Name: wx/motif/accel.h |
9b6dbb09 JS |
3 | // Purpose: wxAcceleratorTable class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
9b6dbb09 | 7 | // Copyright: (c) Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
9b6dbb09 JS |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_ACCEL_H_ | |
12 | #define _WX_ACCEL_H_ | |
13 | ||
9b6dbb09 JS |
14 | #include "wx/object.h" |
15 | #include "wx/string.h" | |
8aa04e8b | 16 | #include "wx/event.h" |
9b6dbb09 | 17 | |
53a2db12 | 18 | class WXDLLIMPEXP_CORE wxAcceleratorTable: public wxObject |
9b6dbb09 | 19 | { |
83df96d6 | 20 | DECLARE_DYNAMIC_CLASS(wxAcceleratorTable) |
9b6dbb09 JS |
21 | public: |
22 | wxAcceleratorTable(); | |
23 | wxAcceleratorTable(const wxString& resource); // Load from .rc resource | |
3c674514 | 24 | wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array |
f8855e47 | 25 | |
d3c7fc99 | 26 | virtual ~wxAcceleratorTable(); |
f8855e47 | 27 | |
b7cacb43 VZ |
28 | bool Ok() const { return IsOk(); } |
29 | bool IsOk() const; | |
925f7740 | 30 | |
83df96d6 | 31 | // Implementation only |
8aa04e8b JS |
32 | int GetCount() const; |
33 | wxAcceleratorEntry* GetEntries() const; | |
9b6dbb09 JS |
34 | }; |
35 | ||
b8b9e48c | 36 | extern WXDLLIMPEXP_DATA_CORE(wxAcceleratorTable) wxNullAcceleratorTable; |
9b6dbb09 JS |
37 | |
38 | #endif | |
83df96d6 | 39 | // _WX_ACCEL_H_ |