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 QMainWindow.

+ Collaboration diagram for ProjectLibraryUpdater:

Public Member Functions

 ProjectLibraryUpdater (workspace::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
 
void updateElements (const QString &type, FilePath(workspace::WorkspaceLibraryDb::*getter)(const Uuid &) const)
 

Private Attributes

workspace::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 ( workspace::Workspace ws,
const FilePath project,
ControlPanel cp 
)
explicitnoexcept

+ Here is the call graph for this function:

Member Function Documentation

void btnUpdateClicked ( )
privateslot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void log ( const QString &  msg)
privatenoexcept

+ Here is the caller graph for this function:

QString prettyPath ( const FilePath fp) const
privatenoexcept

+ Here is the caller graph for this function:

void updateElements ( const QString &  type,
FilePath(workspace::WorkspaceLibraryDb::*)(const Uuid &) const  getter 
)
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

workspace::Workspace& mWorkspace
private
FilePath mProjectFilePath
private
ControlPanel& mControlPanel
private
QScopedPointer<Ui::ProjectLibraryUpdater> mUi
private

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