MCPcopy Create free account
hub / github.com/bumptop/BumpTop / Key_LaunchExplorerWithFileSelected

Function Key_LaunchExplorerWithFileSelected

trunk/win/Source/BT_Util.cpp:6386–6408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6384}
6385
6386void Key_LaunchExplorerWithFileSelected()
6387{
6388 if (sel->getBumpObjects().size() != 1)
6389 return;
6390
6391 // get the selected object
6392 BumpObject * obj = sel->getBumpObjects().front();
6393 if (!obj->isObjectType(ObjectType(BumpActor, FileSystem)))
6394 return;
6395
6396 FileSystemActor * actor = (FileSystemActor *) obj;
6397 QString path = actor->getFullPath();
6398 LPITEMIDLIST parentPidl = winOS->GetAbsolutePidlFromAbsFilePath(native(parent(path)));
6399 LPCITEMIDLIST pidl = winOS->GetRelativePidlFromAbsFilePath(path);
6400
6401 if (actor->isFileSystemType(Virtual))
6402 {
6403 parentPidl = winOS->GetPidlFromName(Desktop);
6404 pidl = winOS->GetPidlFromName(winOS->GetIconTypeFromFileName(path));
6405 }
6406
6407 SHOpenFolderAndSelectItems(parentPidl, 1, &pidl, 0);
6408}
6409
6410void Key_LaunchExplorerWindowOnWorkingDirectory()
6411{

Callers

nothing calls this directly

Calls 12

ObjectTypeClass · 0.85
getFullPathMethod · 0.80
isFileSystemTypeMethod · 0.80
GetPidlFromNameMethod · 0.80
nativeFunction · 0.70
parentFunction · 0.70
sizeMethod · 0.45
getBumpObjectsMethod · 0.45
frontMethod · 0.45

Tested by

no test coverage detected