SILICON
Loading...
Searching...
No Matches
MetadataEditCommand Class Reference

#include <undoCommands.hpp>

Inheritance diagram for MetadataEditCommand:
Collaboration diagram for MetadataEditCommand:

Public Types

using ApplyFn = std::function<void(const std::string&)>

Public Member Functions

 MetadataEditCommand (QString text, std::string oldValue, std::string newValue, ApplyFn apply, QUndoCommand *parent=nullptr)
void undo () override
void redo () override

Private Attributes

std::string oldValue
std::string newValue
ApplyFn apply

Detailed Description

Definition at line 100 of file undoCommands.hpp.

Member Typedef Documentation

◆ ApplyFn

using ApplyFn = std::function<void(const std::string&)>

Definition at line 102 of file undoCommands.hpp.

Constructor & Destructor Documentation

◆ MetadataEditCommand()

MetadataEditCommand ( QString text,
std::string oldValue,
std::string newValue,
ApplyFn apply,
QUndoCommand * parent = nullptr )

Definition at line 470 of file undoCommands.cpp.

Member Function Documentation

◆ redo()

void redo ( )
override

Definition at line 485 of file undoCommands.cpp.

◆ undo()

void undo ( )
override

Definition at line 480 of file undoCommands.cpp.

Member Data Documentation

◆ apply

ApplyFn apply
private

Definition at line 112 of file undoCommands.hpp.

◆ newValue

std::string newValue
private

Definition at line 111 of file undoCommands.hpp.

◆ oldValue

std::string oldValue
private

Definition at line 110 of file undoCommands.hpp.


The documentation for this class was generated from the following files: