LibrePCB Developers Documentation
|
Converts KiCad library elements to LibrePCB. More...
#include <kicadlibraryconverter.h>
Inherits QObject.
Public Member Functions | |
KiCadLibraryConverter (const KiCadLibraryConverter &other)=delete | |
KiCadLibraryConverter (WorkspaceLibraryDb &db, const KiCadLibraryConverterSettings &settings, QObject *parent=nullptr) noexcept | |
~KiCadLibraryConverter () noexcept | |
void | reset () noexcept |
std::unique_ptr< Package > | createPackage (const FilePath &libFp, const KiCadFootprint &kiFpt, const QString &generatedBy, const QMap< QString, FilePath > &models, MessageLogger &log) |
std::unique_ptr< Symbol > | createSymbol (const FilePath &libFp, const KiCadSymbol &kiSym, const KiCadSymbolGate &kiGate, const QString &generatedBy, MessageLogger &log) |
std::unique_ptr< Component > | createComponent (const FilePath &libFp, const KiCadSymbol &kiSym, const QList< KiCadSymbolGate > &kiGates, const QString &generatedBy, const QStringList &symGeneratedBy, MessageLogger &log) |
std::unique_ptr< Device > | createDevice (const FilePath &libFp, const KiCadSymbol &kiSym, const QList< KiCadSymbolGate > &kiGates, const QString &generatedBy, const QString &cmpGeneratedBy, const QString &pkgGeneratedBy, MessageLogger &log) |
KiCadLibraryConverter & | operator= (const KiCadLibraryConverter &rhs)=delete |
Private Member Functions | |
void | loadAlreadyImportedSymbol (const QString &generatedBy) |
void | loadAlreadyImportedPackage (const QString &generatedBy) |
void | loadAlreadyImportedComponent (const QString &generatedBy) |
template<typename T > | |
FilePath | getAlreadyImportedFp (const QString &generatedBy) const |
void | tryOrLogError (std::function< void()> func, MessageLogger &log) |
Private Attributes | |
WorkspaceLibraryDb & | mLibraryDb |
KiCadLibraryConverterSettings | mSettings |
QHash< QString, tl::optional< Uuid > > | mPackageMap |
QHash< QString, QMap< QString, tl::optional< Uuid > > > | mPackagePadMap |
QHash< QString, tl::optional< Uuid > > | mSymbolMap |
QHash< std::pair< QString, QString >, tl::optional< Uuid > > | mSymbolPinMap |
QHash< QString, tl::optional< Uuid > > | mComponentMap |
QHash< std::pair< QString, QString >, tl::optional< Uuid > > | mComponentSignalMap |
Converts KiCad library elements to LibrePCB.
|
delete |
|
explicitnoexcept |
|
noexcept |
|
noexcept |
std::unique_ptr< Package > createPackage | ( | const FilePath & | libFp, |
const KiCadFootprint & | kiFpt, | ||
const QString & | generatedBy, | ||
const QMap< QString, FilePath > & | models, | ||
MessageLogger & | log | ||
) |
std::unique_ptr< Symbol > createSymbol | ( | const FilePath & | libFp, |
const KiCadSymbol & | kiSym, | ||
const KiCadSymbolGate & | kiGate, | ||
const QString & | generatedBy, | ||
MessageLogger & | log | ||
) |
std::unique_ptr< Component > createComponent | ( | const FilePath & | libFp, |
const KiCadSymbol & | kiSym, | ||
const QList< KiCadSymbolGate > & | kiGates, | ||
const QString & | generatedBy, | ||
const QStringList & | symGeneratedBy, | ||
MessageLogger & | log | ||
) |
std::unique_ptr< Device > createDevice | ( | const FilePath & | libFp, |
const KiCadSymbol & | kiSym, | ||
const QList< KiCadSymbolGate > & | kiGates, | ||
const QString & | generatedBy, | ||
const QString & | cmpGeneratedBy, | ||
const QString & | pkgGeneratedBy, | ||
MessageLogger & | log | ||
) |
|
delete |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Key: generatedBy Value: LibrePCB Package UUID
|
private |
Key: generatedBy | Pad Number (after conversion) Value: LibrePCB Package Pad UUID
|
private |
|
private |
Key: generatedBy Value: LibrePCB Component UUID
|
private |