/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/generic/accel.h
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/generic/accel.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 10 months ago) by william
File MIME type: text/plain
File size: 1511 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/accel.h
3 // Purpose: wxAcceleratorTable class
4 // Author: Robert Roebling
5 // RCS-ID: $Id: accel.h 42752 2006-10-30 19:26:48Z VZ $
6 // Copyright: (c) Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GENERIC_ACCEL_H_
11 #define _WX_GENERIC_ACCEL_H_
12
13 class WXDLLEXPORT wxKeyEvent;
14
15 // ----------------------------------------------------------------------------
16 // wxAcceleratorTable
17 // ----------------------------------------------------------------------------
18
19 class WXDLLEXPORT wxAcceleratorTable : public wxObject
20 {
21 public:
22 wxAcceleratorTable();
23 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]);
24 virtual ~wxAcceleratorTable();
25
26 bool Ok() const { return IsOk(); }
27 bool IsOk() const;
28
29 void Add(const wxAcceleratorEntry& entry);
30 void Remove(const wxAcceleratorEntry& entry);
31
32 // implementation
33 // --------------
34
35 wxMenuItem *GetMenuItem(const wxKeyEvent& event) const;
36 int GetCommand(const wxKeyEvent& event) const;
37
38 const wxAcceleratorEntry *GetEntry(const wxKeyEvent& event) const;
39
40 protected:
41 // ref counting code
42 virtual wxObjectRefData *CreateRefData() const;
43 virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
44
45 private:
46 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
47 };
48
49 #endif // _WX_GENERIC_ACCEL_H_
50

  ViewVC Help
Powered by ViewVC 1.1.22