]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/accel.h
Applied patch which allows you to detach a stream
[wxWidgets.git] / include / wx / motif / accel.h
CommitLineData
9b6dbb09 1/////////////////////////////////////////////////////////////////////////////
925f7740 2// Name: wx/motif/accel.h
9b6dbb09
JS
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
65571936 9// Licence: wxWindows licence
9b6dbb09
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_ACCEL_H_
13#define _WX_ACCEL_H_
14
9b6dbb09
JS
15#include "wx/object.h"
16#include "wx/string.h"
8aa04e8b 17#include "wx/event.h"
9b6dbb09 18
9b6dbb09
JS
19class WXDLLEXPORT wxAcceleratorTable: public wxObject
20{
83df96d6 21 DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
9b6dbb09
JS
22public:
23 wxAcceleratorTable();
24 wxAcceleratorTable(const wxString& resource); // Load from .rc resource
3c674514 25 wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
f8855e47 26
d3c7fc99 27 virtual ~wxAcceleratorTable();
f8855e47 28
fbfb8bcc
VZ
29 bool operator == (const wxAcceleratorTable& accel) const { return m_refData == accel.m_refData; }
30 bool operator != (const wxAcceleratorTable& accel) const { return m_refData != accel.m_refData; }
925f7740 31
9b6dbb09 32 bool Ok() const;
925f7740 33
83df96d6 34 // Implementation only
8aa04e8b
JS
35 int GetCount() const;
36 wxAcceleratorEntry* GetEntries() const;
9b6dbb09
JS
37};
38
39WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
40
41#endif
83df96d6 42// _WX_ACCEL_H_