QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
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.
 
 ~PasteDiagramCommand () override
 PasteDiagramCommand::~PasteDiagramCommand Destructor.
 
void undo () override
 PasteDiagramCommand::undo Undo this command.
 
void redo () override
 PasteDiagramCommand::redo Redo this command.
 

Private Member Functions

 PasteDiagramCommand (const PasteDiagramCommand &)
 

Private Attributes

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

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 paste
c: content to paste
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 command.

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: