BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Command to change a double value.
Definition at line 24 of file SampleEditorCommands.h.
Public Member Functions | |
CommandChangeValue (const QString &label, SampleEditorController *ec, double oldValue, double newValue, const QString &path, QUndoCommand *parent=nullptr) | |
int | id () const override |
bool | mergeWith (const QUndoCommand *command) override |
void | redo () override |
void | undo () override |
Private Attributes | |
SampleEditorController * | m_ec |
bool | m_isFirst = true |
double | m_newValue |
double | m_oldValue |
QString | m_path |
CommandChangeValue::CommandChangeValue | ( | const QString & | label, |
SampleEditorController * | ec, | ||
double | oldValue, | ||
double | newValue, | ||
const QString & | path, | ||
QUndoCommand * | parent = nullptr |
||
) |
Definition at line 76 of file SampleEditorCommands.cpp.
|
override |
Definition at line 88 of file SampleEditorCommands.cpp.
|
override |
Definition at line 93 of file SampleEditorCommands.cpp.
References m_newValue, m_path, and other.
|
override |
Definition at line 107 of file SampleEditorCommands.cpp.
References m_ec, m_isFirst, m_newValue, m_path, and SampleEditorController::setDoubleFromUndo().
|
override |
Definition at line 115 of file SampleEditorCommands.cpp.
References m_ec, m_oldValue, m_path, and SampleEditorController::setDoubleFromUndo().
|
private |
Definition at line 36 of file SampleEditorCommands.h.
|
private |
Definition at line 40 of file SampleEditorCommands.h.
Referenced by redo().
|
private |
Definition at line 38 of file SampleEditorCommands.h.
Referenced by mergeWith(), and redo().
|
private |
Definition at line 37 of file SampleEditorCommands.h.
Referenced by undo().
|
private |
Definition at line 39 of file SampleEditorCommands.h.
Referenced by mergeWith(), redo(), and undo().