20#ifndef LIBREPCB_CORE_ASSEMBLYVARIANT_H
21#define LIBREPCB_CORE_ASSEMBLYVARIANT_H
26#include "../../qtcompat.h"
27#include "../../serialization/serializableobjectlist.h"
28#include "../../types/fileproofname.h"
29#include "../../types/uuid.h"
60 const QString& description);
106 static constexpr const char* tagname =
"variant";
The AssemblyVariant class.
Definition: assemblyvariant.h:45
QString mDescription
Definition: assemblyvariant.h:89
Slot< AssemblyVariant, Event > OnEditedSlot
Definition: assemblyvariant.h:53
Uuid mUuid
Definition: assemblyvariant.h:87
const QString & getDescription() const noexcept
Definition: assemblyvariant.h:66
Event
Definition: assemblyvariant.h:48
FileProofName mName
Definition: assemblyvariant.h:88
QString getDisplayText() const noexcept
Definition: assemblyvariant.cpp:62
void setName(const FileProofName &name) noexcept
Definition: assemblyvariant.cpp:74
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: assemblyvariant.cpp:92
const FileProofName & getName() const noexcept
Definition: assemblyvariant.h:65
const Uuid & getUuid() const noexcept
Definition: assemblyvariant.h:64
void setDescription(const QString &description) noexcept
Definition: assemblyvariant.cpp:81
Signal< AssemblyVariant, Event > onEdited
Definition: assemblyvariant.h:52
~AssemblyVariant() noexcept
Definition: assemblyvariant.cpp:55
Qt compatibility helper class.
Definition: qtcompat.h:43
The SExpression class.
Definition: sexpression.h:69
The Signal class is used to emit signals on non-QObject derived classes.
Definition: signalslot.h:65
The Slot class is used to receive signals from non-QObject derived classes.
Definition: signalslot.h:170
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Definition: occmodel.cpp:77
QtCompat::Hash qHash(const std::shared_ptr< AssemblyVariant > &key, QtCompat::Hash seed=0) noexcept
Definition: assemblyvariant.h:96
QtCompat::Hash qHash(const AttributeKey &key, QtCompat::Hash seed=0) noexcept
Definition: attributekey.h:119
type_safe::constrained_type< QString, FileProofNameConstraint, FileProofNameVerifier > FileProofName
Definition: fileproofname.h:89
Definition: assemblyvariant.h:105