2004-03-23 12:38:49 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: accel.h
|
|
|
|
// Purpose: wxAcceleratorTable class
|
|
|
|
// Author: Stefan Csomor
|
|
|
|
// Modified by:
|
|
|
|
// Created: 1998-01-01
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Stefan Csomor
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2004-03-23 12:38:49 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_ACCEL_H_
|
|
|
|
#define _WX_ACCEL_H_
|
|
|
|
|
|
|
|
#include "wx/string.h"
|
|
|
|
#include "wx/event.h"
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxAcceleratorTable: public wxObject
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
|
|
|
|
public:
|
|
|
|
wxAcceleratorTable();
|
|
|
|
wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
|
|
|
|
|
|
|
|
~wxAcceleratorTable();
|
|
|
|
|
2005-09-24 17:43:15 -04:00
|
|
|
bool operator == (const wxAcceleratorTable& accel) const
|
2004-03-23 12:38:49 -05:00
|
|
|
{ return m_refData == accel.m_refData; }
|
2005-09-24 17:43:15 -04:00
|
|
|
bool operator != (const wxAcceleratorTable& accel) const
|
2004-03-23 12:38:49 -05:00
|
|
|
{ return m_refData != accel.m_refData; }
|
|
|
|
|
|
|
|
bool Ok() const;
|
|
|
|
|
|
|
|
int GetCommand( wxKeyEvent &event );
|
|
|
|
};
|
|
|
|
|
|
|
|
// WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_ACCEL_H_
|