[OpenMW-CS] Generate record filters based on cell content and column header
The second part to fix #7161 (closed) , but this will also work on any window that uses the record filter.
Example use cases 1: At TopicInfos, start a drag from "Cristo the Character" at column "Actor" will make a filter that shows only records with "Cristo the Character" at "Actor" column.
Example use case 2: At Instances, start a drag from "MyObject" at column "Object ID" and the filter will show all instances of MyObject.
Example use case 3: At Instances, start a drag from any object in a cell "Exhibition Hall", the filter will show all instances at the corresponding cell.
TODO:
-
Remove debug code -
Make sure that all records have the data types handled correctly -
Test and fix possible stability issues -
General code improvements (e.g. find best methods to pass variables, use const
in sensible places)
Edited by Nelsson Huotari