LibrePCB Developers Documentation
PadSignalMapEditorWidget Class Referencefinal

The PadSignalMapEditorWidget class. More...

#include <padsignalmapeditorwidget.h>

Inherits QWidget.

+ Collaboration diagram for PadSignalMapEditorWidget:

Signals

void statusTipChanged (const QString &statusTip)
 

Public Member Functions

 PadSignalMapEditorWidget (QWidget *parent=nullptr) noexcept
 
 PadSignalMapEditorWidget (const PadSignalMapEditorWidget &other)=delete
 
 ~PadSignalMapEditorWidget () noexcept
 
void setFrameStyle (int style) noexcept
 
void setReadOnly (bool readOnly) noexcept
 
void setReferences (UndoStack *undoStack, DevicePadSignalMap *map) noexcept
 
void setPadList (const PackagePadList &list) noexcept
 
void setSignalList (const ComponentSignalList &list) noexcept
 
bool eventFilter (QObject *watched, QEvent *event) noexcept override
 
PadSignalMapEditorWidgetoperator= (const PadSignalMapEditorWidget &rhs)=delete
 

Protected Member Functions

void resizeEvent (QResizeEvent *e) noexcept override
 
void keyPressEvent (QKeyEvent *e) noexcept override
 

Private Member Functions

void scheduleToolButtonPositionUpdate () noexcept
 
void updateToolButtonPosition () noexcept
 
void updateButtonsVisibility () noexcept
 
void toolButtonClicked () noexcept
 
void resetAll () noexcept
 
void autoConnect () noexcept
 
void loadFromFile () noexcept
 
void setInteractiveMode (bool enabled) noexcept
 
void updateInteractiveList (QString filter) noexcept
 
void commitInteractiveMode (const QListWidgetItem *listItem) noexcept
 
QMap< Uuid, UuidgetMap () const noexcept
 
void setMap (const QString &cmdText, const QMap< Uuid, Uuid > &map)
 
bool hasAutoConnectablePads () const noexcept
 
bool hasUnconnectedPadsAndUnusedSignals () const noexcept
 
bool askForResetFirst () noexcept
 

Private Attributes

bool mReadOnly
 
int mInteractiveModePadIndex
 
QScopedPointer< DevicePadSignalMapModelmModel
 
QScopedPointer< SortFilterProxyModelmProxy
 
QScopedPointer< QTableView > mView
 
QScopedPointer< QFrame > mInteractiveFrame
 
QScopedPointer< QLabel > mInteractiveLabel1
 
QScopedPointer< QLabel > mInteractiveLabel2
 
QScopedPointer< QLineEdit > mInteractiveEdit
 
QScopedPointer< QToolButton > mInteractiveAbortButton
 
QScopedPointer< QListWidget > mInteractiveList
 
QScopedPointer< QToolButton > mToolButton
 
QScopedPointer< QPushButton > mAutoConnectButton
 
QScopedPointer< QFrame > mButtonsVLine
 
QScopedPointer< QPushButton > mInteractiveConnectButton
 
DevicePadSignalMapmPadSignalMap
 
UndoStackmUndoStack
 
ComponentSignalList mSignals
 
PackagePadList mPads
 

Detailed Description

Constructor & Destructor Documentation

◆ PadSignalMapEditorWidget() [1/2]

PadSignalMapEditorWidget ( QWidget *  parent = nullptr)
explicitnoexcept
+ Here is the call graph for this function:

◆ PadSignalMapEditorWidget() [2/2]

◆ ~PadSignalMapEditorWidget()

~PadSignalMapEditorWidget ( )
noexcept

Member Function Documentation

◆ setFrameStyle()

void setFrameStyle ( int  style)
noexcept

◆ setReadOnly()

void setReadOnly ( bool  readOnly)
noexcept

◆ setReferences()

void setReferences ( UndoStack undoStack,
DevicePadSignalMap map 
)
noexcept

◆ setPadList()

void setPadList ( const PackagePadList list)
noexcept
+ Here is the call graph for this function:

◆ setSignalList()

void setSignalList ( const ComponentSignalList list)
noexcept

◆ eventFilter()

bool eventFilter ( QObject *  watched,
QEvent *  event 
)
overridenoexcept

◆ operator=()

PadSignalMapEditorWidget & operator= ( const PadSignalMapEditorWidget rhs)
delete

◆ statusTipChanged

void statusTipChanged ( const QString &  statusTip)
signal
+ Here is the caller graph for this function:

◆ resizeEvent()

void resizeEvent ( QResizeEvent *  e)
overrideprotectednoexcept

◆ keyPressEvent()

void keyPressEvent ( QKeyEvent *  e)
overrideprotectednoexcept

◆ scheduleToolButtonPositionUpdate()

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

◆ updateToolButtonPosition()

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

◆ updateButtonsVisibility()

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

◆ toolButtonClicked()

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

◆ resetAll()

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

◆ autoConnect()

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

◆ loadFromFile()

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

◆ setInteractiveMode()

void setInteractiveMode ( bool  enabled)
privatenoexcept

◆ updateInteractiveList()

void updateInteractiveList ( QString  filter)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ commitInteractiveMode()

void commitInteractiveMode ( const QListWidgetItem *  listItem)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMap()

QMap< Uuid, Uuid > getMap ( ) const
privatenoexcept
+ Here is the caller graph for this function:

◆ setMap()

void setMap ( const QString &  cmdText,
const QMap< Uuid, Uuid > &  map 
)
private
+ Here is the caller graph for this function:

◆ hasAutoConnectablePads()

bool hasAutoConnectablePads ( ) const
privatenoexcept
+ Here is the caller graph for this function:

◆ hasUnconnectedPadsAndUnusedSignals()

bool hasUnconnectedPadsAndUnusedSignals ( ) const
privatenoexcept
+ Here is the caller graph for this function:

◆ askForResetFirst()

bool askForResetFirst ( )
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mReadOnly

bool mReadOnly
private

◆ mInteractiveModePadIndex

int mInteractiveModePadIndex
private

◆ mModel

QScopedPointer<DevicePadSignalMapModel> mModel
private

◆ mProxy

QScopedPointer<SortFilterProxyModel> mProxy
private

◆ mView

QScopedPointer<QTableView> mView
private

◆ mInteractiveFrame

QScopedPointer<QFrame> mInteractiveFrame
private

◆ mInteractiveLabel1

QScopedPointer<QLabel> mInteractiveLabel1
private

◆ mInteractiveLabel2

QScopedPointer<QLabel> mInteractiveLabel2
private

◆ mInteractiveEdit

QScopedPointer<QLineEdit> mInteractiveEdit
private

◆ mInteractiveAbortButton

QScopedPointer<QToolButton> mInteractiveAbortButton
private

◆ mInteractiveList

QScopedPointer<QListWidget> mInteractiveList
private

◆ mToolButton

QScopedPointer<QToolButton> mToolButton
private

◆ mAutoConnectButton

QScopedPointer<QPushButton> mAutoConnectButton
private

◆ mButtonsVLine

QScopedPointer<QFrame> mButtonsVLine
private

◆ mInteractiveConnectButton

QScopedPointer<QPushButton> mInteractiveConnectButton
private

◆ mPadSignalMap

DevicePadSignalMap* mPadSignalMap
private

◆ mUndoStack

UndoStack* mUndoStack
private

◆ mSignals

ComponentSignalList mSignals
private

◆ mPads

PackagePadList mPads
private

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