20#ifndef LIBREPCB_EAGLEIMPORT_EAGLELIBRARYIMPORT_H
21#define LIBREPCB_EAGLEIMPORT_EAGLELIBRARYIMPORT_H
48namespace eagleimport {
50struct EagleLibraryConverterSettings;
67 std::shared_ptr<parseagle::Symbol>
symbol;
74 std::shared_ptr<parseagle::Package>
package;
91 std::shared_ptr<parseagle::Device>
device;
98 QObject* parent =
nullptr) noexcept;
129 void reset() noexcept;
144 template <typename T>
146 template <typename T>
148 bool checked) noexcept;
150 template <typename T>
152 void run() noexcept override;
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
EAGLE library (*.lbr) import.
Definition eaglelibraryimport.h:59
int getCheckedElementsCount() const noexcept
Definition eaglelibraryimport.cpp:73
const QVector< Package > & getPackages() const noexcept
Definition eaglelibraryimport.h:111
void run() noexcept override
Definition eaglelibraryimport.cpp:318
const QVector< Device > & getDevices() const noexcept
Definition eaglelibraryimport.h:115
QVector< Device > mDevices
Definition eaglelibraryimport.h:167
int getCheckedDevicesCount() const noexcept
Definition eaglelibraryimport.cpp:90
const QVector< Component > & getComponents() const noexcept
Definition eaglelibraryimport.h:112
void reset() noexcept
Definition eaglelibraryimport.cpp:144
void setPackageCategories(const QSet< Uuid > &uuids) noexcept
Definition eaglelibraryimport.cpp:106
void packageCheckStateChanged(const QString &name, Qt::CheckState state)
bool mAbort
Definition eaglelibraryimport.h:160
std::shared_ptr< MessageLogger > getLogger() const noexcept
Definition eaglelibraryimport.h:102
void updateDependencies() noexcept
Definition eaglelibraryimport.cpp:271
int getTotalElementsCount() const noexcept
Definition eaglelibraryimport.cpp:68
int getCheckedComponentsCount() const noexcept
Definition eaglelibraryimport.cpp:86
const FilePath & getLoadedFilePath() const noexcept
Definition eaglelibraryimport.h:103
QVector< Package > mPackages
Definition eaglelibraryimport.h:165
QVector< Symbol > mSymbols
Definition eaglelibraryimport.h:164
QVector< Component > mComponents
Definition eaglelibraryimport.h:166
const QVector< Symbol > & getSymbols() const noexcept
Definition eaglelibraryimport.h:110
void setDeviceChecked(const QString &name, bool checked) noexcept
Definition eaglelibraryimport.cpp:135
int getCheckedSymbolsCount() const noexcept
Definition eaglelibraryimport.cpp:78
void setElementChecked(QVector< T > &elements, const QString &name, bool checked) noexcept
Definition eaglelibraryimport.cpp:255
void progressPercent(int percent)
void setNamePrefix(const QString &prefix) noexcept
Definition eaglelibraryimport.cpp:98
void setSymbolCategories(const QSet< Uuid > &uuids) noexcept
Definition eaglelibraryimport.cpp:102
std::shared_ptr< MessageLogger > mLogger
Definition eaglelibraryimport.h:157
void componentCheckStateChanged(const QString &name, Qt::CheckState state)
bool setElementDependent(T &element, bool dependent) noexcept
Definition eaglelibraryimport.cpp:306
QStringList open(const FilePath &lbr)
Definition eaglelibraryimport.cpp:152
void symbolCheckStateChanged(const QString &name, Qt::CheckState state)
void progressStatus(const QString &status)
void setComponentCategories(const QSet< Uuid > &uuids) noexcept
Definition eaglelibraryimport.cpp:111
int getCheckedPackagesCount() const noexcept
Definition eaglelibraryimport.cpp:82
FilePath mLoadedFilePath
Definition eaglelibraryimport.h:161
EagleLibraryImport(const EagleLibraryImport &other)=delete
void setDeviceCategories(const QSet< Uuid > &uuids) noexcept
Definition eaglelibraryimport.cpp:116
void setPackageChecked(const QString &name, bool checked) noexcept
Definition eaglelibraryimport.cpp:125
void setSymbolChecked(const QString &name, bool checked) noexcept
Definition eaglelibraryimport.cpp:120
const FilePath mDestinationLibraryFp
Definition eaglelibraryimport.h:155
QScopedPointer< EagleLibraryConverterSettings > mSettings
Definition eaglelibraryimport.h:156
void setComponentChecked(const QString &name, bool checked) noexcept
Definition eaglelibraryimport.cpp:130
Definition occmodel.cpp:76
Definition eaglelibraryconverter.h:38
Settings for librepcb::eagleimport::EagleLibraryConverter.
Definition eaglelibraryconverter.h:64
Definition eaglelibraryimport.h:77
Qt::CheckState checkState
Definition eaglelibraryimport.h:80
QString description
Definition eaglelibraryimport.h:79
QSet< QString > symbolDisplayNames
Definition eaglelibraryimport.h:81
QString displayName
Definition eaglelibraryimport.h:78
std::shared_ptr< parseagle::DeviceSet > deviceSet
Definition eaglelibraryimport.h:82
Definition eaglelibraryimport.h:85
std::shared_ptr< parseagle::Device > device
Definition eaglelibraryimport.h:91
Qt::CheckState checkState
Definition eaglelibraryimport.h:88
QString description
Definition eaglelibraryimport.h:87
QString packageDisplayName
Definition eaglelibraryimport.h:90
QString displayName
Definition eaglelibraryimport.h:86
QString componentDisplayName
Definition eaglelibraryimport.h:89
std::shared_ptr< parseagle::DeviceSet > deviceSet
Definition eaglelibraryimport.h:92
Definition eaglelibraryimport.h:70
std::shared_ptr< parseagle::Package > package
Definition eaglelibraryimport.h:74
Qt::CheckState checkState
Definition eaglelibraryimport.h:73
QString description
Definition eaglelibraryimport.h:72
QString displayName
Definition eaglelibraryimport.h:71
Definition eaglelibraryimport.h:63
Qt::CheckState checkState
Definition eaglelibraryimport.h:66
QString description
Definition eaglelibraryimport.h:65
std::shared_ptr< parseagle::Symbol > symbol
Definition eaglelibraryimport.h:67
QString displayName
Definition eaglelibraryimport.h:64