QElectroTech 0.100.0-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
OpenElmtCommand Class Reference

#include <openelmtcommand.h>

Inherits QUndoCommand.

Collaboration diagram for OpenElmtCommand:
Collaboration graph

Public Member Functions

 OpenElmtCommand (const QDomDocument &document, QPointer< ElementScene > scene, QUndoCommand *parent=nullptr)
 
 ~OpenElmtCommand () override
 
virtual void undo () override
 
virtual void redo () override
 

Private Attributes

QDomDocument m_document
 
bool m_first_redo {true}
 
QPointer< ElementScenem_scene
 
QList< QGraphicsItem * > m_graphics_item
 

Constructor & Destructor Documentation

◆ OpenElmtCommand()

OpenElmtCommand::OpenElmtCommand ( const QDomDocument &  document,
QPointer< ElementScene scene,
QUndoCommand *  parent = nullptr 
)

◆ ~OpenElmtCommand()

OpenElmtCommand::~OpenElmtCommand ( )
override

Member Function Documentation

◆ redo()

void OpenElmtCommand::redo ( )
overridevirtual

◆ undo()

void OpenElmtCommand::undo ( )
overridevirtual

Member Data Documentation

◆ m_document

QDomDocument OpenElmtCommand::m_document
private

◆ m_first_redo

bool OpenElmtCommand::m_first_redo {true}
private

◆ m_graphics_item

QList<QGraphicsItem *> OpenElmtCommand::m_graphics_item
private

◆ m_scene

QPointer<ElementScene> OpenElmtCommand::m_scene
private

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