Lines Matching defs:model

241 AddOneAddOn(const Model* model, const char* name, uint32 shortcut,
248 message->AddRef("refs", model->EntryRef());
250 ModelMenuItem* item = new ModelMenuItem(model, name, message,
253 const entry_ref* addOnRef = model->EntryRef();
338 AddMimeTypeString(BStringList& list, Model* model)
340 if (model == NULL)
343 const char* modelMimeType = model->MimeType();
606 BContainerWindow::NewPoseView(Model* model, uint32 viewMode)
608 return new BPoseView(model, viewMode);
613 BContainerWindow::UpdateIfTrash(Model* model)
615 BEntry entry(model->EntryRef());
618 fIsTrash = model->IsTrash();
619 fInTrash = FSInTrashDir(model->EntryRef());
626 BContainerWindow::CreatePoseView(Model* model)
628 UpdateIfTrash(model);
630 fPoseView = NewPoseView(model, kListMode);
636 if (settings.SingleWindowBrowse() && model->IsDirectory()
638 fNavigator = new BNavigator(model);
1365 Model model(&ref);
1366 if (model.InitCheck() != B_OK)
1369 if (*model.NodeRef() == *TargetModel()->NodeRef())
1372 PoseView()->MoveSelectionInto(&model, this, true);
1384 Model model(&ref);
1385 if (model.InitCheck() != B_OK)
1388 PoseView()->MoveSelectionInto(&model, this, false, true);
1399 Model model(&ref);
1400 if (model.InitCheck() != B_OK)
1403 PoseView()->MoveSelectionInto(&model, this, false, false,
2085 Model* model
2087 if (model->IsVolume()) {
2089 volume.SetTo(model->NodeRef()->device);
2145 Model model(&entry);
2148 if (model.InitCheck() != B_OK
2149 || (!model.IsContainer() && !model.IsSymLink())) {
2153 if (model.IsSymLink()) {
2154 if (entry.SetTo(model.EntryRef(), true) != B_OK)
2166 fNavigationItem = new ModelMenuItem(&model,
2167 new BNavMenu(model.Name(), B_REFS_RECEIVED, be_app, this));
2174 fNavigationItem->SetLabel(model.Name());
2205 Model model(pose->TargetModel()->EntryRef(), true);
2206 if (model.InitCheck() != B_OK)
2209 if (model.IsQuery() || model.IsQueryTemplate()) {
2297 Model model;
2314 && model.SetTo(&entry) == B_OK) {
2317 menu->SetNavDir(model.EntryRef());
2320 BMenuItem* item = new SpecialModelMenuItem(&model, menu);
2331 && model.SetTo(&entry) == B_OK) {
2335 BMenuItem* item = new SpecialModelMenuItem(&model, menu);
2345 && model.SetTo(&entry) == B_OK) {
2346 navMenu->AddNavDir(&model, what, this, true);
2352 && entry.SetTo(path.Path()) == B_OK && model.SetTo(&entry) == B_OK) {
2353 navMenu->AddNavDir(&model, what, this, true);
2367 && model.SetTo(&entry) == B_OK) {
2368 navMenu->AddNavDir(&model, what, this, false);
2371 navMenu->SetNavDir(model.EntryRef());
2383 && model.SetTo(&entry) == B_OK) {
2384 navMenu->AddNavDir(&model, what, this, true);
2546 Model model(ref);
2548 if (model.IsTrash()) {
2570 model.GetEntry(&entry);
2617 } else if (TargetModel()->IsRoot() || model.IsVolume()) {
2641 // volume model, enable/disable the Unmount item
2647 volume.SetTo(model.NodeRef()->device);
2906 BFile file(item->model->EntryRef(), B_READ_ONLY);
2943 ((eachAddOn)(item->model, item->model->Name(), item->key,
4268 WindowStateNodeOpener::SetTo(Model* model, bool forWriting)
4276 fModelOpener = new ModelNodeLazyOpener(model, forWriting, false);