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

The ComponentSignalListEditorWidget class. More...

#include <componentsignallisteditorwidget.h>

Inherits QWidget, and IF_Observer.

+ Collaboration diagram for ComponentSignalListEditorWidget:

Public Member Functions

 ComponentSignalListEditorWidget (QWidget *parent=nullptr) noexcept
 
 ComponentSignalListEditorWidget (const ComponentSignalListEditorWidget &other)=delete
 
 ~ComponentSignalListEditorWidget () noexcept
 
void setReferences (UndoStack *undoStack, ComponentSignalList *list) noexcept
 
ComponentSignalListEditorWidgetoperator= (const ComponentSignalListEditorWidget &rhs)=delete
 

Private Types

enum  Column
 

Private Member Functions

void currentCellChanged (int currentRow, int currentColumn, int previousRow, int previousColumn) noexcept
 
void tableCellChanged (int row, int column) noexcept
 
void isRequiredChanged (bool checked) noexcept
 
void btnAddRemoveClicked () noexcept
 
void listObjectAdded (const ComponentSignalList &list, int newIndex, const std::shared_ptr< ComponentSignal > &ptr) noexceptoverride
 
void listObjectRemoved (const ComponentSignalList &list, int oldIndex, const std::shared_ptr< ComponentSignal > &ptr) noexceptoverride
 
void updateTable () noexcept
 
void setTableRowContent (int row, const tl::optional< Uuid > &uuid, const QString &name, bool required, const QString &forcedNetName) noexcept
 
void addSignal (const QString &name, bool required, const QString &forcedNetName) noexcept
 
void removeSignal (const Uuid &uuid) noexcept
 
bool setName (const Uuid &uuid, const QString &name) noexcept
 
void setIsRequired (const Uuid &uuid, bool required) noexcept
 
void setForcedNetName (const Uuid &uuid, const QString &netname) noexcept
 
int getRowOfTableCellWidget (QObject *obj) const noexcept
 
tl::optional< UuidgetUuidOfRow (int row) const noexcept
 
CircuitIdentifier validateNameOrThrow (const QString &name) const
 
int newSignalRow () const noexcept
 
int indexToRow (int index) const noexcept
 
int rowToIndex (int row) const noexcept
 
bool isExistingSignalRow (int row) const noexcept
 
bool isNewSignalRow (int row) const noexcept
 

Static Private Member Functions

static QString cleanForcedNetName (const QString &name) noexcept
 

Private Attributes

QTableWidget * mTable
 
UndoStackmUndoStack
 
ComponentSignalListmSignalList
 
tl::optional< UuidmSelectedSignal
 

Detailed Description

The ComponentSignalListEditorWidget class.

Author
ubruhin
Date
2017-03-12

Member Enumeration Documentation

enum Column
private
Enumerator
COLUMN_NAME 
COLUMN_ISREQUIRED 
COLUMN_FORCEDNETNAME 
COLUMN_BUTTONS 
_COLUMN_COUNT 

Constructor & Destructor Documentation

ComponentSignalListEditorWidget ( QWidget *  parent = nullptr)
explicitnoexcept

+ Here is the call graph for this function:

+ Here is the call graph for this function:

Member Function Documentation

void setReferences ( UndoStack undoStack,
ComponentSignalList list 
)
noexcept

+ Here is the call graph for this function:

+ 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 tableCellChanged ( int  row,
int  column 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void isRequiredChanged ( bool  checked)
privatenoexcept

+ Here is the caller graph for this function:

void btnAddRemoveClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

+ Here is the call graph for this function:

void listObjectRemoved ( const ComponentSignalList list,
int  oldIndex,
const std::shared_ptr< ComponentSignal > &  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 tl::optional< Uuid > &  uuid,
const QString &  name,
bool  required,
const QString &  forcedNetName 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addSignal ( const QString &  name,
bool  required,
const QString &  forcedNetName 
)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void removeSignal ( const Uuid uuid)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool setName ( const Uuid uuid,
const QString &  name 
)
privatenoexcept

+ Here is the call graph for this function:

void setIsRequired ( const Uuid uuid,
bool  required 
)
privatenoexcept

+ Here is the call graph for this function:

void setForcedNetName ( const Uuid uuid,
const QString &  netname 
)
privatenoexcept

+ Here is the call graph for this function:

int getRowOfTableCellWidget ( QObject *  obj) const
privatenoexcept

+ Here is the caller graph for this function:

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

+ Here is the caller graph for this function:

CircuitIdentifier validateNameOrThrow ( const QString &  name) const
private

+ Here is the call graph for this function:

QString cleanForcedNetName ( const QString &  name)
staticprivatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int newSignalRow ( ) const
inlineprivatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int indexToRow ( int  index) const
inlineprivatenoexcept

+ Here is the caller graph for this function:

int rowToIndex ( int  row) const
inlineprivatenoexcept
bool isExistingSignalRow ( int  row) const
inlineprivatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool isNewSignalRow ( int  row) const
inlineprivatenoexcept

+ 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
ComponentSignalList* mSignalList
private
tl::optional<Uuid> mSelectedSignal
private

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