LibrePCB Developers Documentation
|
The ComponentAssemblyOption class. More...
#include <componentassemblyoption.h>
Public Types | |
enum class | Event |
typedef Slot< ComponentAssemblyOption, Event > | OnEditedSlot |
Public Member Functions | |
ComponentAssemblyOption ()=delete | |
ComponentAssemblyOption (const ComponentAssemblyOption &other) noexcept | |
ComponentAssemblyOption (const SExpression &node) | |
ComponentAssemblyOption (const Uuid &device, const AttributeList &attributes, const QSet< Uuid > &assemblyVariants, const PartList &parts) | |
~ComponentAssemblyOption () noexcept | |
const Uuid & | getDevice () const noexcept |
const AttributeList & | getAttributes () const noexcept |
const QSet< Uuid > & | getAssemblyVariants () const noexcept |
PartList & | getParts () noexcept |
const PartList & | getParts () const noexcept |
void | setDevice (const Uuid &value) noexcept |
void | setAttributes (const AttributeList &value) noexcept |
void | setAssemblyVariants (const QSet< Uuid > &assemblyVariants) noexcept |
void | serialize (SExpression &root) const |
Serialize into librepcb::SExpression node. More... | |
ComponentAssemblyOption & | operator= (const ComponentAssemblyOption &rhs)=delete |
bool | operator== (const ComponentAssemblyOption &rhs) const noexcept |
bool | operator!= (const ComponentAssemblyOption &rhs) const noexcept |
Public Attributes | |
Signal< ComponentAssemblyOption, Event > | onEdited |
Private Member Functions | |
void | partListEdited (const PartList &list, int index, const std::shared_ptr< const Part > &obj, PartList::Event event) noexcept |
Private Attributes | |
Uuid | mDevice |
Compatible device. More... | |
AttributeList | mAttributes |
Default attributes to copy when adding new parts. More... | |
QSet< Uuid > | mAssemblyVariants |
UUIDs of librepcb::AssemblyVariant this option is available for. More... | |
PartList | mParts |
Parts available for assembly. More... | |
PartList::OnEditedSlot | mOnPartsEditedSlot |
The ComponentAssemblyOption class.
typedef Slot<ComponentAssemblyOption, Event> OnEditedSlot |
|
strong |
|
delete |
|
noexcept |
|
explicit |
ComponentAssemblyOption | ( | const Uuid & | device, |
const AttributeList & | attributes, | ||
const QSet< Uuid > & | assemblyVariants, | ||
const PartList & | parts | ||
) |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
delete |
|
noexcept |
|
inlinenoexcept |
|
privatenoexcept |
Signal<ComponentAssemblyOption, Event> onEdited |
|
private |
Compatible device.
|
private |
Default attributes to copy when adding new parts.
|
private |
UUIDs of librepcb::AssemblyVariant this option is available for.
|
private |
Parts available for assembly.
|
private |