28 : mObjectName(objName), mParentId(0), mLinkedObjectId(0)
36 cryptoHash.
addData((
char*)(&mParentId),
sizeof(mParentId));
37 cryptoHash.
addData((
char*)(&mLinkedObjectId),
sizeof(mLinkedObjectId));
51 if (xmlIn.
name() ==
"objectname")
53 if (xmlIn.
name() ==
"parentid")
55 if (xmlIn.
name() ==
"linkedid")
62 bool standardUndo =
false;
78 log_warning(
"gui",
"Failed to create module '{}' with ID={} under parent ID={}.",
105 if (!grpModel)
return false;
UserActionFactory for ActionCreateObject.
UserAction * newAction() const
ActionCreateObjectFactory()
static ActionCreateObjectFactory * sFactory
QString tagname() const override
void readFromXml(QXmlStreamReader &xmlIn) override
void addToHash(QCryptographicHash &cryptoHash) const override
void writeToXml(QXmlStreamWriter &xmlOut) const override
ActionCreateObject(UserActionObjectType::ObjectType type=UserActionObjectType::None, const QString &objName=QString())
GroupingManagerWidget * getGroupingManagerWidget()
Logical container for modules, gates, and nets.
void setExclusiveModuleId(u32 id, bool emitSignal=true)
GraphContext * createNewContext(const QString &name, u32 parentId=0)
void setContextId(GraphContext *ctx, u32 ctxId)
QString nextDefaultName() const
ContextDirectory * createNewDirectory(const QString &name, u32 parentId=0)
Table that holds information about all groupings.
QString renameGrouping(u32 id, const QString &groupingName)
Grouping * addDefaultEntry()
u32 get_unique_module_id()
Net * create_net(const u32 net_id, const std::string &name)
Module * get_module_by_id(u32 module_id) const
Module * create_module(const u32 module_id, const std::string &name, Module *parent, const std::vector< Gate * > &gates={})
The UserActionFactory is the abstract base class for registration.
The UserAction class is the abstract base class for user interactions.
virtual void setObject(const UserActionObject &obj)
The UserActionObject class represents a single object used in UserAction.
UserActionObjectType::ObjectType type() const
#define log_warning(channel,...)
ContentManager * gContentManager
GraphContextManager * gGraphContextManager
void addData(const char *data, int length)
bool isEmpty() const const
QString number(int n, int base)
int toInt(bool *ok, int base) const const
std::string toStdString() const const
QByteArray toUtf8() const const
QStringRef name() const const
QString readElementText(QXmlStreamReader::ReadElementTextBehaviour behaviour)
bool readNextStartElement()
void writeTextElement(const QString &qualifiedName, const QString &text)