15 #ifndef BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SAMPLEEDITORCOMMANDS_H
16 #define BORNAGAIN_GUI_VIEW_SAMPLEDESIGNER_SAMPLEEDITORCOMMANDS_H
18 #include <QUndoCommand>
27 double newValue,
const QString& path, QUndoCommand* parent =
nullptr);
29 int id()
const override;
30 bool mergeWith(
const QUndoCommand* command)
override;
60 QUndoCommand* parent =
nullptr);
Command to add a layer to a sample.
SampleEditorController * m_ec
CommandAddLayer(SampleEditorController *ec, int atIndex, QUndoCommand *parent=nullptr)
Command to change a double value.
bool mergeWith(const QUndoCommand *command) override
SampleEditorController * m_ec
CommandChangeValue(const QString &label, SampleEditorController *ec, double oldValue, double newValue, const QString &path, QUndoCommand *parent=nullptr)
Command to remove a layer from a sample.
QByteArray m_layerItemBackup
SampleEditorController * m_ec
CommandRemoveLayer(SampleEditorController *ec, LayerItem *layerItem, QUndoCommand *parent=nullptr)
Class to modify a sample from the layer oriented sample editor.