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

Function Key_Folderize

trunk/win/Source/BT_Util.cpp:5514–5536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5512}
5513
5514void Key_Folderize()
5515{
5516 reauthorize(false);
5517
5518 vector<Pile *> selection = sel->getFullPiles();
5519
5520 for (uint i = 0; i < selection.size(); i++)
5521 {
5522 Pile *pile = (Pile *) selection[i];
5523
5524 if (selection[i]->getPileType() == HardPile)
5525 {
5526 FileSystemPile *fsPile = (FileSystemPile *) pile;
5527 fsPile->folderize();
5528 }
5529 else if (selection[i]->getPileType() == SoftPile)
5530 {
5531 SoftPileToFolderIcon(pile);
5532 }
5533 }
5534
5535 selection.clear();
5536}
5537
5538void Key_BreakPile()
5539{

Callers

nothing calls this directly

Calls 5

SoftPileToFolderIconFunction · 0.85
getFullPilesMethod · 0.80
folderizeMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected