/**
@class wxMenuBar
- @wxheader{menu.h}
A menu bar is a series of menus accessible from the top of a frame.
Destructor, destroying the menu bar and removing it from the parent frame (if
any).
*/
- ~wxMenuBar();
+ virtual ~wxMenuBar();
/**
Adds the item to the end of the menu bar.
@see Insert()
*/
- bool Append(wxMenu* menu, const wxString& title);
+ virtual bool Append(wxMenu* menu, const wxString& title);
/**
Checks or unchecks a menu item.
@see Append()
*/
- bool Insert(size_t pos, wxMenu* menu, const wxString& title);
+ virtual bool Insert(size_t pos, wxMenu* menu, const wxString& title);
/**
Determines whether an item is checked.
@see Replace()
*/
- wxMenu* Remove(size_t pos);
+ virtual wxMenu* Remove(size_t pos);
/**
Replaces the menu at the given position with another one.
@see Insert(), Remove()
*/
- wxMenu* Replace(size_t pos, wxMenu* menu, const wxString& title);
+ virtual wxMenu* Replace(size_t pos, wxMenu* menu, const wxString& title);
/**
Sets the help string associated with a menu item.
/**
@class wxMenu
- @wxheader{menu.h}
A menu is a popup (or pull down) list of items, one of which may be
selected before the menu goes away (clicking elsewhere dismisses the
a different window from last time, which causes an implicit destruction
and recreation of internal data structures.
*/
- ~wxMenu();
+ virtual ~wxMenu();
/**
Adds a menu item.
AppendSubMenu(), Insert(), SetLabel(),
GetHelpString(), SetHelpString(), wxMenuItem
*/
- wxMenuItem* Append(int id, const wxString& item,
- wxMenu* subMenu,
+ wxMenuItem* Append(int id, const wxString& item, wxMenu* subMenu,
const wxString& helpString = wxEmptyString);
/**
Inserts a break in a menu, causing the next appended item to appear in a new
column.
*/
- void Break();
+ virtual void Break();
/**
Checks or unchecks the menu item.
@remarks Any special menu codes are stripped out of source and target
strings before matching.
*/
- int FindItem(const wxString& itemString) const;
+ virtual int FindItem(const wxString& itemString) const;
/**
Finds the menu item object associated with the given menu item identifier and,
@see SetHelpString(), Append()
*/
- wxString GetHelpString(int id) const;
+ virtual wxString GetHelpString(int id) const;
/**
Returns a menu item label.
@see GetHelpString()
*/
- void SetHelpString(int id, const wxString& helpString);
+ virtual void SetHelpString(int id, const wxString& helpString);
/**
Sets the label of a menu item.
@see GetTitle()
*/
- void SetTitle(const wxString& title);
+ virtual void SetTitle(const wxString& title);
/**
Sends events to @a source (or owning window if @NULL) to update the
wxWindow::PopupMenu, but
the application may call it at other times if required.
*/
- void UpdateUI(wxEvtHandler* source = NULL) const;
+ void UpdateUI(wxEvtHandler* source = NULL);
};