15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_COMMANDS_ABSTRACTITEMCOMMAND_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_COMMANDS_ABSTRACTITEMCOMMAND_H
19 #include "mvvm/model_export.h"
43 bool isObsolete()
const;
45 std::string description()
const;
50 void setObsolete(
bool flag);
51 void setDescription(
const std::string& text);
62 std::unique_ptr<AbstractItemCommandImpl>
p_impl;
Abstract command interface to manipulate SessionItem in model context.
virtual void execute_command()=0
virtual void undo_command()=0
AbstractItemCommand(const AbstractItemCommand &other)=delete
std::unique_ptr< AbstractItemCommandImpl > p_impl
virtual ~AbstractItemCommand()
AbstractItemCommand & operator=(const AbstractItemCommand &other)=delete
Supports navigation through SessionModel.
The main object representing an editable/displayable/serializable entity.
Main class to hold hierarchy of SessionItem objects.
materialitems.h Collection of materials to populate MaterialModel.
std::variant< bool, ModelView::SessionItem * > CommandResult
Results of command execution.