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

The ProjectLibraryUpdater class. More...

#include <projectlibraryupdater.h>

Inherits QDialog.

+ Collaboration diagram for ProjectLibraryUpdater:

Public Types

typedef std::function< bool(const FilePath &)> CloseCallback
 

Signals

void finished (const FilePath &fp)
 

Public Member Functions

 ProjectLibraryUpdater (Workspace &ws, const FilePath &project, CloseCallback cb) 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
 
const FilePath mProjectFilePath
 
const CloseCallback mCloseCallback
 
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.

Member Typedef Documentation

◆ CloseCallback

typedef std::function<bool(const FilePath&)> CloseCallback

Constructor & Destructor Documentation

◆ ProjectLibraryUpdater()

ProjectLibraryUpdater ( Workspace ws,
const FilePath project,
CloseCallback  cb 
)
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:

◆ finished

void finished ( const FilePath fp)
signal
+ 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 caller graph for this function:

◆ updateElements()

template<typename T >
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

const FilePath mProjectFilePath
private

◆ mCloseCallback

const CloseCallback mCloseCallback
private

◆ mUi

QScopedPointer<Ui::ProjectLibraryUpdater> mUi
private

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