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

The CompSymbVarPinSignalMapEditorWidget class. More...

#include <compsymbvarpinsignalmapeditorwidget.h>

Inherits QWidget.

+ Collaboration diagram for CompSymbVarPinSignalMapEditorWidget:

Signals

void edited ()
 

Public Member Functions

 CompSymbVarPinSignalMapEditorWidget (QWidget *parent=nullptr) noexcept
 
 CompSymbVarPinSignalMapEditorWidget (const CompSymbVarPinSignalMapEditorWidget &other)=delete
 
 ~CompSymbVarPinSignalMapEditorWidget () noexcept
 
void setVariant (const workspace::Workspace &ws, const ComponentSignalList &sigs, ComponentSymbolVariant &variant) noexcept
 
void updateVariant () noexcept
 
CompSymbVarPinSignalMapEditorWidgetoperator= (const CompSymbVarPinSignalMapEditorWidget &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 displayTypeChanged (const CmpSigPinDisplayType &dt) noexcept
 
void btnAutoAssignSignalsClicked () noexcept
 
void updateTable (tl::optional< Uuid > selItem=tl::nullopt, tl::optional< Uuid > selPin=tl::nullopt) noexcept
 
void setTableRowContent (int row, const ComponentSymbolVariantItem &item, const ComponentPinSignalMapItem &map, int itemNumber, const Symbol *symbol) noexcept
 
void setComponentSignal (const Uuid &item, const Uuid &pin, const tl::optional< Uuid > &signal) noexcept
 
void setDisplayType (const Uuid &item, const Uuid &pin, const CmpSigPinDisplayType &dt) noexcept
 
int getRowOfTableCellWidget (QObject *obj) const noexcept
 
tl::optional< UuidgetItemUuidOfRow (int row) const noexcept
 
tl::optional< UuidgetPinUuidOfRow (int row) const noexcept
 
int getTotalPinCount () const noexcept
 
const QStringList & getLocaleOrder () const noexcept
 

Private Attributes

QTableWidget * mTable
 
const workspace::WorkspacemWorkspace
 
const ComponentSignalListmSignalList
 
ComponentSymbolVariantmSymbolVariant
 
tl::optional< UuidmSelectedItem
 
tl::optional< UuidmSelectedPin
 

Detailed Description

The CompSymbVarPinSignalMapEditorWidget class.

Author
ubruhin
Date
2017-03-19

Member Enumeration Documentation

enum Column
private
Enumerator
COLUMN_SYMBOL 
COLUMN_PIN 
COLUMN_SIGNAL 
COLUMN_DISPLAYTYPE 
_COLUMN_COUNT 

Constructor & Destructor Documentation

CompSymbVarPinSignalMapEditorWidget ( QWidget *  parent = nullptr)
explicitnoexcept

+ Here is the call graph for this function:

Member Function Documentation

void setVariant ( const workspace::Workspace ws,
const ComponentSignalList sigs,
ComponentSymbolVariant variant 
)
noexcept
void updateVariant ( )
inlinenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void edited ( )
signal

+ Here is the caller graph for this function:

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 displayTypeChanged ( const CmpSigPinDisplayType dt)
privatenoexcept

+ Here is the caller graph for this function:

void btnAutoAssignSignalsClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void updateTable ( tl::optional< Uuid selItem = tl::nullopt,
tl::optional< Uuid selPin = tl::nullopt 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setTableRowContent ( int  row,
const ComponentSymbolVariantItem item,
const ComponentPinSignalMapItem map,
int  itemNumber,
const Symbol symbol 
)
privatenoexcept

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

void setDisplayType ( const Uuid item,
const Uuid pin,
const CmpSigPinDisplayType dt 
)
privatenoexcept

+ Here is the call graph for this function:

int getRowOfTableCellWidget ( QObject *  obj) const
privatenoexcept
tl::optional< Uuid > getItemUuidOfRow ( int  row) const
privatenoexcept

+ Here is the call graph for this function:

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

+ Here is the call graph for this function:

int getTotalPinCount ( ) const
privatenoexcept

+ Here is the call graph for this function:

const QStringList & getLocaleOrder ( ) const
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

QTableWidget* mTable
private
const workspace::Workspace* mWorkspace
private
const ComponentSignalList* mSignalList
private
ComponentSymbolVariant* mSymbolVariant
private
tl::optional<Uuid> mSelectedItem
private
tl::optional<Uuid> mSelectedPin
private

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