// Author: Vadim Zeitlin
// Modified by:
// Created: 25.10.99
-// RCS-ID: $Id$
// Copyright: (c) 1999 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
void SetKind(wxItemKind kind) { m_kind = kind; }
bool IsSeparator() const { return m_kind == wxITEM_SEPARATOR; }
- virtual void SetCheckable(bool checkable) { m_kind = checkable ? wxITEM_CHECK : wxITEM_NORMAL; }
+ bool IsCheck() const { return m_kind == wxITEM_CHECK; }
+ bool IsRadio() const { return m_kind == wxITEM_RADIO; }
+
+ virtual void SetCheckable(bool checkable)
+ { m_kind = checkable ? wxITEM_CHECK : wxITEM_NORMAL; }
+
+ // Notice that this doesn't quite match SetCheckable().
bool IsCheckable() const
{ return m_kind == wxITEM_CHECK || m_kind == wxITEM_RADIO; }
#else // !wxUSE_BASE_CLASSES_ONLY
#if defined(__WXUNIVERSAL__)
#include "wx/univ/menuitem.h"
-#elif defined(__WXPALMOS__)
- #include "wx/palmos/menuitem.h"
#elif defined(__WXMSW__)
#include "wx/msw/menuitem.h"
#elif defined(__WXMOTIF__)