![]() |
HAL
|
#include <user_action_compound.h>
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 () |
![]() | |
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 |
UserAction * | undoAction () const |
QString | debugDump () const |
void | setObjectLock (bool lock) |
void | setParentObjectLock (bool lock) |
bool | hasProjectModified () const |
Protected Attributes | |
QList< UserAction * > | mActionList |
bool | mUseCreatedObject |
![]() | |
UserActionObject | mObject |
UserActionObject | mParentObject |
int | mCompoundOrder |
UserAction * | mUndoAction |
qint64 | mTimeStamp |
bool | mObjectLock |
bool | mParentObjectLock |
bool | mProjectModified |
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) |
Definition at line 35 of file user_action_compound.h.
hal::UserActionCompound::UserActionCompound | ( | ) |
Definition at line 20 of file user_action_compound.cpp.
void hal::UserActionCompound::addAction | ( | UserAction * | act | ) |
Definition at line 24 of file user_action_compound.cpp.
References mActionList, and hal::UserAction::setCompoundOrder().
Referenced by hal::NetlistRelay::addToModuleDialog(), hal::GroupingManagerWidget::assignElementsToGroupingDialog(), hal::NetlistRelay::deleteModule(), hal::ActionAddItemsToObject::exec(), hal::ActionDeleteObject::exec(), hal::ActionFoldModule::exec(), hal::GraphGraphicsView::handleRemoveFromView(), hal::GraphGraphicsView::handleShortestPath(), hal::GuiApiClasses::View::isolateInNew(), hal::GroupingManagerWidget::newGroupingByDistance(), hal::GroupingManagerWidget::newGroupingSuccOrPred(), hal::GraphContextManager::openGateInView(), hal::GraphContextManager::openModuleInView(), hal::GraphContextManager::openNetEndpointsInView(), and hal::SelectionDetailsWidget::selectionToGroupingAction().
|
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 30 of file user_action_compound.cpp.
References mActionList, mUseCreatedObject, and hal::UserAction::setObject().
Referenced by hal::NetlistRelay::addToModuleDialog(), hal::GroupingManagerWidget::assignElementsToGroupingDialog(), hal::NetlistRelay::deleteModule(), hal::ActionFoldModule::exec(), hal::GraphGraphicsView::handleRemoveFromView(), hal::GraphGraphicsView::handleShortestPath(), hal::GroupingManagerWidget::newGroupingByDistance(), hal::GroupingManagerWidget::newGroupingSuccOrPred(), hal::GraphContextManager::openGateInView(), hal::GraphContextManager::openModuleInView(), hal::GraphContextManager::openNetEndpointsInView(), and hal::SelectionDetailsWidget::selectionToGroupingAction().
|
overridevirtual |
Reads user interaction as well as arguments from xml macro file.
xmlIn | - The xml reader. |
Reimplemented from hal::UserAction.
Definition at line 58 of file user_action_compound.cpp.
References QXmlStreamReader::atEnd(), QXmlStreamReader::attributes(), hal::UserActionManager::getParsedAction(), hal::UserActionManager::instance(), QXmlStreamReader::isEndElement(), QXmlStreamReader::isStartElement(), mActionList, mUseCreatedObject, QXmlStreamReader::name(), QXmlStreamReader::readNext(), and QXmlStreamAttributes::value().
|
inline |
Definition at line 44 of file user_action_compound.h.
References mUseCreatedObject.
Referenced by hal::NetlistRelay::addToModuleDialog(), hal::GroupingManagerWidget::assignElementsToGroupingDialog(), hal::ActionDeleteObject::exec(), hal::GraphGraphicsView::handleRemoveFromView(), hal::GraphGraphicsView::handleShortestPath(), hal::GuiApiClasses::View::isolateInNew(), hal::GroupingManagerWidget::newGroupingByDistance(), hal::GroupingManagerWidget::newGroupingSuccOrPred(), hal::GraphContextManager::openGateInView(), hal::GraphContextManager::openModuleInView(), hal::GraphContextManager::openNetEndpointsInView(), and hal::SelectionDetailsWidget::selectionToGroupingAction().
|
overridevirtual |
The xml tagname for the action is purely virtual and needs to be implemented in derived class.
Implements hal::UserAction.
Definition at line 15 of file user_action_compound.cpp.
References hal::UserActionCompoundFactory::sFactory, and hal::UserActionFactory::tagname().
|
overridevirtual |
Persist user interaction in xml macro file.
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().
|
protected |
Definition at line 47 of file user_action_compound.h.
Referenced by addAction(), exec(), readFromXml(), and writeToXml().
|
protected |
Definition at line 48 of file user_action_compound.h.
Referenced by exec(), readFromXml(), setUseCreatedObject(), and writeToXml().