Sunday, September 18, 2016

Policy Plus - Filter window

A while ago, I decided that it was time to implement a filter-by-support feature in Policy Plus, for feature parity with the real Group Policy Editor. Today I finally put together the window for its options.


The interesting thing about the tree view control is that only the node labels' background responds to the control being disabled; the rest of the background stays white. That produces an unattractive visual effect, so I had to add a line that sets the control's background to the appropriate color when it becomes disabled (i.e. when the Supported on checkbox is not checked).

Match a policy if at least one selected product is supported means that the support checking function (which I haven't yet written) will pretend all support definitions with multiple referenced products have "any" logic even if they're defined with "all." Match policies with missing or blank support definitions will approve policies that either have no support specified and policies that have a support definition that references no products.

Along the way, I decided to make the Deduplicate Policies menu item invisible for the time being. It's a destructive operation on the workspace, and I suspect it will result in bizarre behavior in certain search-related cases.

Hopefully I will able to write the actual filtering logic soon.

No comments:

Post a Comment