HAL
hal::ActionUnfoldModule Class Reference

Unfolds a module. More...

#include <action_unfold_module.h>

Inheritance diagram for hal::ActionUnfoldModule:
Inheritance graph
Collaboration diagram for hal::ActionUnfoldModule:
Collaboration graph

Public Member Functions

 ActionUnfoldModule (u32 moduleId=0)
 
QString tagname () const override
 
bool exec () override
 
void setContextId (u32 id)
 
void setObject (const UserActionObject &obj) override
 
void setPlacementHint (PlacementHint hint)
 
- Public Member Functions inherited from hal::UserAction
virtual ~UserAction ()
 
virtual void writeToXml (QXmlStreamWriter &xmlOut) const
 
virtual void readFromXml (QXmlStreamReader &xmlIn)
 
virtual UserActionObject object () const
 
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
 

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)
 
- Protected Attributes inherited from hal::UserAction
UserActionObject mObject
 
UserActionObject mParentObject
 
int mCompoundOrder
 
UserActionmUndoAction
 
qint64 mTimeStamp
 
bool mObjectLock
 
bool mParentObjectLock
 
bool mProjectModified
 

Detailed Description

Unfolds a module.

Unfolds a module so that its content is shown in the GraphicsScene.

User Action: ActionFoldModule

Definition at line 42 of file action_unfold_module.h.

Constructor & Destructor Documentation

◆ ActionUnfoldModule()

hal::ActionUnfoldModule::ActionUnfoldModule ( u32  moduleId = 0)

Action constructor.

Parameters
moduleId- The id of the module to unfold.

Definition at line 27 of file action_unfold_module.cpp.

References hal::UserActionObjectType::Module, and setObject().

Member Function Documentation

◆ exec()

◆ setContextId()

void hal::ActionUnfoldModule::setContextId ( u32  id)
inline

Sets the id of the context the module will be folded in.

Parameters
id- The context id

Definition at line 61 of file action_unfold_module.h.

References id.

◆ setObject()

void hal::ActionUnfoldModule::setObject ( const UserActionObject obj)
overridevirtual

Setter for object argument of interaction.

Parameters
obj- The object.

Reimplemented from hal::UserAction.

Definition at line 34 of file action_unfold_module.cpp.

References hal::UserActionObjectType::ContextView, hal::UserActionObject::id(), hal::UserActionObjectType::Module, hal::UserActionObjectType::None, hal::UserAction::setObject(), and hal::UserActionObject::type().

Referenced by ActionUnfoldModule().

◆ setPlacementHint()

void hal::ActionUnfoldModule::setPlacementHint ( PlacementHint  hint)
inline

Configures the placement hints for the unfolded module.

Parameters
hint- The new placement hints.

Definition at line 69 of file action_unfold_module.h.

◆ tagname()

QString hal::ActionUnfoldModule::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 22 of file action_unfold_module.cpp.

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


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