|
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 | ToyItemsShapeGroupTest |
| Tests of toy ShapeGroup in the context of model and viewmodel. More... | |
Functions | |
| TEST_F (ToyItemsShapeGroupTest, currentItemNoConst) | |
| TEST_F (ToyItemsShapeGroupTest, inDefaultViewModelContext) | |
| ShapeGroup item in DefaultViewModel. More... | |
| TEST_F (ToyItemsShapeGroupTest, initialState) | |
| Toy multilayer as produced bo toy SampleModel. More... | |
| TEST_F (ToyItemsShapeGroupTest, inModelContext) | |
| TEST_F (ToyItemsShapeGroupTest, inPropertyViewModelContext) | |
| ShapeGroup item in PropertyViewModel. More... | |
| TEST_F (ToyItemsShapeGroupTest, setCurrentType) | |
| TEST_F (ToyItemsShapeGroupTest, setDataInModelContext) | |
| TEST_F (ToyItemsShapeGroupTest, viewItemsFromShapeGroup) | |
| ViewLabelItem and ViewDataItem from ShapeItem. More... | |
Implements class CLASS?
Definition in file toyitemsshapegroup.test.cpp.
| TEST_F | ( | ToyItemsShapeGroupTest | , |
| currentItemNoConst | |||
| ) |
Definition at line 79 of file toyitemsshapegroup.test.cpp.
References ModelView::GroupItem::currentItem(), ToyItems::SphereItem::P_RADIUS, ModelView::SessionItem::property(), and ModelView::SessionItem::setProperty().
| TEST_F | ( | ToyItemsShapeGroupTest | , |
| inDefaultViewModelContext | |||
| ) |
ShapeGroup item in DefaultViewModel.
Definition at line 147 of file toyitemsshapegroup.test.cpp.
References ModelView::ItemDataRole::DATA, ModelView::SessionModel::data(), ModelView::SessionModel::insertItem(), ModelView::ComboProperty::setCurrentIndex(), and ModelView::SessionModel::setData().
| TEST_F | ( | ToyItemsShapeGroupTest | , |
| initialState | |||
| ) |
Toy multilayer as produced bo toy SampleModel.
Definition at line 37 of file toyitemsshapegroup.test.cpp.
References ModelView::SessionItem::children(), ModelView::ComboProperty::currentIndex(), ModelView::GroupItem::currentIndex(), ModelView::GroupItem::currentItem(), ModelView::GroupItem::currentType(), ModelView::SessionItem::data(), ModelView::SessionItem::modelType(), ToyItems::Constants::SphereItemType, and ModelView::ComboProperty::values().
| TEST_F | ( | ToyItemsShapeGroupTest | , |
| inModelContext | |||
| ) |
Definition at line 86 of file toyitemsshapegroup.test.cpp.
References ModelView::SessionModel::insertItem().
| TEST_F | ( | ToyItemsShapeGroupTest | , |
| inPropertyViewModelContext | |||
| ) |
ShapeGroup item in PropertyViewModel.
Definition at line 198 of file toyitemsshapegroup.test.cpp.
References ModelView::ViewModelBase::columnCount(), ModelView::ItemDataRole::DATA, ModelView::SessionModel::data(), ModelView::ViewModelBase::index(), ModelView::SessionModel::insertItem(), ModelView::ViewModelBase::itemFromIndex(), ToyItems::CylinderItem::P_HEIGHT, ToyItems::CylinderItem::P_RADIUS, ToyItems::SphereItem::P_RADIUS, ModelView::TagInfo::propertyTag(), ModelView::SessionItem::registerTag(), ModelView::ViewModelBase::rowCount(), ModelView::ViewModel::sessionItemFromIndex(), ModelView::ComboProperty::setCurrentIndex(), ModelView::SessionModel::setData(), ModelView::ViewModel::setRootSessionItem(), and ToyItems::Constants::ShapeGroupItemType.
| TEST_F | ( | ToyItemsShapeGroupTest | , |
| setCurrentType | |||
| ) |
Definition at line 60 of file toyitemsshapegroup.test.cpp.
References ModelView::SessionItem::children(), ModelView::ComboProperty::currentIndex(), ModelView::GroupItem::currentIndex(), ModelView::GroupItem::currentItem(), ModelView::GroupItem::currentType(), ToyItems::Constants::CylinderItemType, ModelView::SessionItem::data(), ModelView::SessionItem::modelType(), ModelView::GroupItem::setCurrentType(), and ModelView::ComboProperty::values().
| TEST_F | ( | ToyItemsShapeGroupTest | , |
| setDataInModelContext | |||
| ) |
Definition at line 109 of file toyitemsshapegroup.test.cpp.
References ModelView::ComboProperty::currentIndex(), ToyItems::Constants::CylinderItemType, ModelView::ItemDataRole::DATA, ModelView::SessionModel::data(), ModelView::SessionModel::insertItem(), ModelView::ComboProperty::setCurrentIndex(), ModelView::SessionModel::setData(), and ToyItems::Constants::SphereItemType.
| TEST_F | ( | ToyItemsShapeGroupTest | , |
| viewItemsFromShapeGroup | |||
| ) |
ViewLabelItem and ViewDataItem from ShapeItem.
Definition at line 131 of file toyitemsshapegroup.test.cpp.
References ModelView::ComboProperty::currentIndex(), ModelView::ViewDataItem::data(), ModelView::SessionModel::insertItem(), and ToyItems::Constants::ShapeGroupItemType.