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

The LibraryOverviewWidget class. More...

#include <libraryoverviewwidget.h>

+ Inheritance diagram for LibraryOverviewWidget:
+ Collaboration diagram for LibraryOverviewWidget:

Public Slots

bool save () noexceptoverride
 
- Public Slots inherited from EditorWidgetBase
virtual bool save () noexcept
 
virtual bool rotateCw () noexcept
 
virtual bool rotateCcw () noexcept
 
virtual bool remove () noexcept
 
virtual bool zoomIn () noexcept
 
virtual bool zoomOut () noexcept
 
virtual bool zoomAll () noexcept
 
virtual bool abortCommand () noexcept
 
virtual bool editGridProperties () noexcept
 

Signals

void editComponentCategoryTriggered (const FilePath &fp)
 
void editPackageCategoryTriggered (const FilePath &fp)
 
void editSymbolTriggered (const FilePath &fp)
 
void editPackageTriggered (const FilePath &fp)
 
void editComponentTriggered (const FilePath &fp)
 
void editDeviceTriggered (const FilePath &fp)
 
void removeElementTriggered (const FilePath &fp)
 
- Signals inherited from EditorWidgetBase
void dirtyChanged (bool dirty)
 
void elementEdited (const FilePath &fp)
 
void interfaceBrokenChanged (bool broken)
 
void errorsAvailableChanged (bool hasErrors)
 
void cursorPositionChanged (const Point &pos)
 

Public Member Functions

 LibraryOverviewWidget ()=delete
 
 LibraryOverviewWidget (const LibraryOverviewWidget &other)=delete
 
 LibraryOverviewWidget (const Context &context, QSharedPointer< Library > lib, QWidget *parent=nullptr) noexcept
 
 ~LibraryOverviewWidget () noexcept
 
LibraryOverviewWidgetoperator= (const LibraryOverviewWidget &rhs)=delete
 
template<>
void fixMsg (const MsgNameNotTitleCase &msg)
 
template<>
void fixMsg (const MsgMissingAuthor &msg)
 
- Public Member Functions inherited from EditorWidgetBase
 EditorWidgetBase ()=delete
 
 EditorWidgetBase (const EditorWidgetBase &other)=delete
 
 EditorWidgetBase (const Context &context, const FilePath &fp, QWidget *parent=nullptr)
 
virtual ~EditorWidgetBase () noexcept
 
const FilePathgetFilePath () const noexcept
 
bool isDirty () const noexcept
 
virtual bool hasGraphicalEditor () const noexcept
 
virtual void setUndoStackActionGroup (UndoStackActionGroup *group) noexcept
 
virtual void setToolsActionGroup (ExclusiveActionGroup *group) noexcept
 
virtual void setCommandToolBar (QToolBar *toolbar) noexcept
 
EditorWidgetBaseoperator= (const EditorWidgetBase &rhs)=delete
 

Private Member Functions

void updateMetadata () noexcept
 
QString commitMetadata () noexcept
 
bool isInterfaceBroken () const noexceptoverride
 
bool runChecks (LibraryElementCheckMessageList &msgs) const override
 
template<typename MessageType >
void fixMsg (const MessageType &msg)
 
template<typename MessageType >
bool fixMsgHelper (std::shared_ptr< const LibraryElementCheckMessage > msg, bool applyFix)
 
bool processCheckMessage (std::shared_ptr< const LibraryElementCheckMessage > msg, bool applyFix) override
 
void updateElementLists () noexcept
 
template<typename ElementType >
void updateElementList (QListWidget &listWidget, const QIcon &icon) noexcept
 
void openContextMenuAtPos (const QPoint &pos) noexcept
 
bool removeSelectedItem (const QString &itemName, const FilePath &itemPath) noexcept
 
void btnIconClicked () noexcept
 
void lstCmpCatDoubleClicked (const QModelIndex &index) noexcept
 
void lstPkgCatDoubleClicked (const QModelIndex &index) noexcept
 
void lstSymDoubleClicked (const QModelIndex &index) noexcept
 
void lstPkgDoubleClicked (const QModelIndex &index) noexcept
 
void lstCmpDoubleClicked (const QModelIndex &index) noexcept
 
void lstDevDoubleClicked (const QModelIndex &index) noexcept
 

Private Attributes

QSharedPointer< LibrarymLibrary
 
QScopedPointer
< Ui::LibraryOverviewWidget > 
mUi
 
QScopedPointer
< LibraryListEditorWidget
mDependenciesEditorWidget
 
