#if wxUSE_ACCEL
#include "wx/accel.h"
+ #include "wx/list.h" // for "template" list classes
#include "wx/dynarray.h"
WX_DEFINE_EXPORTED_ARRAY(wxAcceleratorEntry *, wxAcceleratorArray);
}
#endif // wxUSE_MENU_CALLBACK
- //
- // OS2-specific
- //
- bool ProcessCommand(wxCommandEvent& rEvent);
-
-
//
// Implementation only from now on
// -------------------------------
//
+ virtual void Attach(wxMenuBarBase* pMenubar);
+
bool OS2Command( WXUINT uParam
,WXWORD wId
);
//
WXHMENU GetHMenu() const { return m_hMenu; }
- //
- // Attach/detach menu to/from wxMenuBar
- //
- void Attach(wxMenuBar* pMenubar);
- void Detach(void);
-
#if wxUSE_ACCEL
//
// Called by wxMenuBar to build its accel table from the accels of all menus
//
- bool HasAccels(void) const { return !m_vAccels.IsEmpty(); }
+ bool HasAccels(void) const { return m_vAccels.IsEmpty(); }
size_t GetAccelCount(void) const { return m_vAccels.GetCount(); }
size_t CopyAccels(wxAcceleratorEntry* pAccels) const;
,size_t nPos = (size_t)-1
);
+ //
+ // Terminate the current radio group, if any
+ //
+ void EndRadioGroup(void);
+
//
// If TRUE, insert a breal before appending the next item
//
//
// The helper variable for creating unique IDs.
//
- static USHORT m_nextMenuId;
+ static USHORT m_nextMenuId;
+
+ //
+ // The position of the first item in the current radio group or -1
+ //
+ int m_nStartRadioGroup;
#if wxUSE_ACCEL
//
// Implementation from now on
//
WXHMENU Create(void);
- void Detach(void);
-
- //
- // Returns TRUE if we're attached to a frame
- //
- bool IsAttached(void) const { return m_pMenuBarFrame != NULL; }
-
- //
- // Get the frame we live in
- //
- wxFrame * GetFrame(void) const { return m_pMenuBarFrame; }
-
- //
- // Attach to a frame
- //
- void Attach(wxFrame* pFrame);
+ virtual void Detach(void);
+ virtual void Attach(wxFrame* pFrame);
#if wxUSE_ACCEL
//
wxArrayString m_titles;
- wxFrame* m_pMenuBarFrame;
WXHMENU m_hMenu;
#if wxUSE_ACCEL