23 std::string generate_description(
const std::string& str,
int role);
70 std::string generate_description(
const std::string& str,
int role)
72 std::ostringstream ostr;
73 ostr <<
"Set value: " << str <<
", role:" << role;
Abstract command interface to manipulate SessionItem in model context.
SessionItem * itemFromPath(const Path &path) const
void setDescription(const std::string &text)
Sets command description.
CommandResult result() const
void setResult(const CommandResult &command_result)
Path pathFromItem(SessionItem *item) const
void setObsolete(bool flag)
Sets command obsolete flag.
Supports navigation through SessionModel.
The main object representing an editable/displayable/serializable entity.
~SetValueCommand() override
void undo_command() override
SetValueCommand(SessionItem *item, Variant value, int role)
std::unique_ptr< SetValueCommandImpl > p_impl
void execute_command() override
materialitems.h Collection of materials to populate MaterialModel.
int m_role
Value to set as a result of command execution.
SetValueCommandImpl(Variant value, int role)