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

Method getActiveWidgetForFile

trunk/win/Source/BT_WidgetManager.cpp:371–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371Widget * WidgetManager::getActiveWidgetForFile( QString filepath ) const
372{
373 for (int i = 0; i < _widgets.size(); ++i)
374 {
375 QString widgetWorkingDir = _widgets[i]->workingDirectory;
376 if (filepath.startsWith(widgetWorkingDir, Qt::CaseInsensitive))
377 {
378 // the file is located in a particular widget's working directory, so
379 // we assume that it is managed by that widget
380 return _widgets[i];
381 }
382 }
383 return NULL;
384}
385
386bool WidgetManager::reloadWidgetActorOverrides( Widget * w, bool reloadProperties )
387{

Callers 5

onLaunchMethod · 0.80
setFilePathMethod · 0.80
refreshThumbnailMethod · 0.80
addMethod · 0.80
onPinMethod · 0.80

Calls 2

sizeMethod · 0.45
startsWithMethod · 0.45

Tested by

no test coverage detected