LibrePCB Developers Documentation
ProjectLibraryUpdater Class Reference

The ProjectLibraryUpdater class. More...

#include <projectlibraryupdater.h>

Inherits QDialog.

+ Collaboration diagram for ProjectLibraryUpdater:

Public Member Functions

 ProjectLibraryUpdater (Workspace &ws, const FilePath &project, ControlPanel &cp) noexcept
 
 ~ProjectLibraryUpdater ()
 

Private Slots

void btnUpdateClicked ()
 

Private Member Functions

void log (const QString &msg) noexcept
 
QString prettyPath (const FilePath &fp) const noexcept
 
template<typename T >
void updateElements (std::shared_ptr< TransactionalFileSystem > fs, const QString &type)
 

Private Attributes

WorkspacemWorkspace
 
FilePath mProjectFilePath
 
ControlPanelmControlPanel
 
QScopedPointer< Ui::ProjectLibraryUpdater > mUi
 

Detailed Description

The ProjectLibraryUpdater class.

Note
This updater is currently an ugly hack with very limited functionality. The whole project library update concept needs to be refactored some time to provide an updater with much more functionality and higher reliability.

Constructor & Destructor Documentation

◆ ProjectLibraryUpdater()

ProjectLibraryUpdater ( Workspace ws,
const FilePath project,
ControlPanel cp 
)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~ProjectLibraryUpdater()

Member Function Documentation

◆ btnUpdateClicked

void btnUpdateClicked ( )
privateslot
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ log()

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

◆ prettyPath()

QString prettyPath ( const FilePath fp) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateElements()

void updateElements ( std::shared_ptr< TransactionalFileSystem fs,
const QString &  type 
)
private
+ Here is the call graph for this function:

Member Data Documentation

◆ mWorkspace

Workspace& mWorkspace
private

◆ mProjectFilePath

FilePath mProjectFilePath
private

◆ mControlPanel

ControlPanel& mControlPanel
private

◆ mUi

QScopedPointer<Ui::ProjectLibraryUpdater> mUi
private

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