accel.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/motif/accel.h
  3. // Purpose: wxAcceleratorTable class
  4. // Author: Julian Smart
  5. // Modified by:
  6. // Created: 17/09/98
  7. // Copyright: (c) Julian Smart
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_ACCEL_H_
  11. #define _WX_ACCEL_H_
  12. #include "wx/object.h"
  13. #include "wx/string.h"
  14. #include "wx/event.h"
  15. class WXDLLIMPEXP_CORE wxAcceleratorTable: public wxObject
  16. {
  17. DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
  18. public:
  19. wxAcceleratorTable();
  20. wxAcceleratorTable(const wxString& resource); // Load from .rc resource
  21. wxAcceleratorTable(int n, const wxAcceleratorEntry entries[]); // Load from array
  22. virtual ~wxAcceleratorTable();
  23. bool Ok() const { return IsOk(); }
  24. bool IsOk() const;
  25. // Implementation only
  26. int GetCount() const;
  27. wxAcceleratorEntry* GetEntries() const;
  28. };
  29. extern WXDLLIMPEXP_DATA_CORE(wxAcceleratorTable) wxNullAcceleratorTable;
  30. #endif
  31. // _WX_ACCEL_H_