Lines Matching refs:item

142 	// If a types list exists iterate through the list and see if each item
143 // can support any item in the list and set the enabled state of the item.
146 ModelMenuItem* item = dynamic_cast<ModelMenuItem*>(menu->ItemAt(index));
147 if (item == NULL)
150 const Model* model = item->TargetModel();
160 item->SetEnabled(true);
166 item->SetEnabled(supported != kDoesNotSupportType);
170 item->SetEnabled(false);
174 item->SetEnabled(true);
177 item->SetEnabled(supported != kDoesNotSupportType);
179 item->SetEnabled(false);
342 // relative to the ability to handle an item in the drag message.
392 // item list is non-owning, need to delete the items because
420 // if ref is the root item then build list of volume root dirs
537 // PRINT(("not showing hidden item %s, wouldn't open\n", model->Name()));
558 // item might be in invisible
573 BMenuItem* item = NewModelItem(model, &fMessage, fMessenger, false,
577 if (item != NULL)
578 fItemList->AddItem(item);
647 ModelMenuItem* item = NULL;
649 item = new ModelMenuItem(model, truncatedString.String(), message);
651 item->SetEnabled(false);
663 item = new ModelMenuItem(model, menu);
664 item->SetMessage(message);
667 return item;
700 ModelMenuItem* item = new ModelMenuItem(model, menu);
705 item->SetMessage(message);
706 fItemList->AddItem(item);
707 ASSERT(item->Label() != NULL);
749 // entry in the menu - but don't add the item if we're already
770 BMenuItem* item = new BMenuItem(B_TRANSLATE("Empty folder"), 0);
771 item->SetEnabled(false);
772 AddItem(item);
792 ModelMenuItem* item = NULL;
799 item = new ModelMenuItem(model, navMenu);
800 item->SetMessage(message);
802 item = new ModelMenuItem(model, model->Name(), message);
804 AddItem(item);
818 BMenuItem* item = new SpecialModelMenuItem(model, menu);
821 item->SetMessage(message);
823 AddItem(item);
894 BMenuItem* item = menu->ItemAt(index);
895 if (item == NULL)
898 BMenu* submenu = item->Submenu();