QByteArray mIcon
 

Additional Inherited Members

- Public Types inherited from EditorWidgetBase
enum  Tool
 
- Protected Member Functions inherited from EditorWidgetBase
void setupInterfaceBrokenWarningWidget (QWidget &widget) noexcept
 
void setupErrorNotificationWidget (QWidget &widget) noexcept
 
virtual bool toolChangeRequested (Tool newTool) noexcept
 
void undoStackStateModified () noexcept
 
const QStringList & getLibLocaleOrder () const noexcept
 
QString getWorkspaceSettingsUserName () noexcept
 
- Protected Member Functions inherited from IF_LibraryElementCheckHandler
 IF_LibraryElementCheckHandler () noexcept
 
 IF_LibraryElementCheckHandler (const IF_LibraryElementCheckHandler &) noexcept
 
virtual ~IF_LibraryElementCheckHandler () noexcept
 
- Protected Attributes inherited from EditorWidgetBase
Context mContext
 
FilePath mFilePath
 
QScopedPointer< UndoStackmUndoStack
 
UndoStackActionGroupmUndoStackActionGroup
 
ExclusiveActionGroupmToolsActionGroup
 
QScopedPointer< ToolBarProxymCommandToolBarProxy
 
bool mIsInterfaceBroken
 

Detailed Description

The LibraryOverviewWidget class.

Author
ubruhin
Date
2016-10-08

Constructor & Destructor Documentation

LibraryOverviewWidget ( const LibraryOverviewWidget other)
delete
LibraryOverviewWidget ( const Context context,
QSharedPointer< Library lib,
QWidget *  parent = nullptr 
)
noexcept

+ Here is the call graph for this function:

~LibraryOverviewWidget ( )
noexcept

Member Function Documentation

LibraryOverviewWidget& operator= ( const LibraryOverviewWidget rhs)
delete
bool save ( )
overrideslotnoexcept

+ Here is the call graph for this function:

void editComponentCategoryTriggered ( const FilePath fp)
signal
void editPackageCategoryTriggered ( const FilePath fp)
signal
void editSymbolTriggered ( const FilePath fp)
signal
void editPackageTriggered ( const FilePath fp)
signal
void editComponentTriggered ( const FilePath fp)
signal
void editDeviceTriggered ( const FilePath fp)
signal
void removeElementTriggered ( const FilePath fp)
signal
void updateMetadata ( )
privatenoexcept

+ Here is the caller graph for this function:

QString commitMetadata ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool isInterfaceBroken ( ) const
inlineoverrideprivatevirtualnoexcept

Implements EditorWidgetBase.

bool runChecks ( LibraryElementCheckMessageList msgs) const
overrideprivatevirtual

Implements EditorWidgetBase.

void fixMsg ( const MessageType &  msg)
private

+ Here is the caller graph for this function:

bool fixMsgHelper ( std::shared_ptr< const LibraryElementCheckMessage msg,
bool  applyFix 
)
private

+ Here is the call graph for this function:

bool processCheckMessage ( std::shared_ptr< const LibraryElementCheckMessage msg,
bool  applyFix 
)
overrideprivatevirtual

Implements EditorWidgetBase.

void updateElementLists ( )
privatenoexcept

+ Here is the caller graph for this function:

void updateElementList ( QListWidget &  listWidget,
const QIcon &  icon 
)
privatenoexcept

+ Here is the call graph for this function:

void openContextMenuAtPos ( const QPoint &  pos)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool removeSelectedItem ( const QString &  itemName,
const FilePath itemPath 
)
privatenoexcept

+ Here is the call graph for this function:

void btnIconClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lstCmpCatDoubleClicked ( const QModelIndex &  index)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lstPkgCatDoubleClicked ( const QModelIndex &  index)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lstSymDoubleClicked ( const QModelIndex &  index)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lstPkgDoubleClicked ( const QModelIndex &  index)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lstCmpDoubleClicked ( const QModelIndex &  index)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void lstDevDoubleClicked ( const QModelIndex &  index)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void fixMsg ( const MsgNameNotTitleCase msg)

+ Here is the call graph for this function:

void fixMsg ( const MsgMissingAuthor msg)

+ Here is the call graph for this function:

Member Data Documentation

QSharedPointer<Library> mLibrary
private
QScopedPointer<Ui::LibraryOverviewWidget> mUi
private
QScopedPointer<LibraryListEditorWidget> mDependenciesEditorWidget
private
QByteArray mIcon
private

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