BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Implements class CLASS? More...
Go to the source code of this file.
Classes | |
class | ViewportAxisPlotControllerTest |
Testing AxisPlotControllers. More... | |
Functions | |
TEST_F (ViewportAxisPlotControllerTest, changeAxisTitle) | |
Controller subscribed to ViewportAxisItem. More... | |
TEST_F (ViewportAxisPlotControllerTest, changeQCPAxis) | |
Controller subscribed to ViewportAxisItem. More... | |
TEST_F (ViewportAxisPlotControllerTest, changeViewportAxisItem) | |
Controller subscribed to ViewportAxisItem. More... | |
TEST_F (ViewportAxisPlotControllerTest, changeViewportAxisItemMapping) | |
Controller subscribed to ViewportAxisItem. More... | |
TEST_F (ViewportAxisPlotControllerTest, changeViewportAxisItemSignaling) | |
Controller subscribed to ViewportAxisItem. More... | |
TEST_F (ViewportAxisPlotControllerTest, changeViewportAxisItemYCase) | |
Controller subscribed to ViewportAxisItem. More... | |
TEST_F (ViewportAxisPlotControllerTest, changeViewportLogz) | |
Controller subscribed to ViewportAxisItem. More... | |
TEST_F (ViewportAxisPlotControllerTest, initialState) | |
Initial state. More... | |
TEST_F (ViewportAxisPlotControllerTest, oneControllerTwoAxisItems) | |
Model with two AxisItem's. Controller first is subscribed to one item, then to another. More... | |
TEST_F (ViewportAxisPlotControllerTest, setViewportAxisItem) | |
Controller subscribed to ViewportAxisItem. More... | |
TEST_F (ViewportAxisPlotControllerTest, viewportLogz) | |
Set ViewportAxisItem logz, subscribe controller and check that QCPAxis has it. More... | |
Implements class CLASS?
Definition in file viewportaxisplotcontroller.test.cpp.
TEST_F | ( | ViewportAxisPlotControllerTest | , |
changeAxisTitle | |||
) |
Controller subscribed to ViewportAxisItem.
Change ViewportAxisItem title and check that QCPAxis got new values.
Definition at line 414 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::TextItem::P_TEXT, ModelView::ViewportAxisItem::P_TITLE, ModelView::ItemListenerBase::setItem(), and ModelView::SessionItem::setProperty().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
changeQCPAxis | |||
) |
Controller subscribed to ViewportAxisItem.
Change QCPAxis and check that ViewportAxisItem got new values.
Definition at line 118 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::BasicAxisItem::P_MAX, ModelView::BasicAxisItem::P_MIN, ModelView::ItemListenerBase::setItem(), and ModelView::SessionItem::setProperty().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
changeViewportAxisItem | |||
) |
Controller subscribed to ViewportAxisItem.
Change ViewportAxisItem and check that QCPAxis got new values.
Definition at line 154 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::BasicAxisItem::P_MAX, ModelView::BasicAxisItem::P_MIN, ModelView::ItemListenerBase::setItem(), and ModelView::SessionItem::setProperty().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
changeViewportAxisItemMapping | |||
) |
Controller subscribed to ViewportAxisItem.
Change ViewportAxisItem and check that QCPAxis got new values. Check correctness that there is not extra looping and item doesn't start changing many times
Definition at line 238 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::BasicAxisItem::P_MAX, ModelView::BasicAxisItem::P_MIN, ModelView::ItemListenerBase::setItem(), and ModelView::SessionItem::setProperty().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
changeViewportAxisItemSignaling | |||
) |
Controller subscribed to ViewportAxisItem.
Change ViewportAxisItem and check that QCPAxis got new values. Check correctness of signals issued by QCPAxisItem.
Definition at line 187 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::BasicAxisItem::P_MAX, ModelView::BasicAxisItem::P_MIN, ModelView::ItemListenerBase::setItem(), and ModelView::SessionItem::setProperty().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
changeViewportAxisItemYCase | |||
) |
Controller subscribed to ViewportAxisItem.
Change ViewportAxisItem and check that QCPAxis got new values. Same test as before, only QCPAxis y-axis checked.
Definition at line 317 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::BasicAxisItem::P_MAX, ModelView::BasicAxisItem::P_MIN, ModelView::ItemListenerBase::setItem(), and ModelView::SessionItem::setProperty().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
changeViewportLogz | |||
) |
Controller subscribed to ViewportAxisItem.
Change ViewportAxisItem logz and check that QCPAxis got new values.
Definition at line 290 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::ViewportAxisItem::P_IS_LOG, and ModelView::ItemListenerBase::setItem().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
initialState | |||
) |
TEST_F | ( | ViewportAxisPlotControllerTest | , |
oneControllerTwoAxisItems | |||
) |
Model with two AxisItem's. Controller first is subscribed to one item, then to another.
Definition at line 348 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionItem::childrenCount(), ModelView::SessionModel::insertItem(), ModelView::BasicAxisItem::P_MAX, ModelView::BasicAxisItem::P_MIN, ModelView::SessionModel::removeItem(), ModelView::SessionModel::rootItem(), and ModelView::SessionItem::setProperty().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
setViewportAxisItem | |||
) |
Controller subscribed to ViewportAxisItem.
Checking that QCPAxis get same parameters as in AxisItem.
Definition at line 83 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::BasicAxisItem::P_MAX, ModelView::BasicAxisItem::P_MIN, ModelView::ItemListenerBase::setItem(), and ModelView::SessionItem::setProperty().
TEST_F | ( | ViewportAxisPlotControllerTest | , |
viewportLogz | |||
) |
Set ViewportAxisItem logz, subscribe controller and check that QCPAxis has it.
Definition at line 269 of file viewportaxisplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::ViewportAxisItem::P_IS_LOG, ModelView::ItemListenerBase::setItem(), and ModelView::SessionItem::setProperty().