|
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 | GraphViewportPlotControllerTest |
| Testing GraphViewportPlotController. More... | |
Functions | |
| TEST_F (GraphViewportPlotControllerTest, addAndRemoveGraphs) | |
| Checks consequitive graph adding/removal. More... | |
| TEST_F (GraphViewportPlotControllerTest, addGraphAndSetItem) | |
| Check ::setItem() method when ViewPortItem contains graphs. More... | |
| TEST_F (GraphViewportPlotControllerTest, addGraphUndoRedo) | |
| Adding graph, then undo, then redo again. More... | |
| TEST_F (GraphViewportPlotControllerTest, addGraphUndoRedoMacro) | |
| Adding graph together with data in macro, then undo, then redo again. More... | |
| TEST_F (GraphViewportPlotControllerTest, addMoreGraphs) | |
| Checks consequitive graph adding/removal. More... | |
| TEST_F (GraphViewportPlotControllerTest, checkVisible) | |
| Checks The fucntionality of selection in the viewport. More... | |
| TEST_F (GraphViewportPlotControllerTest, initialState) | |
| Initial state. More... | |
| TEST_F (GraphViewportPlotControllerTest, setItem) | |
| Check ::setItem() method when no graphs exist. More... | |
| TEST_F (GraphViewportPlotControllerTest, switchBetweenTwoViewports) | |
| Two GraphViewportItem's and switch between them. More... | |
Implements class CLASS?
Definition in file graphviewportplotcontroller.test.cpp.
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| addAndRemoveGraphs | |||
| ) |
Checks consequitive graph adding/removal.
Definition at line 101 of file graphviewportplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::SessionModel::removeItem(), ModelView::Data1DItem::setAxis(), ModelView::GraphItem::setDataItem(), ModelView::ItemListenerBase::setItem(), and ModelView::ViewportItem::T_ITEMS.
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| addGraphAndSetItem | |||
| ) |
Check ::setItem() method when ViewPortItem contains graphs.
Definition at line 70 of file graphviewportplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::GraphItem::setDataItem(), and ModelView::ItemListenerBase::setItem().
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| addGraphUndoRedo | |||
| ) |
Adding graph, then undo, then redo again.
Definition at line 258 of file graphviewportplotcontroller.test.cpp.
References TestUtils::binCenters(), TestUtils::binValues(), ModelView::UndoStackInterface::count(), ModelView::UndoStackInterface::index(), ModelView::SessionModel::insertItem(), ModelView::UndoStackInterface::redo(), ModelView::Data1DItem::setAxis(), ModelView::ItemListenerBase::setItem(), ModelView::SessionModel::setUndoRedoEnabled(), ModelView::UndoStackInterface::undo(), and ModelView::SessionModel::undoStack().
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| addGraphUndoRedoMacro | |||
| ) |
Adding graph together with data in macro, then undo, then redo again.
Definition at line 324 of file graphviewportplotcontroller.test.cpp.
References ModelView::UndoStackInterface::beginMacro(), TestUtils::binCenters(), TestUtils::binValues(), ModelView::UndoStackInterface::count(), ModelView::GraphItem::dataItem(), ModelView::UndoStackInterface::endMacro(), ModelView::SessionItem::identifier(), ModelView::UndoStackInterface::index(), ModelView::SessionModel::insertItem(), ModelView::UndoStackInterface::redo(), ModelView::Data1DItem::setAxis(), ModelView::GraphItem::setDataItem(), ModelView::ItemListenerBase::setItem(), ModelView::SessionModel::setUndoRedoEnabled(), ModelView::SessionModel::topItem(), ModelView::UndoStackInterface::undo(), and ModelView::SessionModel::undoStack().
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| addMoreGraphs | |||
| ) |
Checks consequitive graph adding/removal.
Definition at line 160 of file graphviewportplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), and ModelView::ItemListenerBase::setItem().
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| checkVisible | |||
| ) |
Checks The fucntionality of selection in the viewport.
Definition at line 186 of file graphviewportplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), and ModelView::ItemListenerBase::setItem().
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| initialState | |||
| ) |
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| setItem | |||
| ) |
Check ::setItem() method when no graphs exist.
Definition at line 48 of file graphviewportplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), and ModelView::ItemListenerBase::setItem().
| TEST_F | ( | GraphViewportPlotControllerTest | , |
| switchBetweenTwoViewports | |||
| ) |
Two GraphViewportItem's and switch between them.
Definition at line 228 of file graphviewportplotcontroller.test.cpp.
References ModelView::SessionModel::insertItem(), ModelView::GraphItem::setDataItem(), and ModelView::ItemListenerBase::setItem().