// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// radio group stuff
// -----------------
-void wxMenuItem::SetAsRadioGroupStart()
+void wxMenuItem::SetAsRadioGroupStart(bool start)
{
- m_isRadioGroupStart = true;
+ m_isRadioGroupStart = start;
}
void wxMenuItem::SetRadioGroupStart(int start)
m_radioGroup.end = end;
}
+bool wxMenuItem::IsRadioGroupStart() const
+{
+ return m_isRadioGroupStart;
+}
+
+int wxMenuItem::GetRadioGroupStart() const
+{
+ wxASSERT_MSG( !m_isRadioGroupStart,
+ wxS("shouldn't be called for the first radio item") );
+
+ return m_radioGroup.start;
+}
+
+int wxMenuItem::GetRadioGroupEnd() const
+{
+ wxASSERT_MSG( m_isRadioGroupStart,
+ wxS("shouldn't be called for the first radio item") );
+
+ return m_radioGroup.end;
+}
+
// ----------------------------------------------------------------------------
// wxMenuItemBase
// ----------------------------------------------------------------------------