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

The PadSignalMapEditorWidget class. More...

#include <padsignalmapeditorwidget.h>

Inherits QWidget, and IF_Observer.

+ Collaboration diagram for PadSignalMapEditorWidget:

Public Member Functions

 PadSignalMapEditorWidget (QWidget *parent=nullptr) noexcept
 
 PadSignalMapEditorWidget (const PadSignalMapEditorWidget &other)=delete
 
 ~PadSignalMapEditorWidget () noexcept
 
void setReferences (UndoStack *undoStack, DevicePadSignalMap *map) noexcept
 
void setPadList (const PackagePadList &list) noexcept
 
void setSignalList (const ComponentSignalList &list) noexcept
 
PadSignalMapEditorWidgetoperator= (const PadSignalMapEditorWidget &rhs)=delete
 

Private Types

enum  Column
 

Private Member Functions

void currentCellChanged (int currentRow, int currentColumn, int previousRow, int previousColumn) noexcept
 
void componentSignalChanged (int index) noexcept
 
void listObjectAdded (const DevicePadSignalMap &list, int newIndex, const std::shared_ptr< DevicePadSignalMapItem > &ptr) noexceptoverride
 
void listObjectRemoved (const DevicePadSignalMap &list, int oldIndex, const std::shared_ptr< DevicePadSignalMapItem > &ptr) noexceptoverride
 
void updateTable () noexcept
 
void setTableRowContent (int row, const Uuid &padUuid, const QString &padName, const tl::optional< Uuid > &signalUuid) noexcept
 
void setComponentSignal (const Uuid &pad, const tl::optional< Uuid > &signal) noexcept
 
tl::optional< UuidgetPadUuidOfTableCellWidget (QObject *obj) const noexcept
 
tl::optional< UuidgetPadUuidOfRow (int row) const noexcept
 

Private Attributes

QTableWidget * mTable
 
UndoStackmUndoStack
 
DevicePadSignalMapmPadSignalMap
 
PackagePadList mPads
 
ComponentSignalList mSignals
 
tl::optional< UuidmSelectedPad
 

Detailed Description

The PadSignalMapEditorWidget class.

Author
ubruhin
Date
2017-03-25

Member Enumeration Documentation

enum Column
private
Enumerator
COLUMN_PAD 
COLUMN_SIGNAL 
_COLUMN_COUNT 

Constructor & Destructor Documentation

PadSignalMapEditorWidget ( QWidget *  parent = nullptr)
explicitnoexcept

+ Here is the call graph for this function:

~PadSignalMapEditorWidget ( )
noexcept

+ Here is the call graph for this function:

Member Function Documentation

void setReferences ( UndoStack undoStack,
DevicePadSignalMap map 
)
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setPadList ( const PackagePadList list)
noexcept
void setSignalList ( const ComponentSignalList list)
noexcept
PadSignalMapEditorWidget& operator= ( const PadSignalMapEditorWidget rhs)
delete
void currentCellChanged ( int  currentRow,
int  currentColumn,
int  previousRow,
int  previousColumn 
)
privatenoexcept

+ Here is the caller graph for this function:

void componentSignalChanged ( int  index)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void listObjectAdded ( const DevicePadSignalMap list,
int  newIndex,
const std::shared_ptr< DevicePadSignalMapItem > &  ptr 
)
overrideprivatenoexcept

+ Here is the call graph for this function:

void listObjectRemoved ( const DevicePadSignalMap list,
int  oldIndex,
const std::shared_ptr< DevicePadSignalMapItem > &  ptr 
)
overrideprivatenoexcept

+ Here is the call graph for this function:

void updateTable ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setTableRowContent ( int  row,
const Uuid padUuid,
const QString &  padName,
const tl::optional< Uuid > &  signalUuid 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setComponentSignal ( const Uuid pad,
const tl::optional< Uuid > &  signal 
)
privatenoexcept

+ Here is the call graph for this function:

tl::optional< Uuid > getPadUuidOfTableCellWidget ( QObject *  obj) const
privatenoexcept

+ Here is the call graph for this function:

tl::optional< Uuid > getPadUuidOfRow ( int  row) const
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

QTableWidget* mTable
private
UndoStack* mUndoStack
private
DevicePadSignalMap* mPadSignalMap
private
PackagePadList mPads
private
ComponentSignalList mSignals
private
tl::optional<Uuid> mSelectedPad
private

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