20#ifndef LIBREPCB_CORE_ASSEMBLYVARIANT_H
21#define LIBREPCB_CORE_ASSEMBLYVARIANT_H
26#include "../../serialization/serializableobjectlist.h"
27#include "../../types/fileproofname.h"
28#include "../../types/uuid.h"
59 const QString& description);
96 std::
size_t seed = 0) noexcept {
97 return ::qHash(key.get(), seed);
105 static constexpr const char* tagname =
"variant";
The AssemblyVariant class.
Definition assemblyvariant.h:44
QString mDescription
Definition assemblyvariant.h:88
Slot< AssemblyVariant, Event > OnEditedSlot
Definition assemblyvariant.h:52
Uuid mUuid
Definition assemblyvariant.h:86
const QString & getDescription() const noexcept
Definition assemblyvariant.h:65
Event
Definition assemblyvariant.h:47
FileProofName mName
Definition assemblyvariant.h:87
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:64
const Uuid & getUuid() const noexcept
Definition assemblyvariant.h:63
void setDescription(const QString &description) noexcept
Definition assemblyvariant.cpp:81
Signal< AssemblyVariant, Event > onEdited
Definition assemblyvariant.h:51
~AssemblyVariant() noexcept
Definition assemblyvariant.cpp:55
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:56
Definition occmodel.cpp:76
std::size_t qHash(const AttributeKey &key, std::size_t seed=0) noexcept
Definition attributekey.h:118
type_safe::constrained_type< QString, FileProofNameConstraint, FileProofNameVerifier > FileProofName
Definition fileproofname.h:88
Definition assemblyvariant.h:104