BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Handles user actions applied to material table. More...
Classes | |
struct | MaterialEditorActionsImpl |
Public Member Functions | |
MaterialEditorActions (QObject *parent=nullptr) | |
~MaterialEditorActions () | |
void | onAddMaterial () |
void | onCloneMaterial () |
Processes request to clone selected materials. More... | |
void | onExport () |
void | onImport () |
void | onMoveDown () |
void | onMoveUp () |
void | onRemoveMaterial () |
void | setMaterialSelectionModel (MaterialSelectionModel *selection_model) |
void | setModel (MaterialModel *model) |
Private Attributes | |
std::unique_ptr< MaterialEditorActionsImpl > | p_impl |
Handles user actions applied to material table.
Belongs to MaterialEditor.
Definition at line 30 of file materialeditoractions.h.
gui2::MaterialEditorActions::MaterialEditorActions | ( | QObject * | parent = nullptr | ) |
Definition at line 53 of file materialeditoractions.cpp.
|
default |
void gui2::MaterialEditorActions::onAddMaterial | ( | ) |
Definition at line 68 of file materialeditoractions.cpp.
References p_impl.
Referenced by gui2::MaterialEditorToolBar::MaterialEditorToolBar().
void gui2::MaterialEditorActions::onCloneMaterial | ( | ) |
Processes request to clone selected materials.
Definition at line 80 of file materialeditoractions.cpp.
References p_impl.
Referenced by gui2::MaterialEditorToolBar::MaterialEditorToolBar().
void gui2::MaterialEditorActions::onExport | ( | ) |
Definition at line 120 of file materialeditoractions.cpp.
References p_impl.
Referenced by gui2::MaterialEditorToolBar::MaterialEditorToolBar().
void gui2::MaterialEditorActions::onImport | ( | ) |
Definition at line 176 of file materialeditoractions.cpp.
Referenced by gui2::MaterialEditorToolBar::MaterialEditorToolBar().
void gui2::MaterialEditorActions::onMoveDown | ( | ) |
Definition at line 109 of file materialeditoractions.cpp.
References ModelView::Utils::MoveDown(), and p_impl.
Referenced by gui2::MaterialEditorToolBar::MaterialEditorToolBar().
void gui2::MaterialEditorActions::onMoveUp | ( | ) |
Definition at line 100 of file materialeditoractions.cpp.
References ModelView::Utils::MoveUp(), and p_impl.
Referenced by gui2::MaterialEditorToolBar::MaterialEditorToolBar().
void gui2::MaterialEditorActions::onRemoveMaterial | ( | ) |
Definition at line 91 of file materialeditoractions.cpp.
References ModelView::Utils::DeleteItemFromModel(), and p_impl.
Referenced by gui2::MaterialEditorToolBar::MaterialEditorToolBar().
void gui2::MaterialEditorActions::setMaterialSelectionModel | ( | MaterialSelectionModel * | selection_model | ) |
Definition at line 63 of file materialeditoractions.cpp.
References p_impl.
Referenced by gui2::MaterialEditor::setModels().
void gui2::MaterialEditorActions::setModel | ( | MaterialModel * | model | ) |
Definition at line 58 of file materialeditoractions.cpp.
References p_impl.
Referenced by gui2::MaterialEditor::setModels().
|
private |
Definition at line 51 of file materialeditoractions.h.
Referenced by onAddMaterial(), onCloneMaterial(), onExport(), onMoveDown(), onMoveUp(), onRemoveMaterial(), setMaterialSelectionModel(), and setModel().