LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AddLibraryWidget Class Referencefinal

The AddLibraryWidget class. More...

#include <addlibrarywidget.h>

Inherits QWidget.

+ Collaboration diagram for AddLibraryWidget:

Signals

void libraryAdded (const FilePath &libDir, bool select)
 

Public Member Functions

 AddLibraryWidget () noexcept
 
 AddLibraryWidget (const AddLibraryWidget &other)=delete
 
 AddLibraryWidget (workspace::Workspace &ws) noexcept
 
 ~AddLibraryWidget () noexcept
 
void updateRepositoryLibraryList () noexcept
 
void updateInstalledStatusOfRepositoryLibraries () 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< QMetaObject::Connection > mLibraryDownloadConnections
 

Detailed Description

The AddLibraryWidget class.

Author
ubruhin
Date
2016-08-03

Constructor & Destructor Documentation

AddLibraryWidget ( )
noexcept
AddLibraryWidget ( const AddLibraryWidget other)
delete
AddLibraryWidget ( workspace::Workspace ws)
explicitnoexcept

+ Here is the call graph for this function:

~AddLibraryWidget ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

void updateRepositoryLibraryList ( )
noexcept

+ Here is the call graph for this function:

void updateInstalledStatusOfRepositoryLibraries ( )
noexcept

+ Here is the call graph for this function:

AddLibraryWidget& operator= ( const AddLibraryWidget rhs)
delete
void libraryAdded ( const FilePath libDir,
bool  select 
)
signal

+ Here is the caller graph for this function:

void localLibraryNameLineEditTextChanged ( QString  name)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void downloadZipUrlLineEditTextChanged ( QString  urlStr)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void createLocalLibraryButtonClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void downloadZippedLibraryButtonClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void downloadZipFinished ( bool  success,
const QString &  errMsg 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void repositoryLibraryListReceived ( const QJsonArray &  libs)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void errorWhileFetchingLibraryList ( const QString &  errorMsg)
privatenoexcept

+ Here is the caller graph for this function:

void clearRepositoryLibraryList ( )
privatenoexcept

+ Here is the caller graph for this function:

void repoLibraryDownloadCheckedChanged ( bool  checked)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void downloadLibrariesFromRepositoryButtonClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

workspace::Workspace& mWorkspace
private
QScopedPointer<Ui::AddLibraryWidget> mUi
private
QScopedPointer<LibraryDownload> mManualLibraryDownload
private
QList<QMetaObject::Connection> mLibraryDownloadConnections
private

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