![]() |
HAL
|
Unfolds a module. More...
#include <action_unfold_module.h>
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) |
![]() | |
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 |
UserAction * | undoAction () const |
QString | debugDump () const |
void | setObjectLock (bool lock) |
void | setParentObjectLock (bool lock) |
bool | hasProjectModified () const |
Additional Inherited Members | |
![]() | |
UserAction () | |
void | writeParentObjectToXml (QXmlStreamWriter &xmlOut) const |
void | readParentObjectFromXml (QXmlStreamReader &xmlIn) |
![]() | |
static QString | setToText (const QSet< u32 > &set) |
static QSet< u32 > | setFromText (const QString &s) |
static QString | gridToText (const QHash< hal::Node, QPoint > &grid) |
static QHash< hal::Node, QPoint > | gridFromText (const QString &txt) |
![]() | |
UserActionObject | mObject |
UserActionObject | mParentObject |
int | mCompoundOrder |
UserAction * | mUndoAction |
qint64 | mTimeStamp |
bool | mObjectLock |
bool | mParentObjectLock |
bool | mProjectModified |
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.
hal::ActionUnfoldModule::ActionUnfoldModule | ( | u32 | moduleId = 0 | ) |
Action constructor.
moduleId | - The id of the module to unfold. |
Definition at line 27 of file action_unfold_module.cpp.
References hal::UserActionObjectType::Module, and setObject().
|
overridevirtual |
Executes user interaction and returns true on success. Note: Each implementation of exec() must include a call to the exec() method of base class to store the UserAction object in history and to transfer its ownership.
Reimplemented from hal::UserAction.
Definition at line 51 of file action_unfold_module.cpp.
References hal::PlacementHint::addGridPosition(), hal::UserAction::exec(), hal::gContentManager, hal::Module::get_gates(), hal::Netlist::get_module_by_id(), hal::Module::get_submodules(), hal::GraphContextManager::getContextById(), hal::ContentManager::getContextManagerWidget(), hal::ContextManagerWidget::getCurrentContext(), hal::GraphContext::getLayouter(), hal::gGraphContextManager, hal::gNetlist, hal::PlacementHint::GridPosition, hal::UserActionObject::id(), hal::NetLayoutPoint::isUndefined(), hal::UserAction::mObject, hal::Node::Module, hal::UserActionObjectType::Module, hal::UserAction::mUndoAction, hal::GraphLayouter::positonForNode(), hal::ActionFoldModule::setContextId(), hal::ActionFoldModule::setPlacementHint(), and hal::UserActionObject::type().
|
inline |
Sets the id of the context the module will be folded in.
id | - The context id |
Definition at line 61 of file action_unfold_module.h.
References id.
|
overridevirtual |
Setter for object argument of interaction.
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().
|
inline |
Configures the placement hints for the unfolded module.
hint | - The new placement hints. |
Definition at line 69 of file action_unfold_module.h.
|
overridevirtual |
The xml tagname for the action is purely virtual and needs to be implemented in derived class.
Implements hal::UserAction.
Definition at line 22 of file action_unfold_module.cpp.
References hal::ActionUnfoldModuleFactory::sFactory, and hal::UserActionFactory::tagname().