]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/classic/accel.h
miscellaneous wxFont enhancements (patch 1496606):
[wxWidgets.git] / include / wx / mac / classic / accel.h
CommitLineData
52479aef
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: accel.h
3// Purpose: wxAcceleratorTable class
4// Author: Stefan Csomor
5// Modified by:
6// Created: 1998-01-01
7// RCS-ID: $Id$
8// Copyright: (c) Stefan Csomor
65571936 9// Licence: wxWindows licence
52479aef
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_ACCEL_H_
13#define _WX_ACCEL_H_
14
52479aef
SC
15#include "wx/string.h"
16#include "wx/event.h"
17
18class WXDLLEXPORT wxAcceleratorTable: public wxObject
19{
20DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
21public:
22 wxAcceleratorTable();
23 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
24
52479aef
SC
25 ~wxAcceleratorTable();
26
fbfb8bcc 27 bool operator == (const wxAcceleratorTable& accel) const
52479aef 28 { return m_refData == accel.m_refData; }
fbfb8bcc 29 bool operator != (const wxAcceleratorTable& accel) const
52479aef
SC
30 { return m_refData != accel.m_refData; }
31
32 bool Ok() const;
33
34 int GetCommand( wxKeyEvent &event );
35};
36
37// WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
38
39#endif
40 // _WX_ACCEL_H_