]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/accel.h
Do not #include an header where a forward declaration suffixes. Do not
[wxWidgets.git] / include / wx / motif / accel.h
CommitLineData
9b6dbb09
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: accel.h
3// Purpose: wxAcceleratorTable class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
72cdf4c9 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_ACCEL_H_
13#define _WX_ACCEL_H_
14
15#ifdef __GNUG__
16#pragma interface "accel.h"
17#endif
18
19#include "wx/object.h"
20#include "wx/string.h"
8aa04e8b 21#include "wx/event.h"
9b6dbb09 22
9b6dbb09
JS
23class WXDLLEXPORT wxAcceleratorTable: public wxObject
24{
83df96d6 25 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
9b6dbb09
JS
26public:
27 wxAcceleratorTable();
28 wxAcceleratorTable(const wxString& resource); // Load from .rc resource
3c674514 29 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
83df96d6 30
9b6dbb09 31 // Copy constructors
72cdf4c9
VZ
32 wxAcceleratorTable(const wxAcceleratorTable& accel) { Ref(accel); }
33 wxAcceleratorTable(const wxAcceleratorTable* accel) { if (accel) Ref(*accel); }
83df96d6 34
9b6dbb09 35 ~wxAcceleratorTable();
83df96d6 36
72cdf4c9
VZ
37 wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) { if (*this == accel) return (*this); Ref(accel); return *this; }
38 bool operator == (const wxAcceleratorTable& accel) { return m_refData == accel.m_refData; }
39 bool operator != (const wxAcceleratorTable& accel) { return m_refData != accel.m_refData; }
83df96d6 40
9b6dbb09 41 bool Ok() const;
83df96d6
JS
42
43 // Implementation only
8aa04e8b
JS
44 int GetCount() const;
45 wxAcceleratorEntry* GetEntries() const;
9b6dbb09
JS
46};
47
48WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
49
50#endif
83df96d6 51// _WX_ACCEL_H_