]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/accel.h
corrected includes for Mac OS X
[wxWidgets.git] / include / wx / mac / accel.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: accel.h
3// Purpose: wxAcceleratorTable class
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_ACCEL_H_
13#define _WX_ACCEL_H_
14
15#ifdef __GNUG__
16#pragma interface "accel.h"
17#endif
18
0dbd6262 19#include "wx/string.h"
ba7499ef 20#include "wx/event.h"
0dbd6262 21
0dbd6262
SC
22class WXDLLEXPORT wxAcceleratorTable: public wxObject
23{
24DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
25public:
26 wxAcceleratorTable();
0dbd6262
SC
27 wxAcceleratorTable(int n, wxAcceleratorEntry entries[]); // Load from array
28
29 // Copy constructors
30 inline wxAcceleratorTable(const wxAcceleratorTable& accel) { Ref(accel); }
31 inline wxAcceleratorTable(const wxAcceleratorTable* accel) { if (accel) Ref(*accel); }
32
33 ~wxAcceleratorTable();
34
35 inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) { if (*this == accel) return (*this); Ref(accel); return *this; }
36 inline bool operator == (const wxAcceleratorTable& accel) { return m_refData == accel.m_refData; }
37 inline bool operator != (const wxAcceleratorTable& accel) { return m_refData != accel.m_refData; }
38
39 bool Ok() const;
ffc93a32
SC
40
41 int GetCommand( wxKeyEvent &event );
0dbd6262
SC
42};
43
44WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
45
46#endif
47 // _WX_ACCEL_H_