Add buttons to set filter mode on build items

This commit is contained in:
Veronica Berglyd Olsen
2023-02-28 23:19:57 +01:00
parent 9af273bf8f
commit 5639df7efd
2 changed files with 122 additions and 13 deletions
+30
View File
@@ -98,10 +98,40 @@ class BuildSettings:
self._data = {}
self._excluded = set()
self._included = set()
self._loadTemplate()
return
def isIncluded(self, tHandle):
return tHandle in self._included
def isExcluded(self, tHandle):
return tHandle in self._excluded
def setFiltered(self, tHandle):
"""Set an item as filtered.
"""
self._excluded.discard(tHandle)
self._included.discard(tHandle)
return
def setIncluded(self, tHandle):
"""Set an item as explicitly included.
"""
self._excluded.discard(tHandle)
self._included.add(tHandle)
return
def setExcluded(self, tHandle):
"""Set an item as explicitly excluded.
"""
self._excluded.add(tHandle)
self._included.discard(tHandle)
return
##
# Internal Functions
##