HAL
hal::ActionFoldModule Class Reference

Folds a module. More...

#include <action_fold_module.h>

Inheritance diagram for hal::ActionFoldModule:
Inheritance graph
Collaboration diagram for hal::ActionFoldModule:
Collaboration graph

Public Member Functions

 ActionFoldModule (u32 moduleId=0)
 
QString tagname () const override
 
bool exec () override
 
void setContextId (u32 id)
 
void setPlacementHint (PlacementHint hint)
 
- Public Member Functions inherited from hal::UserActionCompound
 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
 

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::UserActionCompound
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
 

Detailed Description

Folds a module.

Shows the parent module as one single box rather than showing its content.

Undo Action: ActionUnfoldModule

Definition at line 42 of file action_fold_module.h.

Constructor & Destructor Documentation

◆ ActionFoldModule()

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

Action constructor.

Parameters
moduleId- The id of the module to fold.

Definition at line 23 of file action_fold_module.cpp.

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

Member Function Documentation

◆ exec()

◆ setContextId()

void hal::ActionFoldModule::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_fold_module.h.

References id.

Referenced by hal::ActionUnfoldModule::exec().

◆ setPlacementHint()

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

Configures the placement hints for the folded module.

Parameters
hint- The new placement hints.

Definition at line 68 of file action_fold_module.h.

Referenced by hal::ActionUnfoldModule::exec().

◆ tagname()

QString hal::ActionFoldModule::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 30 of file action_fold_module.cpp.

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


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