]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/accel.h
warnings (and some errors) fixes for wxUniv DLL build
[wxWidgets.git] / include / wx / mac / accel.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: accel.h
3// Purpose: wxAcceleratorTable class
a31a5f85 4// Author: Stefan Csomor
0dbd6262 5// Modified by:
a31a5f85 6// Created: 1998-01-01
0dbd6262 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
d921af51 9// Licence: wxWindows licence
0dbd6262
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_ACCEL_H_
13#define _WX_ACCEL_H_
14
af49c4b8 15#if defined(__GNUG__) && !defined(__APPLE__)
0dbd6262
SC
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();
3c674514 27 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
0dbd6262
SC
28
29 // Copy constructors
d84afea9
GD
30 wxAcceleratorTable(const wxAcceleratorTable& accel)
31 : wxObject()
32 { Ref(accel); }
33 wxAcceleratorTable(const wxAcceleratorTable* accel)
34 { if (accel) Ref(*accel); }
0dbd6262
SC
35
36 ~wxAcceleratorTable();
37
d84afea9
GD
38 wxAcceleratorTable& operator = (const wxAcceleratorTable& accel)
39 { if (*this == accel) return (*this); Ref(accel); return *this; }
40 bool operator == (const wxAcceleratorTable& accel)
41 { return m_refData == accel.m_refData; }
42 bool operator != (const wxAcceleratorTable& accel)
43 { return m_refData != accel.m_refData; }
0dbd6262
SC
44
45 bool Ok() const;
ffc93a32
SC
46
47 int GetCommand( wxKeyEvent &event );
0dbd6262
SC
48};
49
17e50402 50// WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
0dbd6262
SC
51
52#endif
53 // _WX_ACCEL_H_