}
/* static */
-wxString wxMenuItemBase::GetLabelFromText(const wxString& text)
+wxString wxMenuItemBase::GetLabelText(const wxString& text)
{
return wxStripMenuCodes(text);
}
if (m_text.IsEmpty())
{
- wxASSERT_MSG(wxIsStockId(GetId()), wxT("A non-stock menu item with an empty label?"));
+ wxASSERT_MSG(wxIsStockID(GetId()), wxT("A non-stock menu item with an empty label?"));
txt = wxGetStockLabel(GetId(), wxSTOCK_WITH_ACCELERATOR|wxSTOCK_WITH_MNEMONIC);
}
wxMenuItemDisarmCallback, (XtPointer) this);
}
}
- else if (GetId() == wxID_SEPARATOR)
+ else if (IsSeparator())
{
; // Nothing
}
}
-void wxMenuItem::SetText(const wxString& label)
+void wxMenuItem::SetItemLabel(const wxString& label)
{
char mnem = wxFindMnemonic (label);
wxString label2 = wxStripMenuCodes(label);
event.SetEventObject(item->GetMenuBar()->GetMenuBarFrame());
item->GetMenuBar()->GetMenuBarFrame()
- ->GetEventHandler()->ProcessEvent(event);
+ ->HandleWindowEvent(event);
}
// this is the child of a popup menu
else if (item->GetTopMenu())
menuEvent.SetEventObject(item->GetMenuBar()->GetMenuBarFrame());
item->GetMenuBar()->GetMenuBarFrame()
- ->GetEventHandler()->ProcessEvent(menuEvent);
+ ->HandleWindowEvent(menuEvent);
}
}
}
menuEvent.SetEventObject(item->GetMenuBar()->GetMenuBarFrame());
item->GetMenuBar()->GetMenuBarFrame()
- ->GetEventHandler()->ProcessEvent(menuEvent);
+ ->HandleWindowEvent(menuEvent);
}
}
}