LibrePCB Developers Documentation
AddLibraryWidget Class Referencefinal

The AddLibraryWidget class. More...

#include <addlibrarywidget.h>

Inherits QWidget.

+ Collaboration diagram for AddLibraryWidget:

Signals

void libraryAdded (const FilePath &libDir)
 

Public Member Functions

 AddLibraryWidget () noexcept
 
 AddLibraryWidget (const AddLibraryWidget &other)=delete
 
 AddLibraryWidget (workspace::Workspace &ws) noexcept
 
 ~AddLibraryWidget () noexcept
 
void updateRepositoryLibraryList () noexcept
 
AddLibraryWidgetoperator= (const AddLibraryWidget &rhs)=delete
 

Private Member Functions

void localLibraryNameLineEditTextChanged (QString name) noexcept
 
void downloadZipUrlLineEditTextChanged (QString urlStr) noexcept
 
void createLocalLibraryButtonClicked () noexcept
 
void downloadZippedLibraryButtonClicked () noexcept
 
void downloadZipFinished (bool success, const QString &errMsg) noexcept
 
void repositoryLibraryListReceived (const QJsonArray &libs) noexcept
 
void errorWhileFetchingLibraryList (const QString &errorMsg) noexcept
 
void clearRepositoryLibraryList () noexcept
 
void repoLibraryDownloadCheckedChanged (bool checked) noexcept
 
void downloadLibrariesFromRepositoryButtonClicked () noexcept
 

Static Private Member Functions

static QString getTextOrPlaceholderFromQLineEdit (QLineEdit *edit, bool isFilename) noexcept
 

Private Attributes

workspace::WorkspacemWorkspace
 
QScopedPointer< Ui::AddLibraryWidget > mUi
 
QScopedPointer< LibraryDownloadmManualLibraryDownload
 
QList< std::shared_ptr< Repository > > mRepositories
 

Detailed Description

The AddLibraryWidget class.

Constructor & Destructor Documentation

◆ AddLibraryWidget() [1/3]

AddLibraryWidget ( )
noexcept

◆ AddLibraryWidget() [2/3]

AddLibraryWidget ( const AddLibraryWidget other)
delete

◆ AddLibraryWidget() [3/3]

AddLibraryWidget ( workspace::Workspace ws)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~AddLibraryWidget()

~AddLibraryWidget ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ updateRepositoryLibraryList()

void updateRepositoryLibraryList ( )
noexcept
+ Here is the call graph for this function:

◆ operator=()

AddLibraryWidget& operator= ( const AddLibraryWidget rhs)
delete

◆ libraryAdded

void libraryAdded ( const FilePath libDir)
signal
+ Here is the caller graph for this function:

◆ localLibraryNameLineEditTextChanged()

void localLibraryNameLineEditTextChanged ( QString  name)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadZipUrlLineEditTextChanged()

void downloadZipUrlLineEditTextChanged ( QString  urlStr)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createLocalLibraryButtonClicked()

void createLocalLibraryButtonClicked ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadZippedLibraryButtonClicked()

void downloadZippedLibraryButtonClicked ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadZipFinished()

void downloadZipFinished ( bool  success,
const QString &  errMsg 
)
privatenoexcept
+ Here is the caller graph for this function:

◆ repositoryLibraryListReceived()

void repositoryLibraryListReceived ( const QJsonArray &  libs)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ errorWhileFetchingLibraryList()

void errorWhileFetchingLibraryList ( const QString &  errorMsg)
privatenoexcept
+ Here is the caller graph for this function:

◆ clearRepositoryLibraryList()

void clearRepositoryLibraryList ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ repoLibraryDownloadCheckedChanged()

void repoLibraryDownloadCheckedChanged ( bool  checked)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadLibrariesFromRepositoryButtonClicked()

void downloadLibrariesFromRepositoryButtonClicked ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getTextOrPlaceholderFromQLineEdit()

QString getTextOrPlaceholderFromQLineEdit ( QLineEdit *  edit,
bool  isFilename 
)
staticprivatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mWorkspace

workspace::Workspace& mWorkspace
private

◆ mUi

QScopedPointer<Ui::AddLibraryWidget> mUi
private

◆ mManualLibraryDownload

QScopedPointer<LibraryDownload> mManualLibraryDownload
private

◆ mRepositories

QList<std::shared_ptr<Repository> > mRepositories
private

The documentation for this class was generated from the following files: