Swiftray  1.0
Commands::JoinedCmd Class Reference

A group of commands that can be considered as a single step in undo/redo. More...

#include <command.h>

Inheritance diagram for Commands::JoinedCmd:
Commands::BaseCmd

Public Member Functions

 JoinedCmd ()=default
 
 JoinedCmd (initializer_list< BaseCmd * > undo_events)
 
 JoinedCmd (initializer_list< CmdPtr > undo_events)
 
void redo (Document *doc) override
 
void undo (Document *doc) override
 
- Public Member Functions inherited from Commands::BaseCmd
 BaseCmd ()=default
 

Public Attributes

QList< CmdPtrevents
 

Detailed Description

A group of commands that can be considered as a single step in undo/redo.

Constructor & Destructor Documentation

◆ JoinedCmd() [1/3]

Commands::JoinedCmd::JoinedCmd ( )
default

◆ JoinedCmd() [2/3]

Commands::JoinedCmd::JoinedCmd ( initializer_list< BaseCmd * >  undo_events)

◆ JoinedCmd() [3/3]

Commands::JoinedCmd::JoinedCmd ( initializer_list< CmdPtr undo_events)

Member Function Documentation

◆ redo()

void Commands::JoinedCmd::redo ( Document doc)
overridevirtual

Reimplemented from Commands::BaseCmd.

◆ undo()

void Commands::JoinedCmd::undo ( Document doc)
overridevirtual

Reimplemented from Commands::BaseCmd.

Member Data Documentation

◆ events

QList<CmdPtr> Commands::JoinedCmd::events

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