|
BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
View to tests QListView working with ComponentProxyModel. More...
Public Member Functions | |
| TestComponentView (MainWindow *mainWindow=nullptr) | |
Private Slots | |
| void | onAddItemRequest () |
| void | onExpandRequest () |
| void | onUpdateRequest () |
Private Member Functions | |
| QWidget * | componentBoxPanel () |
| QWidget * | componentTreePanel () |
| void | init_source () |
| Inserts test items into source model. More... | |
| void | onSelectionChanged (const QItemSelection &selected, const QItemSelection &) |
Private Attributes | |
| QPushButton * | m_addItemButton |
| ComponentEditor * | m_componentFlat |
| ComponentEditor * | m_componentTree |
| SessionModelDelegate * | m_delegate |
| QPushButton * | m_expandButton |
| bool | m_isExpaned |
| MainWindow * | m_mainWindow |
| MaterialModel * | m_materialModel |
| SampleModel * | m_sampleModel |
| QTreeView * | m_sourceTree |
| QSplitter * | m_splitter |
| QPushButton * | m_updateButton |
View to tests QListView working with ComponentProxyModel.
Definition at line 35 of file TestComponentView.h.
| TestComponentView::TestComponentView | ( | MainWindow * | mainWindow = nullptr | ) |
Definition at line 41 of file TestComponentView.cpp.
References componentBoxPanel(), componentTreePanel(), init_source(), m_addItemButton, m_delegate, m_expandButton, m_sampleModel, m_sourceTree, m_splitter, m_updateButton, onAddItemRequest(), onExpandRequest(), onSelectionChanged(), onUpdateRequest(), and StyleUtils::setPropertyStyle().
|
private |
Definition at line 157 of file TestComponentView.cpp.
References m_componentFlat.
Referenced by TestComponentView().
|
private |
Definition at line 148 of file TestComponentView.cpp.
References m_componentTree.
Referenced by TestComponentView().
|
private |
Inserts test items into source model.
Definition at line 122 of file TestComponentView.cpp.
References SampleBuilderFactory::createSampleByName(), SessionModel::insertItem(), m_materialModel, m_sampleModel, and GUIObjectBuilder::populateSampleModel().
Referenced by TestComponentView().
|
privateslot |
Definition at line 93 of file TestComponentView.cpp.
References SessionModel::insertItem(), and m_sampleModel.
Referenced by TestComponentView().
|
privateslot |
Definition at line 98 of file TestComponentView.cpp.
References m_isExpaned, m_sourceTree, and m_splitter.
Referenced by TestComponentView().
|
private |
Definition at line 133 of file TestComponentView.cpp.
References SessionModel::itemForIndex(), m_componentFlat, m_componentTree, m_sampleModel, and ComponentEditor::setItem().
Referenced by TestComponentView().
|
privateslot |
Definition at line 88 of file TestComponentView.cpp.
Referenced by TestComponentView().
|
private |
Definition at line 58 of file TestComponentView.h.
Referenced by TestComponentView().
|
private |
Definition at line 56 of file TestComponentView.h.
Referenced by componentBoxPanel(), and onSelectionChanged().
|
private |
Definition at line 55 of file TestComponentView.h.
Referenced by componentTreePanel(), and onSelectionChanged().
|
private |
Definition at line 61 of file TestComponentView.h.
Referenced by TestComponentView().
|
private |
Definition at line 59 of file TestComponentView.h.
Referenced by TestComponentView().
|
private |
Definition at line 62 of file TestComponentView.h.
Referenced by onExpandRequest().
|
private |
Definition at line 51 of file TestComponentView.h.
|
private |
Definition at line 53 of file TestComponentView.h.
Referenced by init_source().
|
private |
Definition at line 52 of file TestComponentView.h.
Referenced by TestComponentView(), init_source(), onAddItemRequest(), and onSelectionChanged().
|
private |
Definition at line 54 of file TestComponentView.h.
Referenced by TestComponentView(), and onExpandRequest().
|
private |
Definition at line 60 of file TestComponentView.h.
Referenced by TestComponentView(), and onExpandRequest().
|
private |
Definition at line 57 of file TestComponentView.h.
Referenced by TestComponentView().