20#ifndef LIBREPCB_KICADIMPORT_KICADLIBRARYIMPORT_H
21#define LIBREPCB_KICADIMPORT_KICADLIBRARYIMPORT_H
39class WorkspaceLibraryDb;
41namespace kicadimport {
43struct KiCadLibraryConverterSettings;
121 QObject* parent =
nullptr) noexcept;
141 bool checked) noexcept;
143 bool checked) noexcept;
145 bool checked) noexcept;
147 bool checked) noexcept;
150 void reset() noexcept;
164 Qt::CheckState state);
166 Qt::CheckState state);
168 const QString& symName, Qt::CheckState state);
182 template <typename T>
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
Generic logger class to pass messages between objects.
Definition messagelogger.h:43
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition uuid.h:56
The WorkspaceLibraryDb class.
Definition workspacelibrarydb.h:58
KiCad library import.
Definition kicadlibraryimport.h:52
bool canStartSelecting() const noexcept
Definition kicadlibraryimport.cpp:139
void setComponentChecked(const QString &libName, const QString &symName, bool checked) noexcept
Definition kicadlibraryimport.cpp:269
void setPackageChecked(const QString &libName, const QString &fptName, bool checked) noexcept
Definition kicadlibraryimport.cpp:246
void progressStatus(QString status)
const FilePath & getLoadedShapes3dPath() const noexcept
Definition kicadlibraryimport.h:127
void reset() noexcept
Definition kicadlibraryimport.cpp:319
void packageCheckStateChanged(const QString &libName, const QString &fptName, Qt::CheckState state)
void cancel() noexcept
Definition kicadlibraryimport.cpp:385
void setPackageCategories(const QSet< Uuid > &uuids) noexcept
Definition kicadlibraryimport.cpp:209
bool mAbort
Definition kicadlibraryimport.h:193
WorkspaceLibraryDb & mLibraryDb
Definition kicadlibraryimport.h:187
bool startParse(std::shared_ptr< MessageLogger > log) noexcept
Definition kicadlibraryimport.cpp:344
void updateDependencies(std::shared_ptr< Result > result) noexcept
Definition kicadlibraryimport.cpp:979
bool canStartParsing() const noexcept
Definition kicadlibraryimport.cpp:129
std::shared_ptr< Result > parse(std::shared_ptr< Result > result, std::shared_ptr< MessageLogger > log) noexcept
Definition kicadlibraryimport.cpp:521
State mState
Definition kicadlibraryimport.h:192
QScopedPointer< KiCadLibraryConverterSettings > mSettings
Definition kicadlibraryimport.h:188
FilePath mLoadedLibsFp
Definition kicadlibraryimport.h:189
std::shared_ptr< Result > getResult() noexcept
Definition kicadlibraryimport.cpp:380
State
Definition kicadlibraryimport.h:56
bool isAlreadyImported(const QString &generatedBy) const noexcept
Definition kicadlibraryimport.cpp:957
std::shared_ptr< Result > import(std::shared_ptr< Result > result, std::shared_ptr< MessageLogger > log) noexcept
Definition kicadlibraryimport.cpp:676
void progressPercent(int percent)
void setNamePrefix(const QString &prefix) noexcept
Definition kicadlibraryimport.cpp:201
void setSymbolCategories(const QSet< Uuid > &uuids) noexcept
Definition kicadlibraryimport.cpp:205
bool canStartImport() const noexcept
Definition kicadlibraryimport.cpp:158
void symbolCheckStateChanged(const QString &libName, const QString &symName, Qt::CheckState state)
bool isRunning() const noexcept
Definition kicadlibraryimport.cpp:374
FilePath mLoadedShapes3dFp
Definition kicadlibraryimport.h:190
bool startScan(const FilePath &libsFp, const FilePath &shapes3dFp, std::shared_ptr< MessageLogger > log) noexcept
Definition kicadlibraryimport.cpp:326
void setComponentCategories(const QSet< Uuid > &uuids) noexcept
Definition kicadlibraryimport.cpp:214
const FilePath & getLoadedLibsPath() const noexcept
Definition kicadlibraryimport.h:126
State getState() const noexcept
Definition kicadlibraryimport.h:125
KiCadLibraryImport(const KiCadLibraryImport &other)=delete
void componentCheckStateChanged(const QString &libName, const QString &symName, Qt::CheckState state)
void setDeviceChecked(const QString &libName, const QString &symName, bool checked) noexcept
Definition kicadlibraryimport.cpp:292
void setDeviceCategories(const QSet< Uuid > &uuids) noexcept
Definition kicadlibraryimport.cpp:219
const FilePath mDestinationLibraryFp
Definition kicadlibraryimport.h:186
std::shared_ptr< Result > scan(FilePath libsFp, const FilePath &shapes3dFp, std::shared_ptr< MessageLogger > log) noexcept
Definition kicadlibraryimport.cpp:394
void setSymbolChecked(const QString &libName, const QString &symName, bool checked) noexcept
Definition kicadlibraryimport.cpp:223
bool startImport(std::shared_ptr< MessageLogger > log) noexcept
Definition kicadlibraryimport.cpp:359
QFuture< std::shared_ptr< Result > > mFuture
Definition kicadlibraryimport.h:191
static QString generatedBy(QString libName, QStringList keys)
Definition kicadlibraryimport.cpp:48
Definition occmodel.cpp:76
Settings for librepcb::kicadimport::KiCadLibraryConverter.
Definition kicadlibraryconverter.h:57
Definition kicadlibraryimport.h:66
QString symGeneratedBy
Definition kicadlibraryimport.h:68
bool alreadyImported
Definition kicadlibraryimport.h:69
int index
Definition kicadlibraryimport.h:67
Definition kicadlibraryimport.h:106
QList< FilePath > stepFiles
Definition kicadlibraryimport.h:108
FilePath dir
Definition kicadlibraryimport.h:107
Definition kicadlibraryimport.h:111
QList< FootprintLibrary > footprintLibs
Definition kicadlibraryimport.h:113
QList< Package3DLibrary > package3dLibs
Definition kicadlibraryimport.h:114
QList< SymbolLibrary > symbolLibs
Definition kicadlibraryimport.h:112
int fileCount
Definition kicadlibraryimport.h:115
Definition kicadlibraryimport.h:72
QString pkgGeneratedBy
Definition kicadlibraryimport.h:76
Qt::CheckState devChecked
Definition kicadlibraryimport.h:84
QString extends
Definition kicadlibraryimport.h:80
bool devAlreadyImported
Definition kicadlibraryimport.h:79
QString cmpGeneratedBy
Definition kicadlibraryimport.h:74
bool symAlreadyImported
Definition kicadlibraryimport.h:77
Qt::CheckState cmpChecked
Definition kicadlibraryimport.h:83
QList< Gate > gates
Definition kicadlibraryimport.h:81
bool cmpAlreadyImported
Definition kicadlibraryimport.h:78
QString name
Definition kicadlibraryimport.h:73
Qt::CheckState symChecked
Definition kicadlibraryimport.h:82
QString devGeneratedBy
Definition kicadlibraryimport.h:75
Definition kicadlibraryimport.h:87
FilePath file
Definition kicadlibraryimport.h:88
QList< Symbol > symbols
Definition kicadlibraryimport.h:89