LibrePCB Developers Documentation
|
The AttrTypeString class. More...
#include <attrtypestring.h>
Public Member Functions | |
AttrTypeString (const AttrTypeString &other)=delete | |
bool | isValueValid (const QString &value) const noexcept |
QString | valueFromTr (const QString &value) const noexcept |
QString | printableValueTr (const QString &value, const AttributeUnit *unit=nullptr) const noexcept |
AttrTypeString & | operator= (const AttrTypeString &rhs)=delete |
Public Member Functions inherited from AttributeType | |
AttributeType ()=delete | |
AttributeType (const AttributeType &other)=delete | |
AttributeType (Type_t type, const QString &typeName, const QString &typeNameTr) noexcept | |
virtual | ~AttributeType () noexcept |
Type_t | getType () const noexcept |
const QString & | getName () const noexcept |
const QString & | getNameTr () const noexcept |
const QList< const AttributeUnit * > & | getAvailableUnits () const noexcept |
const AttributeUnit * | getUnitFromString (const QString &unit) const |
const AttributeUnit * | getDefaultUnit () const noexcept |
bool | isUnitAvailable (const AttributeUnit *unit) const noexcept |
const AttributeUnit * | tryExtractUnitFromValue (QString &value) const noexcept |
virtual bool | isValueValid (const QString &value) const noexcept=0 |
virtual QString | valueFromTr (const QString &value) const noexcept=0 |
virtual QString | printableValueTr (const QString &value, const AttributeUnit *unit=nullptr) const noexcept=0 |
AttributeType & | operator= (const AttributeType &rhs)=delete |
Static Public Member Functions | |
static const AttrTypeString & | instance () noexcept |
Static Public Member Functions inherited from AttributeType | |
static QList< const AttributeType * > | getAllTypes () noexcept |
static const AttributeType & | fromString (const QString &type) |
Private Member Functions | |
AttrTypeString () noexcept | |
~AttrTypeString () noexcept | |
Additional Inherited Members | |
Public Types inherited from AttributeType | |
enum class | Type_t |
Available Attribute Types. More... | |
Protected Attributes inherited from AttributeType | |
Type_t | mType |
QString | mTypeName |
QString | mTypeNameTr |
QList< const AttributeUnit * > | mAvailableUnits |
const AttributeUnit * | mDefaultUnit |
The AttrTypeString class.
|
delete |
|
privatenoexcept |
|
privatenoexcept |
|
virtualnoexcept |
Implements AttributeType.
|
virtualnoexcept |
Implements AttributeType.
|
virtualnoexcept |
Implements AttributeType.
|
inlinestaticnoexcept |
|
delete |