20#ifndef LIBREPCB_CORE_PACKAGEMODEL_H
21#define LIBREPCB_CORE_PACKAGEMODEL_H
26#include "../../serialization/serializableobjectlist.h"
27#include "../../types/elementname.h"
82 return !(*
this == rhs);
96 static constexpr const char*
tagname =
"3d_model";
Represents a 3D model of a librepcb::Package.
Definition packagemodel.h:43
Slot< PackageModel, Event > OnEditedSlot
Definition packagemodel.h:53
PackageModel & operator=(const PackageModel &rhs) noexcept
Definition packagemodel.cpp:86
QString getFileName() const noexcept
Definition packagemodel.h:65
const ElementName & getName() const noexcept
Definition packagemodel.h:64
Uuid mUuid
Definition packagemodel.h:87
~PackageModel() noexcept
Definition packagemodel.cpp:50
Event
Definition packagemodel.h:48
bool operator==(const PackageModel &rhs) const noexcept
Definition packagemodel.cpp:80
ElementName mName
Definition packagemodel.h:88
bool setName(const ElementName &name) noexcept
Definition packagemodel.cpp:57
bool operator!=(const PackageModel &rhs) const noexcept
Definition packagemodel.h:81
Signal< PackageModel, Event > onEdited
Definition packagemodel.h:52
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition packagemodel.cpp:71
const Uuid & getUuid() const noexcept
Definition packagemodel.h:63
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
QString toStr() const noexcept
Get the UUID as a string (without braces)
Definition uuid.h:91
Definition occmodel.cpp:76
type_safe::constrained_type< QString, ElementNameConstraint, ElementNameVerifier > ElementName
Definition elementname.h:84
Definition packagemodel.h:95
static constexpr const char * tagname
Definition packagemodel.h:96