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