20 lines
630 B
Python
20 lines
630 B
Python
print("Loaded file SearchResults.py")
|
|
actionHandlers = { }
|
|
toolTipHandlers = { }
|
|
resultProvidersCached = { }
|
|
resultProvidersUncached = { }
|
|
|
|
# name : string
|
|
# getItemGroupsCached: () -> [itemGroup]
|
|
# getItemGroupsUncached: () -> [itemGroup]
|
|
def registerResultProvider(name, getItemGroupsCached, getItemGroupsUncached):
|
|
resultProvidersCached[name] = getItemGroupsCached
|
|
resultProvidersUncached[name] = getItemGroupsUncached
|
|
|
|
# name : str
|
|
# action : act -> None
|
|
# toolTip : groupId, setParent -> (str or QWidget)
|
|
def registerResultHandler(name, action, toolTip):
|
|
actionHandlers[name] = action
|
|
toolTipHandlers[name] = toolTip
|