1998-09-18 10:19:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: accel.h
|
|
|
|
// Purpose: wxAcceleratorTable class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-09-18 10:19:10 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_ACCEL_H_
|
|
|
|
#define _WX_ACCEL_H_
|
|
|
|
|
|
|
|
#include "wx/object.h"
|
|
|
|
#include "wx/string.h"
|
1998-11-12 22:47:51 +00:00
|
|
|
#include "wx/event.h"
|
1998-09-18 10:19:10 +00:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxAcceleratorTable: public wxObject
|
|
|
|
{
|
2002-02-05 16:34:33 +00:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
|
1998-09-18 10:19:10 +00:00
|
|
|
public:
|
|
|
|
wxAcceleratorTable();
|
|
|
|
wxAcceleratorTable(const wxString& resource); // Load from .rc resource
|
2002-05-28 16:51:14 +00:00
|
|
|
wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
|
2006-02-09 00:51:23 +00:00
|
|
|
|
1998-09-18 10:19:10 +00:00
|
|
|
~wxAcceleratorTable();
|
2006-02-09 00:51:23 +00:00
|
|
|
|
2005-09-24 21:43:15 +00:00
|
|
|
bool operator == (const wxAcceleratorTable& accel) const { return m_refData == accel.m_refData; }
|
|
|
|
bool operator != (const wxAcceleratorTable& accel) const { return m_refData != accel.m_refData; }
|
2002-02-05 16:34:33 +00:00
|
|
|
|
1998-09-18 10:19:10 +00:00
|
|
|
bool Ok() const;
|
2002-02-05 16:34:33 +00:00
|
|
|
|
|
|
|
// Implementation only
|
1998-11-12 22:47:51 +00:00
|
|
|
int GetCount() const;
|
|
|
|
wxAcceleratorEntry* GetEntries() const;
|
1998-09-18 10:19:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;
|
|
|
|
|
|
|
|
#endif
|
2002-02-05 16:34:33 +00:00
|
|
|
// _WX_ACCEL_H_
|