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

The DevicePadSignalMapModel class. More...

#include <devicepadsignalmapmodel.h>

Inherits QAbstractTableModel.

+ Collaboration diagram for DevicePadSignalMapModel:

Public Types

enum  Column
 

Public Member Functions

 DevicePadSignalMapModel ()=delete
 
 DevicePadSignalMapModel (const DevicePadSignalMapModel &other) noexcept
 
 DevicePadSignalMapModel (QObject *parent=nullptr) noexcept
 
 ~DevicePadSignalMapModel () noexcept
 
void setPadSignalMap (DevicePadSignalMap *map) noexcept
 
void setUndoStack (UndoStack *stack) noexcept
 
void setSignalList (const ComponentSignalList &list) noexcept
 
void setPadList (const PackagePadList &list) noexcept
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
DevicePadSignalMapModeloperator= (const DevicePadSignalMapModel &rhs) noexcept
 

Private Member Functions

void padSignalMapEdited (const DevicePadSignalMap &map, int index, const std::shared_ptr< const DevicePadSignalMapItem > &item, DevicePadSignalMap::Event event) noexcept
 
void execCmd (UndoCommand *cmd)
 
void updateComboBoxItems () noexcept
 

Private Attributes

DevicePadSignalMapmPadSignalMap
 
UndoStackmUndoStack
 
ComponentSignalList mSignals
 
PackagePadList mPads
 
QVector< QPair< QString,
QVariant > > 
mComboBoxItems
 
DevicePadSignalMap::OnEditedSlot mOnEditedSlot
 

Detailed Description

Member Enumeration Documentation

enum Column
Enumerator
COLUMN_PAD 
COLUMN_SIGNAL 
_COLUMN_COUNT 

Constructor & Destructor Documentation

DevicePadSignalMapModel ( const DevicePadSignalMapModel other)
noexcept
DevicePadSignalMapModel ( QObject *  parent = nullptr)
explicitnoexcept
~DevicePadSignalMapModel ( )
noexcept

Member Function Documentation

void setPadSignalMap ( DevicePadSignalMap map)
noexcept
void setUndoStack ( UndoStack stack)
noexcept
void setSignalList ( const ComponentSignalList list)
noexcept
void setPadList ( const PackagePadList list)
noexcept
int rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

+ Here is the call graph for this function:

int columnCount ( const QModelIndex &  parent = QModelIndex()) const
override
QVariant data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

+ Here is the call graph for this function:

QVariant headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

+ Here is the call graph for this function:

Qt::ItemFlags flags ( const QModelIndex &  index) const
override
bool setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override

+ Here is the call graph for this function:

DevicePadSignalMapModel& operator= ( const DevicePadSignalMapModel rhs)
noexcept
void padSignalMapEdited ( const DevicePadSignalMap map,
int  index,
const std::shared_ptr< const DevicePadSignalMapItem > &  item,
DevicePadSignalMap::Event  event 
)
privatenoexcept
void execCmd ( UndoCommand cmd)
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void updateComboBoxItems ( )
privatenoexcept

Member Data Documentation

DevicePadSignalMap* mPadSignalMap
private
UndoStack* mUndoStack
private
ComponentSignalList mSignals
private
PackagePadList mPads
private
QVector<QPair<QString, QVariant> > mComboBoxItems
private
DevicePadSignalMap::OnEditedSlot mOnEditedSlot
private

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