LibrePCB Developers Documentation
|
The ComponentSymbolVariant class represents a symbol variant of a component. More...
#include <componentsymbolvariant.h>
Public Types | |
enum class | Event |
typedef Slot< ComponentSymbolVariant, Event > | OnEditedSlot |
Public Member Functions | |
ComponentSymbolVariant ()=delete | |
ComponentSymbolVariant (const ComponentSymbolVariant &other) noexcept | |
ComponentSymbolVariant (const Uuid &uuid, const QString &norm, const ElementName &name_en_US, const QString &desc_en_US) noexcept | |
ComponentSymbolVariant (const SExpression &node) | |
~ComponentSymbolVariant () noexcept | |
const Uuid & | getUuid () const noexcept |
const QString & | getNorm () const noexcept |
const ElementName & | getName () const noexcept |
const LocalizedNameMap & | getNames () const noexcept |
const LocalizedDescriptionMap & | getDescriptions () const noexcept |
bool | setNorm (const QString &norm) noexcept |
bool | setName (const QString &locale, const ElementName &name) noexcept |
bool | setDescription (const QString &locale, const QString &desc) noexcept |
bool | setNames (const LocalizedNameMap &names) noexcept |
bool | setDescriptions (const LocalizedDescriptionMap &descriptions) noexcept |
ComponentSymbolVariantItemList & | getSymbolItems () noexcept |
const ComponentSymbolVariantItemList & | getSymbolItems () const noexcept |
QSet< Uuid > | getAllSymbolUuids () const noexcept |
void | serialize (SExpression &root) const |
Serialize into librepcb::SExpression node. | |
bool | operator== (const ComponentSymbolVariant &rhs) const noexcept |
bool | operator!= (const ComponentSymbolVariant &rhs) const noexcept |
ComponentSymbolVariant & | operator= (const ComponentSymbolVariant &rhs) noexcept |
Public Attributes | |
Signal< ComponentSymbolVariant, Event > | onEdited |
Private Member Functions | |
void | itemsEdited (const ComponentSymbolVariantItemList &list, int index, const std::shared_ptr< const ComponentSymbolVariantItem > &item, ComponentSymbolVariantItemList::Event event) noexcept |
The ComponentSymbolVariant class represents a symbol variant of a component.
Following information is considered as the "interface" of a symbol variant and must therefore never be changed:
typedef Slot<ComponentSymbolVariant, Event> OnEditedSlot |
|
strong |
|
delete |
|
noexcept |
|
noexcept |
|
explicit |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
void serialize | ( | SExpression & | root | ) | const |
Serialize into librepcb::SExpression node.
root | Root node to serialize into. |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
privatenoexcept |
Signal<ComponentSymbolVariant, Event> onEdited |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |