• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/src/mac/classic/

Lines Matching refs:item

104 // function appends a new item or submenu to the menu
105 // append a new item or submenu to the menu
108 wxASSERT_MSG( pItem != NULL, wxT("can't append NULL item to the menu") );
178 wxMenuItem* wxMenu::DoAppend(wxMenuItem *item)
180 wxCHECK_MSG( item, NULL, _T("NULL item in wxMenu::DoAppend") );
184 if ( item->GetKind() == wxITEM_RADIO )
194 item->SetAsRadioGroupStart();
195 item->SetRadioGroupEnd(m_startRadioGroup);
197 // ensure that we have a checked item in the radio group
202 // we need to update its end item
203 item->SetRadioGroupStart(m_startRadioGroup);
212 wxFAIL_MSG( _T("where is the radio group start item?") );
216 else // not a radio item
221 if ( !wxMenuBase::DoAppend(item) || !DoInsertOrAppend(item) )
228 // check the item initially
229 item->Check(true);
232 return item;
235 wxMenuItem* wxMenu::DoInsert(size_t pos, wxMenuItem *item)
237 if (wxMenuBase::DoInsert(pos, item) && DoInsertOrAppend(item, pos))
238 return item;
243 wxMenuItem *wxMenu::DoRemove(wxMenuItem *item)
250 if ( node->GetData() == item )
256 // DoRemove() (unlike Remove) can only be called for existing item!
268 return wxMenuBase::DoRemove(item);
310 // helper functions returning the mac menu position for a certain item, note that this is
311 // mac-wise 1 - based, i.e. the first item has index 1 whereas on MSWin it has pos 0
364 wxMenuItem *item;
367 item = (wxMenuItem *)node->GetData();
368 wxMenu* subMenu = item->GetSubMenu() ;
378 if ( item->GetId() == wxApp::s_macPreferencesMenuItemId || item->GetId() == wxApp::s_macExitMenuItemId)
391 previousItem = item ;
407 wxMenuItem *item;
410 item = (wxMenuItem *)node->GetData();
411 wxMenu* subMenu = item->GetSubMenu() ;
420 previousItem = item ;
539 wxMenuItem *item = FindItem( wxApp::s_macPreferencesMenuItemId , NULL ) ;
540 if ( item == NULL || !(item->IsEnabled()) )
549 wxMenuItem *item;
562 item = (wxMenuItem *)node->GetData();
563 subMenu = item->GetSubMenu() ;
570 if ( item->IsSeparator() )
577 wxAcceleratorEntry* entry = wxAcceleratorEntry::Create( item->GetText() ) ;
579 if ( item->GetId() == wxApp::s_macAboutMenuItemId )
581 UMASetMenuItemText( GetMenuHandle( kwxMacAppleMenuId ) , 1 , item->GetText() , wxFont::GetDefaultEncoding() );
583 SetMenuItemCommandID( GetMenuHandle( kwxMacAppleMenuId ) , 1 , item->GetId() ) ;
590 UMAAppendMenuItem(mh, item->GetText() , wxFont::GetDefaultEncoding(), entry);
591 SetMenuItemCommandID( mh , CountMenuItems(mh) , item->GetId() ) ;
857 // Find the itemString in menuString, and return the item id or wxNOT_FOUND
878 wxMenuItem *item = NULL;
880 for ( size_t i = 0; !item && (i < count); i++ )
882 item = m_menus[i]->FindItem(id, itemMenu);
885 return item;