|
BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Command to remove a layer from a sample.
Definition at line 57 of file SampleEditorCommands.h.
Public Member Functions | |
| CommandRemoveLayer (SampleEditorController *ec, LayerItem *layerItem, QUndoCommand *parent=nullptr) | |
| void | redo () override |
| void | undo () override |
Private Attributes | |
| SampleEditorController * | m_ec |
| int | m_indexOfLayer |
| QByteArray | m_layerItemBackup |
| CommandRemoveLayer::CommandRemoveLayer | ( | SampleEditorController * | ec, |
| LayerItem * | layerItem, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
Definition at line 30 of file SampleEditorCommands.cpp.
References GUI::Util::createBackup(), MultiLayerItem::layers(), m_indexOfLayer, m_layerItemBackup, and SampleEditorController::sampleItem().
|
override |
Definition at line 40 of file SampleEditorCommands.cpp.
References m_ec, m_indexOfLayer, and SampleEditorController::removeLayerFromUndo().
|
override |
Definition at line 45 of file SampleEditorCommands.cpp.
References MultiLayerItem::addLayer(), m_ec, m_indexOfLayer, m_layerItemBackup, SampleEditorController::modified(), MultiLayerForm::onLayerAdded(), GUI::Util::restoreBackup(), SampleEditorController::sampleForm(), and SampleEditorController::sampleItem().
|
private |
Definition at line 66 of file SampleEditorCommands.h.
|
private |
Definition at line 68 of file SampleEditorCommands.h.
Referenced by CommandRemoveLayer(), redo(), and undo().
|
private |
Definition at line 67 of file SampleEditorCommands.h.
Referenced by CommandRemoveLayer(), and undo().