// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
-// RCS-ID: $Id$
// Copyright: (c) Stefan Csomor
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
virtual ~wxMenu();
- virtual void Attach(wxMenuBarBase *menubar) ;
-
virtual void Break();
virtual void SetTitle(const wxString& title);
// common part of all ctors
void Init();
- // common part of Append/Insert (behaves as Append is pos == (size_t)-1)
+ // common part of Do{Append,Insert}(): behaves as Append if pos == -1
bool DoInsertOrAppend(wxMenuItem *item, size_t pos = (size_t)-1);
- // terminate the current radio group, if any
- void EndRadioGroup();
+ // Common part of HandleMenu{Opened,Closed}().
+ void DoHandleMenuOpenedOrClosed(wxEventType evtType);
+
- // if TRUE, insert a breal before appending the next item
+ // if TRUE, insert a break before appending the next item
bool m_doBreak;
// in this menu rearranging of menu items (esp hiding) is allowed
// don't trigger native events
bool m_noEventsMode;
- // the position of the first item in the current radio group or -1
- int m_startRadioGroup;
-
wxMenuImpl* m_peer;
DECLARE_DYNAMIC_CLASS(wxMenu)
virtual wxMenu *Remove(size_t pos);
virtual void EnableTop( size_t pos, bool flag );
+ virtual bool IsEnabledTop(size_t pos) const;
virtual void SetMenuLabel( size_t pos, const wxString& label );
virtual wxString GetMenuLabel( size_t pos ) const;
virtual bool Enable( bool enable = true );