<?xml version="1.0" ?>
<pqevents>
  <!-- load sinwaves and extract y1 to y9 series. -->
  <pqevent object="pqClientMainWindow/MainControlsToolbar/actionOpenData" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/FileOpenDialog" command="filesSelected" arguments="$PARAVIEW_DATA_ROOT/Testing/Data/sineWaves.csv" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuFilters" />
  <pqevent object="pqClientMainWindow/menubar/menuFilters/Alphabetical" command="activate" arguments="PassArrays" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setSelection" arguments="0.0,29.0" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="openContextMenu" arguments="0.0" />
  <pqevent object="TreeViewCheckMenu" command="activate" arguments="Uncheck highlighted items" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="0.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="11.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="22.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="24.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setSelection" arguments="25.0,25.0" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCurrent" arguments="25.0" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="25.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="26.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="27.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setSelection" arguments="28.0,28.0" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCurrent" arguments="28.0" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="28.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/PropertiesFrame/ProxyPanel/RowDataArrays/ArraySelectionWidget" command="setCheckState" arguments="29.0,2" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />

  <!-- display it in a LineChart view -->
  <pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_tabbar" command="set_tab_with_text" arguments="+" />
  <pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget2/Container/Frame.0/CentralWidgetFrame/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/XYChartView" command="activate" arguments="" />

  <pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,8,7,/0:0/0:0/0:1" />
  <pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,8,7,/0:0/0:0/0:1" />

  <!-- apply KAAMS preset and modify first color -->
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/ChoosePreset" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/gradients" command="setCurrent" arguments="0.0" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/gradients" command="setSelection" arguments="0.0,0.0" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/annotations" command="set_boolean" arguments="false" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/apply" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/close" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="setCurrent" arguments="0.1" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="setSelection" arguments="0.0,0.4" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="doubleClick" arguments="0.1" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/1QColorDialog0" command="setChosenColor" arguments="170,85,255" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/0QColorDialog0" command="done" arguments="1" />

    <!-- set legend y1 -> 1x, y2 -> 2x -->
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="setCurrent" arguments="0.4" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="doubleClick" arguments="0.4" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="edit" arguments="0.4" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable/qt_scrollarea_viewport/1QExpandingLineEdit0" command="set_string" arguments="1x" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="setCurrent" arguments="1.4" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="setSelection" arguments="1.0,1.4" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="doubleClick" arguments="1.4" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="edit" arguments="1.4" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable/qt_scrollarea_viewport/1QExpandingLineEdit0" command="set_string" arguments="2x" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/AnnotationsTable" command="editAccepted" arguments="1.4,2x" />

  <!-- save preset -->
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/SaveAsNewPreset" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/SavePresetOptions/saveAnnotations" command="set_boolean" arguments="true" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/SavePresetOptions/presetName" command="set_string" arguments="RegexPreset" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/SavePresetOptions/buttonBox/1QPushButton0" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/close" command="activate" arguments="" />

  <!-- apply preset without regex on full sinewaves -->
  <pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,11,8,/0:0/0:0/0:1" />
  <pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,11,8,/0:0/0:0/0:1" />
  <pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mousePress" arguments="1,1,0,11,6,/0:0/0:1" />
  <pqevent object="pqClientMainWindow/pipelineBrowserDock/pipelineBrowser" command="mouseRelease" arguments="1,0,0,11,6,/0:0/0:1" />
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/ChoosePreset" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog" command="key" arguments="16777299" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/gradients" command="setCurrent" arguments="33.1" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/gradients" command="setSelection" arguments="33.1,33.1" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/apply" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog" command="key" arguments="16777299" />
  <pqevent object="pqClientMainWindow/pqPresetDialog" command="key" arguments="16777299" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/close" command="activate" arguments="" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget2/Container/Frame.0/CentralWidgetFrame/Viewport" baseline="$PARAVIEW_DATA_ROOT/Clients/ParaView/Testing/Data/Baseline/SeriesPresetRegexpNoRegexp.png" threshold="5" />

  <!-- apply preset with regex 'y\d', so every y1x and y2x will match the same preset (e.g. y11 and y13 should have same color and legend than y1 in preset) -->
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/ChoosePreset" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/gradients" command="setSelection" arguments="33.1,33.1" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/gradients" command="setCurrent" arguments="33.1" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/useRegexp" command="set_boolean" arguments="true" />
  <pqevent object="pqClientMainWindow/pqPresetDialog" command="key" arguments="16777299" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/regexpLine" command="set_string" arguments="y\d" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/apply" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/close" command="activate" arguments="" />
  <pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget2/Container/Frame.0/CentralWidgetFrame/Viewport" baseline="$PARAVIEW_DATA_ROOT/Clients/ParaView/Testing/Data/Baseline/SeriesPresetRegexpYD.png" threshold="5" />

  <!-- apply preset with regex '.*' -->
  <pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/scrollArea/qt_scrollarea_viewport/scrollAreaWidgetContents/DisplayFrame/ProxyPanel/SeriesEditor/SeriesTable/ChoosePreset" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/gradients" command="setSelection" arguments="33.1,33.1" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/gradients" command="setCurrent" arguments="33.1" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/useRegexp" command="set_boolean" arguments="true" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/regexpLine" command="set_string" arguments=".*" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/regexpLine" command="key" arguments="16777248" />
  <pqevent object="pqClientMainWindow/pqPresetDialog" command="key" arguments="16777299" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/regexpLine" command="key" arguments="16777299" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/apply" command="activate" arguments="" />
  <pqevent object="pqClientMainWindow/pqPresetDialog/close" command="activate" arguments="" />

</pqevents>
