QElectroTech  0.8-dev
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PasteDiagramCommand Class Reference

The PasteDiagramCommand class This command pastes some content onto a particular diagram. More...

#include <diagramcommands.h>

Inherits QUndoCommand.

Collaboration diagram for PasteDiagramCommand:
Collaboration graph

Public Member Functions

 PasteDiagramCommand (Diagram *, const DiagramContent &, QUndoCommand *=nullptr)
 PasteDiagramCommand::PasteDiagramCommand Constructor. More...
 
 ~PasteDiagramCommand () override
 PasteDiagramCommand::~PasteDiagramCommand Destructor. More...
 
void undo () override
 PasteDiagramCommand::undo Undo this command. More...
 
void redo () override
 PasteDiagramCommand::redo Redo this commnand. More...
 

Private Member Functions

 PasteDiagramCommand (const PasteDiagramCommand &)
 

Private Attributes

DiagramContent content
 pasted content More...
 
Diagramdiagram
 diagram content is pasted onto More...
 
int filter
 filter stating what kinds of items should be pasted More...
 
bool first_redo
 prevent the first call to redo() More...
 

Detailed Description

The PasteDiagramCommand class This command pastes some content onto a particular diagram.

Constructor & Destructor Documentation

◆ PasteDiagramCommand() [1/2]

PasteDiagramCommand::PasteDiagramCommand ( Diagram dia,
const DiagramContent c,
QUndoCommand *  parent = nullptr 
)

PasteDiagramCommand::PasteDiagramCommand Constructor.

Parameters
dia: diagram where we must to paste
c: content to past
parent: parent undo command
Here is the call graph for this function:

◆ ~PasteDiagramCommand()

PasteDiagramCommand::~PasteDiagramCommand ( )
override

PasteDiagramCommand::~PasteDiagramCommand Destructor.

Here is the call graph for this function:

◆ PasteDiagramCommand() [2/2]

PasteDiagramCommand::PasteDiagramCommand ( const PasteDiagramCommand )
private

Member Function Documentation

◆ redo()

void PasteDiagramCommand::redo ( )
override

PasteDiagramCommand::redo Redo this commnand.

Here is the call graph for this function:

◆ undo()

void PasteDiagramCommand::undo ( )
override

PasteDiagramCommand::undo Undo this command.

Here is the call graph for this function:

Member Data Documentation

◆ content

DiagramContent PasteDiagramCommand::content
private

pasted content

◆ diagram

Diagram* PasteDiagramCommand::diagram
private

diagram content is pasted onto

◆ filter

int PasteDiagramCommand::filter
private

filter stating what kinds of items should be pasted

◆ first_redo

bool PasteDiagramCommand::first_redo
private

prevent the first call to redo()


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