Skip to content

Commit

Permalink
Fix filter checkboxes dont remember state
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Stricker committed Oct 28, 2020
1 parent c02d54e commit 648980b
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 126 deletions.
72 changes: 72 additions & 0 deletions Physical/PC/X20CP1583/mappView/Logbook.binding
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,77 @@
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.CMD.Refresh" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="btnRefresh" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[0]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterAccSec" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[1]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterCommissioning" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[2]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterConnectivity" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[3]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterFieldbus" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[4]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterFirewall" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[5]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterMapp" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[6]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterMotion" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[7]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterSafety" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[8]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterSystem" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[9]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterTextSystem" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[10]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterUnitSystem" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[11]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterUser" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[12]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterVision" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[13]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterVisualization" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterSeverity[3]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterError" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterSeverity[2]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterWarning" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterSeverity[1]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterInformation" attribute="value" />
</Binding>
<Binding mode="twoWay">
<Source xsi:type="opcUa" refId="::AsGlobalPV:gLogbook.PAR.FilterSeverity[0]" attribute="value" />
<Target xsi:type="brease" contentRefId="contentLogbook" widgetRefId="chkFilterNotification" attribute="value" />
</Binding>
</Bindings>
</BindingsSet>
126 changes: 0 additions & 126 deletions Physical/PC/X20CP1583/mappView/Logbook.eventbinding
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,6 @@
<!-- Filter for severity was changed -->
<EventBinding id="contentLogbook.chkFilterNotification.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterNotification" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterSeverity[0]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -100,13 +93,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterInformation.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterInformation" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterSeverity[1]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -117,13 +103,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterWarning.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterWarning" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterSeverity[2]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -134,13 +113,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterError.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterError" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterSeverity[3]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand Down Expand Up @@ -194,13 +166,6 @@
<!-- Filter for facility was changed -->
<EventBinding id="contentLogbook.chkFilterAccSec.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterAccSec" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[0]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -211,13 +176,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterCommissioning.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterCommissioning" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[1]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -228,13 +186,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterConnectivity.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterConnectivity" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[2]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -245,13 +196,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterFieldbus.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterFieldbus" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[3]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -262,13 +206,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterFirewall.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterFirewall" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[4]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -279,13 +216,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterMapp.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterMapp" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[5]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -296,13 +226,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterMotion.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterMotion" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[6]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -313,13 +236,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterSafety.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterSafety" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[7]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -330,13 +246,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterSystem.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterSystem" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[8]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -347,13 +256,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterTextSystem.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterTextSystem" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[9]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -364,13 +266,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterUnitSystem.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterUnitSystem" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[10]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -381,13 +276,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterUser.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterUser" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[11]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -398,13 +286,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterVision.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterVision" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[12]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand All @@ -415,13 +296,6 @@
</EventBinding>
<EventBinding id="contentLogbook.chkFilterVisualization.ValueChanged">
<Source xsi:type="widgets.brease.CheckBox.Event" contentRefId="contentLogbook" widgetRefId="chkFilterVisualization" event="ValueChanged" />
<EventHandler condition="">
<Action>
<Target xsi:type="opcUa.NodeAction" refId="::AsGlobalPV:gLogbook.PAR.FilterFacility[13]">
<Method xsi:type="opcUa.NodeAction.SetValueBool" value="=newValueBool" />
</Target>
</Action>
</EventHandler>
<EventHandler>
<Action>
<Target xsi:type="widgets.brease.Label.Action" contentRefId="contentLogbook" widgetRefId="labNotification">
Expand Down

0 comments on commit 648980b

Please sign in to comment.