Document Insert() and Prepend() overloads taking wxMenu.

Document these methods in addition to AppendSubMenu().

Closes #16052.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76091 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-03-07 01:19:07 +00:00
parent 9151248ee0
commit f2fbc84dcb

View File

@@ -652,6 +652,8 @@ public:
Adds the given @a submenu to this menu. @a text is the text shown in the Adds the given @a submenu to this menu. @a text is the text shown in the
menu for it and @a help is the help string shown in the status bar when the menu for it and @a help is the help string shown in the status bar when the
submenu item is selected. submenu item is selected.
@see Insert(), Prepend()
*/ */
wxMenuItem* AppendSubMenu(wxMenu* submenu, const wxString& text, wxMenuItem* AppendSubMenu(wxMenu* submenu, const wxString& text,
const wxString& help = wxEmptyString); const wxString& help = wxEmptyString);
@@ -865,6 +867,16 @@ public:
const wxString& helpString = wxEmptyString, const wxString& helpString = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL); wxItemKind kind = wxITEM_NORMAL);
/**
Inserts the given @a submenu before the position @a pos.
@a text is the text shown in the menu for it and @a help is the
help string shown in the status bar when the submenu item is selected.
@see AppendSubMenu(), Prepend()
*/
wxMenuItem* Insert(size_t pos, int id, const wxString& text,
wxMenu* submenu, const wxString& help = wxEmptyString);
/** /**
Inserts a checkable item at the given position. Inserts a checkable item at the given position.
@@ -930,6 +942,14 @@ public:
const wxString& helpString = wxEmptyString, const wxString& helpString = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL); wxItemKind kind = wxITEM_NORMAL);
/**
Inserts the given @a submenu at position 0.
@see AppendSubMenu(), Insert()
*/
wxMenuItem* Prepend(int id, const wxString& text, wxMenu* submenu,
const wxString& help = wxEmptyString);
/** /**
Inserts a checkable item at position 0. Inserts a checkable item at position 0.