![]() |
HAL
|
The UserActionObject class represents a single object used in UserAction. More...
#include <user_action_object.h>
Public Member Functions | |
UserActionObject (u32 i=0, UserActionObjectType::ObjectType t=UserActionObjectType::None) | |
u32 | id () const |
UserActionObjectType::ObjectType | type () const |
void | writeToXml (QXmlStreamWriter &xmlOut) const |
void | readFromXml (QXmlStreamReader &xmlIn) |
QString | debugDump () const |
The UserActionObject class represents a single object used in UserAction.
An object is identified by unique id and type
Definition at line 78 of file user_action_object.h.
|
inline |
Object constructor, without arguments object of type None gets constructed.
i | - The id. |
t | - The type. |
Definition at line 87 of file user_action_object.h.
QString hal::UserActionObject::debugDump | ( | ) | const |
Short code for debugging purpose.
Definition at line 97 of file user_action_object.cpp.
References QString::arg(), hal::UserActionObjectType::Grouping, and hal::UserActionObjectType::None.
Referenced by hal::UserAction::debugDump().
|
inline |
Get the object's id.
Definition at line 97 of file user_action_object.h.
Referenced by hal::NetlistRelay::addToModuleDialog(), hal::GuiApiClasses::View::createNewDirectory(), hal::ActionAddBooleanFunction::exec(), hal::ActionAddItemsToObject::exec(), hal::ActionCreateObject::exec(), hal::ActionDeleteObject::exec(), hal::ActionFoldModule::exec(), hal::ActionMoveItem::exec(), hal::ActionMoveNode::exec(), hal::ActionPingroup::exec(), hal::ActionRemoveItemsFromObject::exec(), hal::ActionRenameObject::exec(), hal::ActionSetObjectColor::exec(), hal::ActionSetObjectData::exec(), hal::ActionSetObjectType::exec(), hal::ActionSetSelectionFocus::exec(), hal::ActionUnfoldModule::exec(), hal::SelectionDetailsWidget::groupingUnassignActionFactory(), hal::ActionSetSelectionFocus::hasModifications(), hal::GuiApiClasses::View::isolateInNew(), hal::GraphContextManager::openModuleInView(), hal::ActionSetSelectionFocus::setObject(), and hal::ActionUnfoldModule::setObject().
void hal::UserActionObject::readFromXml | ( | QXmlStreamReader & | xmlIn | ) |
Reads object member variables from xml attributes "id" and "type".
xmlIn | - The file to read from. |
Definition at line 113 of file user_action_object.cpp.
References QXmlStreamReader::attributes(), QStringRef::isEmpty(), QStringRef::isNull(), QStringRef::toInt(), QStringRef::toString(), and QXmlStreamAttributes::value().
Referenced by hal::UserActionManager::getParsedAction(), and hal::UserAction::readParentObjectFromXml().
|
inline |
Get the object's type.
Definition at line 107 of file user_action_object.h.
Referenced by hal::ActionAddItemsToObject::exec(), hal::ActionCreateObject::exec(), hal::ActionDeleteObject::exec(), hal::ActionFoldModule::exec(), hal::ActionMoveItem::exec(), hal::ActionMoveNode::exec(), hal::ActionPingroup::exec(), hal::ActionRemoveItemsFromObject::exec(), hal::ActionRenameObject::exec(), hal::ActionSetObjectColor::exec(), hal::ActionSetObjectData::exec(), hal::ActionSetObjectType::exec(), hal::ActionSetSelectionFocus::exec(), hal::ActionUnfoldModule::exec(), hal::SelectionDetailsWidget::groupingUnassignActionFactory(), hal::ActionSetSelectionFocus::hasModifications(), hal::ActionSetSelectionFocus::setObject(), hal::ActionUnfoldModule::setObject(), and hal::UserAction::writeParentObjectToXml().
void hal::UserActionObject::writeToXml | ( | QXmlStreamWriter & | xmlOut | ) | const |
Persist object to xml attributes "id" and "type".
xmlOut | - The file to write to. |
Definition at line 106 of file user_action_object.cpp.
References hal::UserActionObjectType::None, QString::number(), hal::UserActionObjectType::toString(), and QXmlStreamWriter::writeAttribute().
Referenced by hal::UserActionManager::setStopRecording(), and hal::UserAction::writeParentObjectToXml().