2004-03-23 12:35:05 -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:35:05 -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
|
|
|
|
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxAcceleratorTable();
|
2004-03-23 12:35:05 -05:00
|
|
|
|
2005-09-24 17:43:15 -04:00
|
|
|
bool operator == (const wxAcceleratorTable& accel) const
|
2004-03-23 12:35:05 -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:35:05 -05:00
|
|
|
{ return m_refData != accel.m_refData; }
|
|
|
|
|
2006-10-08 17:56:55 -04:00
|
|
|
bool Ok() const { return IsOk(); }
|
|
|
|
bool IsOk() const;
|
2004-03-23 12:35:05 -05:00
|
|
|
|
|
|
|
int GetCommand( wxKeyEvent &event );
|
|
|
|
};
|
|
|
|
|
|
|
|
// WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_ACCEL_H_
|