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