![]() |
LibrePCB Developers Documentation
|
The CmpSigPinDisplayType clas. More...
#include <cmpsigpindisplaytype.h>
Public Member Functions | |
CmpSigPinDisplayType () noexcept | |
CmpSigPinDisplayType (const CmpSigPinDisplayType &other) noexcept | |
~CmpSigPinDisplayType () noexcept | |
const QString & | toString () const noexcept |
Serialize the display type to a string (e.g. to write it into a file) More... | |
const QString & | getNameTr () const noexcept |
Get the name of the display type (human readable and translated) More... | |
bool | operator== (const CmpSigPinDisplayType &rhs) const noexcept |
bool | operator!= (const CmpSigPinDisplayType &rhs) const noexcept |
CmpSigPinDisplayType & | operator= (const CmpSigPinDisplayType &rhs) noexcept |
Static Public Member Functions | |
static const CmpSigPinDisplayType & | fromString (const QString &str) |
Deserialize a display type from a string. More... | |
static const QList< CmpSigPinDisplayType > & | getAllTypes () noexcept |
Get a list of all available display types. More... | |
static const CmpSigPinDisplayType & | none () noexcept |
None (no text) More... | |
static const CmpSigPinDisplayType & | pinName () noexcept |
display the name of the symbol pin More... | |
static const CmpSigPinDisplayType & | componentSignal () noexcept |
display the name of the component signal More... | |
static const CmpSigPinDisplayType & | netSignal () noexcept |
display the name of the connected net signal More... | |
Private Member Functions | |
CmpSigPinDisplayType (const QString &type, const QString &name) noexcept | |
Private Attributes | |
QString | mDisplayType |
used for serialization (DO NOT MODIFY VALUES!) More... | |
QString | mName |
human readable (translated) More... | |
The CmpSigPinDisplayType clas.
|
noexcept |
|
noexcept |
|
noexcept |
|
privatenoexcept |
|
inlinenoexcept |
Serialize the display type to a string (e.g. to write it into a file)
|
inlinenoexcept |
Get the name of the display type (human readable and translated)
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
static |
Deserialize a display type from a string.
str | The string (e.g. from a file) |
Exception | if the given string is not a valid CmpSigPinDisplayType |
|
staticnoexcept |
Get a list of all available display types.
|
inlinestaticnoexcept |
None (no text)
|
inlinestaticnoexcept |
display the name of the symbol pin
|
inlinestaticnoexcept |
display the name of the component signal
|
inlinestaticnoexcept |
display the name of the connected net signal
|
private |
used for serialization (DO NOT MODIFY VALUES!)
|
private |
human readable (translated)