accel.h 854 B

123456789101112131415161718192021222324252627282930313233
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/osx/accel.h
  3. // Purpose: wxAcceleratorTable class
  4. // Author: Stefan Csomor
  5. // Modified by:
  6. // Created: 1998-01-01
  7. // Copyright: (c) Stefan Csomor
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_ACCEL_H_
  11. #define _WX_ACCEL_H_
  12. #include "wx/string.h"
  13. #include "wx/event.h"
  14. class WXDLLIMPEXP_CORE wxAcceleratorTable: public wxObject
  15. {
  16. DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
  17. public:
  18. wxAcceleratorTable();
  19. wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
  20. virtual ~wxAcceleratorTable();
  21. bool Ok() const { return IsOk(); }
  22. bool IsOk() const;
  23. int GetCommand( wxKeyEvent &event );
  24. };
  25. #endif
  26. // _WX_ACCEL_H_