LibrePCB Developers Documentation
LibraryManager Class Referencefinal

The LibraryManager class. More...

#include <librarymanager.h>

Inherits QMainWindow.

+ Collaboration diagram for LibraryManager:

Signals

void openLibraryEditorTriggered (const FilePath &libDir)
 

Public Member Functions

 LibraryManager ()=delete
 
 LibraryManager (const LibraryManager &other)=delete
 
 LibraryManager (Workspace &ws, QWidget *parent=nullptr) noexcept
 
 ~LibraryManager () noexcept
 
void updateOnlineLibraryList () noexcept
 
LibraryManageroperator= (const LibraryManager &rhs)=delete
 

Private Member Functions

void closeEvent (QCloseEvent *event) noexcept override
 
void clearLibraryList () noexcept
 
void updateLibraryList () noexcept
 
void currentListItemChanged (QListWidgetItem *current, QListWidgetItem *previous) noexcept
 
void libraryAddedSlot (const FilePath &libDir) noexcept
 

Static Private Member Functions

static bool widgetsLessThan (const LibraryListWidgetItem *a, const LibraryListWidgetItem *b) noexcept
 

Private Attributes

WorkspacemWorkspace
 
QScopedPointer< Ui::LibraryManager > mUi
 
QScopedPointer< AddLibraryWidgetmAddLibraryWidget
 
QWidget * mCurrentWidget
 
FilePath mSelectedLibrary
 

Detailed Description

The LibraryManager class.

Constructor & Destructor Documentation

◆ LibraryManager() [1/3]

LibraryManager ( )
delete

◆ LibraryManager() [2/3]

LibraryManager ( const LibraryManager other)
delete

◆ LibraryManager() [3/3]

LibraryManager ( Workspace ws,
QWidget *  parent = nullptr 
)
noexcept
+ Here is the call graph for this function:

◆ ~LibraryManager()

~LibraryManager ( )
noexcept
+ Here is the call graph for this function:

Member Function Documentation

◆ updateOnlineLibraryList()

void updateOnlineLibraryList ( )
noexcept

◆ operator=()

LibraryManager & operator= ( const LibraryManager rhs)
delete

◆ closeEvent()

void closeEvent ( QCloseEvent *  event)
overrideprivatenoexcept

◆ clearLibraryList()

void clearLibraryList ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ updateLibraryList()

void updateLibraryList ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ currentListItemChanged()

void currentListItemChanged ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ libraryAddedSlot()

void libraryAddedSlot ( const FilePath libDir)
privatenoexcept
+ Here is the caller graph for this function:

◆ widgetsLessThan()

bool widgetsLessThan ( const LibraryListWidgetItem a,
const LibraryListWidgetItem b 
)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ openLibraryEditorTriggered

void openLibraryEditorTriggered ( const FilePath libDir)
signal
+ Here is the caller graph for this function:

Member Data Documentation

◆ mWorkspace

Workspace& mWorkspace
private

◆ mUi

QScopedPointer<Ui::LibraryManager> mUi
private

◆ mAddLibraryWidget

QScopedPointer<AddLibraryWidget> mAddLibraryWidget
private

◆ mCurrentWidget

QWidget* mCurrentWidget
private

◆ mSelectedLibrary

FilePath mSelectedLibrary
private

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