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

#include <undoCommands.hpp>

Inheritance diagram for ResizeComponentCommand:
Collaboration diagram for ResizeComponentCommand:

Public Member Functions

 ResizeComponentCommand (GraphicalComponent *component, ComponentResizeState before, ComponentResizeState after)
void undo () override
void redo () override

Private Member Functions

void apply (const ComponentResizeState &state)

Private Attributes

DiagramScene * scene
std::string documentPath
uint64_t uiId
ComponentResizeState before
ComponentResizeState after
bool skipInitialRedo = true

Detailed Description

Definition at line 189 of file undoCommands.hpp.

Constructor & Destructor Documentation

◆ ResizeComponentCommand()

ResizeComponentCommand ( GraphicalComponent * component,
ComponentResizeState before,
ComponentResizeState after )

Definition at line 293 of file undoCommands.cpp.

Member Function Documentation

◆ apply()

void apply ( const ComponentResizeState & state)
private

Definition at line 305 of file undoCommands.cpp.

◆ redo()

void redo ( )
override

Definition at line 322 of file undoCommands.cpp.

◆ undo()

void undo ( )
override

Definition at line 317 of file undoCommands.cpp.

Member Data Documentation

◆ after

ComponentResizeState after
private

Definition at line 202 of file undoCommands.hpp.

◆ before

ComponentResizeState before
private

Definition at line 201 of file undoCommands.hpp.

◆ documentPath

std::string documentPath
private

Definition at line 199 of file undoCommands.hpp.

◆ scene

DiagramScene* scene
private

Definition at line 198 of file undoCommands.hpp.

◆ skipInitialRedo

bool skipInitialRedo = true
private

Definition at line 203 of file undoCommands.hpp.

◆ uiId

uint64_t uiId
private

Definition at line 200 of file undoCommands.hpp.


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