/////////////////////////////////////////////////////////////////////////////
// Name: accel.h
// Purpose: wxAcceleratorTable class
-// Author: Robert
-// Modified by:
-// RCS-ID: $id$
+// Author: Robert Roebling
+// RCS-ID: $Id$
// Copyright: (c) Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#endif
#include "wx/defs.h"
+
+#if wxUSE_ACCEL
+
#include "wx/object.h"
#include "wx/event.h"
class wxAcceleratorTable: public wxObject
{
- DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
-
- public:
+public:
wxAcceleratorTable();
wxAcceleratorTable(int n, wxAcceleratorEntry entries[] );
~wxAcceleratorTable();
- inline wxAcceleratorTable(const wxAcceleratorTable& accel)
+ inline wxAcceleratorTable(const wxAcceleratorTable& accel) : wxObject()
{ Ref(accel); }
inline wxAcceleratorTable(const wxAcceleratorTable* accel)
{ if (accel) Ref(*accel); }
- inline wxAcceleratorTable& operator = (const wxAcceleratorTable& accel)
- { if (*this == accel) return (*this); Ref(accel); return *this; }
- inline bool operator == (const wxAcceleratorTable& accel)
+ 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; }
bool Ok() const;
-// private:
+// implementation
- int GetCommand( wxKeyEvent &event );
+ int GetCommand( wxKeyEvent &event );
+private:
+ DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
};
#endif
+
+#endif