Commit a23c72a1 authored by Timothee Chabat's avatar Timothee Chabat
Browse files

Add test for widget visibility

parent 109e3300
830cddde3cb6831636fb2ccc37fbe374871e5a3ff40f25a246bd7602ef91683150ac4802ad0f39e83d28ec1951f660048dbaaa8ef6bfe82927657eaed0c3b165
99dc83d50d105021279847f4d9c22cc8b0018e2f06a8c471775bee9de271f0a216d3afe2fcd612925b84867f0942fcce775ecda8e8fe50274a9f1dd04afbd74e
......@@ -587,6 +587,8 @@ ExternalData_Expand_Arguments(ParaViewData _
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/VolumeSliceBlendMode.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/WaveNoFontScale.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/WaveFontScale.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/WidgetVisibility.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/WidgetVisibility_Empty.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/YoungsMaterialInterface.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/XYChart_ChangeParameters.png}"
"DATA{${CMAKE_CURRENT_SOURCE_DIR}/../Data/Baseline/XYChart_Default.png}"
......@@ -762,6 +764,7 @@ SET(TESTS_WITH_BASELINES
TestHiddenLineRemoval.xml
TestOpacityRendering.xml
ZoomToData.xml
WidgetVisibility.xml
)
if(PARAVIEW_ENABLE_VISITBRIDGE)
......
<?xml version="1.0" ?>
<pqevents>
<!-- Create a cone with a transform -->
<pqevent object="pqClientMainWindow/menubar" command="activate" arguments="menuSources" />
<pqevent object="pqClientMainWindow/menubar/menuSources/Alphabetical" command="activate" arguments="ConeSource" />
<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="TransformFilter" />
<pqevent object="pqClientMainWindow/propertiesDock/propertiesPanel/Accept" command="activate" arguments="" />
<!-- Check that it is visible after an apply -->
<pqcompareview object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget1/Container/Frame.0/CentralWidgetFrame/Viewport"
baseline="$PARAVIEW_DATA_ROOT/Clients/ParaView/Testing/Data/Baseline/WidgetVisibility.png" />
<!-- Check that in another view where the filter is not visible, the widget is not either -->
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_tabbar" command="set_tab_with_text" arguments="+" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_tabbar" command="set_tab_with_text" arguments="Layout #2" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_stackedwidget/MultiViewWidget2/Container/Frame.0/CentralWidgetFrame/EmptyView/scrollArea/qt_scrollarea_viewport/widgetFoo/ConvertActionsFrame/RenderView" 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/WidgetVisibility_Empty.png" />
<pqevent object="pqClientMainWindow/centralwidget/MultiViewWidget/CoreWidget/qt_tabwidget_tabbar" command="set_tab_with_text" arguments="Layout #1" />
</pqevents>
......@@ -83,7 +83,7 @@ public:
* Returns the interactive widget's visibility. Note that the widget may
* still not be visible in the view if the pqPropertyWidget is not
* selected. An interactive widget may be visible in the view when
* this->isWidgetVisible(), this->isisPanelVisible() and this->isSelected()
* this->isWidgetVisible(), this->isPanelVisible() and this->isSelected()
* all return true and the view is of the right type.
*/
bool isWidgetVisible() const { return this->WidgetVisibility; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment