20#ifndef LIBREPCB_KICADIMPORT_KICADLIBRARYCONVERTER_H
21#define LIBREPCB_KICADIMPORT_KICADLIBRARYCONVERTER_H
30#include <optional/tl/optional.hpp>
46class WorkspaceLibraryDb;
48namespace kicadimport {
85 QObject* parent =
nullptr) noexcept;
89 void reset() noexcept;
93 const QMap<QString,
FilePath>& models,
108 const QString& cmpGeneratedBy,
109 const QString& pkgGeneratedBy,
119 template <typename T>
The Component class represents a "generic" device in the library.
Definition: component.h:73
The Device class represents an instance of a component (a "real" component)
Definition: device.h:55
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
Generic logger class to pass messages between objects.
Definition: messagelogger.h:43
The Package class represents a package of a component (including footprint and 3D model)
Definition: package.h:59
The Symbol class represents the part of a component which is added to schematics.
Definition: symbol.h:55
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
The Version class represents a version number in the format "1.42.7".
Definition: version.h:58
The WorkspaceLibraryDb class.
Definition: workspacelibrarydb.h:58
Converts KiCad library elements to LibrePCB.
Definition: kicadlibraryconverter.h:77
QHash< QString, tl::optional< Uuid > > mPackageMap
Definition: kicadlibraryconverter.h:129
void loadAlreadyImportedComponent(const QString &generatedBy)
Definition: kicadlibraryconverter.cpp:540
void loadAlreadyImportedPackage(const QString &generatedBy)
Definition: kicadlibraryconverter.cpp:528
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)
Definition: kicadlibraryconverter.cpp:444
void reset() noexcept
Definition: kicadlibraryconverter.cpp:78
QHash< QString, tl::optional< Uuid > > mComponentMap
Definition: kicadlibraryconverter.h:145
std::unique_ptr< Package > createPackage(const FilePath &libFp, const KiCadFootprint &kiFpt, const QString &generatedBy, const QMap< QString, FilePath > &models, MessageLogger &log)
Definition: kicadlibraryconverter.cpp:81
WorkspaceLibraryDb & mLibraryDb
Definition: kicadlibraryconverter.h:124
QHash< QString, tl::optional< Uuid > > mSymbolMap
Definition: kicadlibraryconverter.h:137
std::unique_ptr< Component > createComponent(const FilePath &libFp, const KiCadSymbol &kiSym, const QList< KiCadSymbolGate > &kiGates, const QString &generatedBy, const QStringList &symGeneratedBy, MessageLogger &log)
Definition: kicadlibraryconverter.cpp:345
KiCadLibraryConverter(const KiCadLibraryConverter &other)=delete
QHash< QString, QMap< QString, tl::optional< Uuid > > > mPackagePadMap
Definition: kicadlibraryconverter.h:133
void tryOrLogError(std::function< void()> func, MessageLogger &log)
Definition: kicadlibraryconverter.cpp:570
QHash< std::pair< QString, QString >, tl::optional< Uuid > > mComponentSignalMap
Definition: kicadlibraryconverter.h:149
KiCadLibraryConverterSettings mSettings
Definition: kicadlibraryconverter.h:125
FilePath getAlreadyImportedFp(const QString &generatedBy) const
Definition: kicadlibraryconverter.cpp:555
void loadAlreadyImportedSymbol(const QString &generatedBy)
Definition: kicadlibraryconverter.cpp:515
std::unique_ptr< Symbol > createSymbol(const FilePath &libFp, const KiCadSymbol &kiSym, const KiCadSymbolGate &kiGate, const QString &generatedBy, MessageLogger &log)
Definition: kicadlibraryconverter.cpp:266
QHash< std::pair< QString, QString >, tl::optional< Uuid > > mSymbolPinMap
Definition: kicadlibraryconverter.h:141
static QString generatedBy(QString libName, QStringList keys)
Definition: kicadlibraryimport.cpp:48
Definition: occmodel.cpp:77
Settings for librepcb::kicadimport::KiCadLibraryConverter.
Definition: kicadlibraryconverter.h:57
QString namePrefix
Definition: kicadlibraryconverter.h:60
QString author
Definition: kicadlibraryconverter.h:62
QSet< Uuid > packageCategories
Definition: kicadlibraryconverter.h:65
QString keywords
Definition: kicadlibraryconverter.h:63
QSet< Uuid > symbolCategories
Definition: kicadlibraryconverter.h:64
QSet< Uuid > deviceCategories
Definition: kicadlibraryconverter.h:67
Version version
Definition: kicadlibraryconverter.h:61
KiCadLibraryConverterSettings() noexcept
Definition: kicadlibraryconverter.cpp:54
QSet< Uuid > componentCategories
Definition: kicadlibraryconverter.h:66
Represents a KiCad symbol gate.
Definition: kicadtypes.h:477
Represents a KiCad symbol.
Definition: kicadtypes.h:503