HAL
hal::UserActionCompound Class Reference

#include <user_action_compound.h>

Inheritance diagram for hal::UserActionCompound:
Inheritance graph
Collaboration diagram for hal::UserActionCompound:
Collaboration graph

Public Member Functions

 UserActionCompound ()
 
void addAction (UserAction *act)
 
QString tagname () const override
 
bool exec () override
 
void writeToXml (QXmlStreamWriter &xmlOut) const override
 
void readFromXml (QXmlStreamReader &xmlIn) override
 
void setUseCreatedObject ()
 
- Public Member Functions inherited from hal::UserAction
virtual ~UserAction ()
 
virtual UserActionObject object () const
 
virtual void setObject (const UserActionObject &obj)
 
int compoundOrder () const
 
void setCompoundOrder (int cmpord)
 
qint64 timeStamp () const
 
QString cryptographicHash (int recordNo) const
 
virtual void addToHash (QCryptographicHash &cryptoHash) const
 
UserActionundoAction () const
 
QString debugDump () const
 
void setObjectLock (bool lock)
 
void setParentObjectLock (bool lock)
 
bool hasProjectModified () const
 

Protected Attributes

QList< UserAction * > mActionList
 
bool mUseCreatedObject
 
- Protected Attributes inherited from hal::UserAction
UserActionObject mObject
 
UserActionObject mParentObject
 
int mCompoundOrder
 
UserActionmUndoAction
 
qint64 mTimeStamp
 
bool mObjectLock
 
bool mParentObjectLock
 
bool mProjectModified
 

Additional Inherited Members

- Protected Member Functions inherited from hal::UserAction
 UserAction ()
 
void writeParentObjectToXml (QXmlStreamWriter &xmlOut) const
 
void readParentObjectFromXml (QXmlStreamReader &xmlIn)
 
- Static Protected Member Functions inherited from hal::UserAction
static QString setToText (const QSet< u32 > &set)
 
static QSet< u32setFromText (const QString &s)
 
static QString gridToText (const QHash< hal::Node, QPoint > &grid)
 
static QHash< hal::Node, QPointgridFromText (const QString &txt)
 

Detailed Description

Definition at line 35 of file user_action_compound.h.

Constructor & Destructor Documentation

◆ UserActionCompound()

hal::UserActionCompound::UserActionCompound ( )

Definition at line 20 of file user_action_compound.cpp.

Member Function Documentation

◆ addAction()

◆ exec()

◆ readFromXml()

void hal::UserActionCompound::readFromXml ( QXmlStreamReader xmlIn)
overridevirtual

◆ setUseCreatedObject()

◆ tagname()

QString hal::UserActionCompound::tagname ( ) const
overridevirtual

The xml tagname for the action is purely virtual and needs to be implemented in derived class.

Returns
The tagname.

Implements hal::UserAction.

Definition at line 15 of file user_action_compound.cpp.

References hal::UserActionCompoundFactory::sFactory, and hal::UserActionFactory::tagname().

◆ writeToXml()

void hal::UserActionCompound::writeToXml ( QXmlStreamWriter xmlOut) const
overridevirtual

Persist user interaction in xml macro file.

Parameters
xmlOut- The xml writer.

Reimplemented from hal::UserAction.

Definition at line 49 of file user_action_compound.cpp.

References mActionList, mUseCreatedObject, QXmlStreamWriter::writeAttribute(), QXmlStreamWriter::writeEndElement(), and QXmlStreamWriter::writeStartElement().

Member Data Documentation

◆ mActionList

QList<UserAction*> hal::UserActionCompound::mActionList
protected

Definition at line 47 of file user_action_compound.h.

Referenced by addAction(), exec(), readFromXml(), and writeToXml().

◆ mUseCreatedObject

bool hal::UserActionCompound::mUseCreatedObject
protected

Definition at line 48 of file user_action_compound.h.

Referenced by exec(), readFromXml(), setUseCreatedObject(), and writeToXml().


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