X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e320a79f187558effb04d92020b470372bbe456..cf471cab8277f4cc2c19bce417356badf9e2ca49:/include/wx/os2/accel.h?ds=sidebyside diff --git a/include/wx/os2/accel.h b/include/wx/os2/accel.h index ec39737483..49730d5d9b 100644 --- a/include/wx/os2/accel.h +++ b/include/wx/os2/accel.h @@ -1,23 +1,18 @@ ///////////////////////////////////////////////////////////////////////////// // Name: accel.h // Purpose: wxAcceleratorTable class -// Author: AUTHOR +// Author: David Webster // Modified by: -// Created: ??/??/98 +// Created: 10/13/99 // RCS-ID: $Id$ -// Copyright: (c) AUTHOR -// Licence: wxWindows licence +// Copyright: (c) David Webster +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_ACCEL_H_ #define _WX_ACCEL_H_ -#ifdef __GNUG__ -#pragma interface "accel.h" -#endif - #include "wx/object.h" -#include "wx/string.h" class WXDLLEXPORT wxAcceleratorTable; @@ -67,11 +62,19 @@ public: ~wxAcceleratorTable(); - inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) { if (*this == accel) return (*this); Ref(accel); return *this; } - inline bool operator == (const wxAcceleratorTable& accel) { return m_refData == accel.m_refData; } - inline bool operator != (const wxAcceleratorTable& accel) { return m_refData != accel.m_refData; } + inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel) + { if (*this == accel) return (*this); Ref(accel); return *this; }; + inline bool operator == (const wxAcceleratorTable& accel) + { return m_refData == accel.m_refData; }; + inline bool operator != (const wxAcceleratorTable& accel) + { return m_refData != accel.m_refData; }; bool Ok() const; + void SetHACCEL(WXHACCEL hAccel); + WXHACCEL GetHACCEL() const; + + // translate the accelerator, return TRUE if done + bool Translate(wxWindow *window, WXMSG *msg) const; }; WXDLLEXPORT_DATA(extern wxAcceleratorTable) wxNullAcceleratorTable;