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 ()=delete
 
 AddLibraryWidget (const AddLibraryWidget &other)=delete
 
 AddLibraryWidget (Workspace &ws) noexcept
 
 ~AddLibraryWidget () noexcept
 
void updateOnlineLibraryList () 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 onlineLibraryListReceived (const QJsonArray &libs) noexcept
 
void errorWhileFetchingLibraryList (const QString &errorMsg) noexcept
 
void clearOnlineLibraryList () noexcept
 
void repoLibraryDownloadCheckedChanged (bool checked) noexcept
 
void downloadOnlineLibrariesButtonClicked () noexcept
 

Static Private Member Functions

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

Private Attributes

WorkspacemWorkspace
 
QScopedPointer< Ui::AddLibraryWidget > mUi
 
QScopedPointer< LibraryDownloadmManualLibraryDownload
 
QList< std::shared_ptr< ApiEndpoint > > mApiEndpoints
 
bool mManualCheckStateForAllRemoteLibraries
 

Detailed Description

The AddLibraryWidget class.

Constructor & Destructor Documentation

◆ AddLibraryWidget() [1/3]

AddLibraryWidget ( )
delete

◆ AddLibraryWidget() [2/3]

AddLibraryWidget ( const AddLibraryWidget other)
delete

◆ AddLibraryWidget() [3/3]

AddLibraryWidget ( 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

◆ updateOnlineLibraryList()

void updateOnlineLibraryList ( )
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:

◆ onlineLibraryListReceived()

void onlineLibraryListReceived ( 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:

◆ clearOnlineLibraryList()

void clearOnlineLibraryList ( )
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:

◆ downloadOnlineLibrariesButtonClicked()

void downloadOnlineLibrariesButtonClicked ( )
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& mWorkspace
private

◆ mUi

QScopedPointer<Ui::AddLibraryWidget> mUi
private

◆ mManualLibraryDownload

QScopedPointer<LibraryDownload> mManualLibraryDownload
private

◆ mApiEndpoints

QList<std::shared_ptr<ApiEndpoint> > mApiEndpoints
private

◆ mManualCheckStateForAllRemoteLibraries

bool mManualCheckStateForAllRemoteLibraries
private

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