removed unused statusbar parameter from wxFrameBase::ShowMenuHelp()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -211,9 +211,10 @@ protected:
|
|||||||
// something changes
|
// something changes
|
||||||
virtual void PositionStatusBar() { }
|
virtual void PositionStatusBar() { }
|
||||||
|
|
||||||
// show the help string for this menu item in the given status bar: the
|
// show the help string for the given menu item using DoGiveHelp() if the
|
||||||
// status bar pointer can be NULL; return true if help was shown
|
// given item does have a help string, return false if there is no help for
|
||||||
bool ShowMenuHelp(wxStatusBar *statbar, int helpid);
|
// such item
|
||||||
|
bool ShowMenuHelp(int helpid);
|
||||||
|
|
||||||
wxStatusBar *m_frameStatusBar;
|
wxStatusBar *m_frameStatusBar;
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
|
@@ -253,7 +253,7 @@ void wxFrameBase::UpdateWindowUI(long flags)
|
|||||||
void wxFrameBase::OnMenuHighlight(wxMenuEvent& event)
|
void wxFrameBase::OnMenuHighlight(wxMenuEvent& event)
|
||||||
{
|
{
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
(void)ShowMenuHelp(GetStatusBar(), event.GetMenuId());
|
(void)ShowMenuHelp(event.GetMenuId());
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -349,7 +349,7 @@ void wxFrameBase::PopStatusText(int number)
|
|||||||
m_frameStatusBar->PopStatusText(number);
|
m_frameStatusBar->PopStatusText(number);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxFrameBase::ShowMenuHelp(wxStatusBar *WXUNUSED(statbar), int menuId)
|
bool wxFrameBase::ShowMenuHelp(int menuId)
|
||||||
{
|
{
|
||||||
#if wxUSE_MENUS
|
#if wxUSE_MENUS
|
||||||
// if no help string found, we will clear the status bar text
|
// if no help string found, we will clear the status bar text
|
||||||
|
@@ -408,7 +408,7 @@ void wxMDIChildFrame::OnMenuHighlight( wxMenuEvent& event )
|
|||||||
{
|
{
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
wxMDIParentFrame *mdi_frame = (wxMDIParentFrame*)m_parent->GetParent();
|
wxMDIParentFrame *mdi_frame = (wxMDIParentFrame*)m_parent->GetParent();
|
||||||
if ( !ShowMenuHelp(mdi_frame->GetStatusBar(), event.GetMenuId()) )
|
if ( !ShowMenuHelp(event.GetMenuId()) )
|
||||||
{
|
{
|
||||||
// we don't have any help text for this item, but may be the MDI frame
|
// we don't have any help text for this item, but may be the MDI frame
|
||||||
// does?
|
// does?
|
||||||
|
@@ -409,7 +409,7 @@ void wxMDIChildFrame::OnMenuHighlight( wxMenuEvent& event )
|
|||||||
{
|
{
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
wxMDIParentFrame *mdi_frame = (wxMDIParentFrame*)m_parent->GetParent();
|
wxMDIParentFrame *mdi_frame = (wxMDIParentFrame*)m_parent->GetParent();
|
||||||
if ( !ShowMenuHelp(mdi_frame->GetStatusBar(), event.GetMenuId()) )
|
if ( !ShowMenuHelp(event.GetMenuId()) )
|
||||||
{
|
{
|
||||||
// we don't have any help text for this item, but may be the MDI frame
|
// we don't have any help text for this item, but may be the MDI frame
|
||||||
// does?
|
// does?
|
||||||
|
Reference in New Issue
Block a user