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

The PackagePadListEditorWidget class. More...

#include <packagepadlisteditorwidget.h>

+ Inheritance diagram for PackagePadListEditorWidget:
+ Collaboration diagram for PackagePadListEditorWidget:

Public Member Functions

 PackagePadListEditorWidget (QWidget *parent=nullptr) noexcept
 
 PackagePadListEditorWidget (const PackagePadListEditorWidget &other)=delete
 
 ~PackagePadListEditorWidget () noexcept
 
void setReferences (PackagePadList &list, UndoStack *stack) noexcept
 
PackagePadListEditorWidgetoperator= (const PackagePadListEditorWidget &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 btnAddRemoveClicked () noexcept
 
void updateTable (const tl::optional< Uuid > &selected=tl::nullopt) noexcept
 
void setTableRowContent (int row, const tl::optional< Uuid > &uuid, const QString &name) noexcept
 
void addPad (const QString &name) noexcept
 
void removePad (const Uuid &uuid) noexcept
 
CircuitIdentifier setName (const Uuid &uuid, const QString &name) noexcept
 
int getRowOfTableCellWidget (QObject *obj) const noexcept
 
tl::optional< UuidgetUuidOfRow (int row) const noexcept
 
CircuitIdentifier validateNameOrThrow (const QString &name) const
 
void executeCommand (UndoCommand *cmd)
 
QString getNextPadNameProposal () const noexcept
 
int newPadRow () const noexcept
 
int indexToRow (int index) const noexcept
 
int rowToIndex (int row) const noexcept
 
bool isExistingPadRow (int row) const noexcept
 
bool isNewPadRow (int row) const noexcept
 
void listObjectAdded (const PackagePadList &list, int newIndex, const std::shared_ptr< PackagePad > &ptr) noexceptoverride
 
void listObjectRemoved (const PackagePadList &list, int oldIndex, const std::shared_ptr< PackagePad > &ptr) noexceptoverride
 
- Private Member Functions inherited from SerializableObjectList< T, P >::IF_Observer
virtual void listObjectAdded (const SerializableObjectList< T, P > &list, int newIndex, const std::shared_ptr< T > &ptr) noexcept=0
 
virtual void listObjectRemoved (const SerializableObjectList< T, P > &list, int oldIndex, const std::shared_ptr< T > &ptr) noexcept=0
 

Private Attributes

QTableWidget * mTable
 
PackagePadListmPadList
 
UndoStackmUndoStack
 
tl::optional< UuidmSelectedPad
 

Detailed Description

The PackagePadListEditorWidget class.

Author
ubruhin
Date
2017-03-27

Member Enumeration Documentation

enum Column
private
Enumerator
COLUMN_NAME 
COLUMN_BUTTONS 
_COLUMN_COUNT 

Constructor & Destructor Documentation

PackagePadListEditorWidget ( 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 ( PackagePadList list,
UndoStack stack 
)
noexcept
PackagePadListEditorWidget& operator= ( const PackagePadListEditorWidget rhs)
delete
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 btnAddRemoveClicked ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void updateTable ( const tl::optional< Uuid > &  selected = tl::nullopt)
privatenoexcept

+ Here is the call graph for this function:

void setTableRowContent ( int  row,
const tl::optional< Uuid > &  uuid,
const QString &  name 
)
privatenoexcept

+ Here is the call graph for this function:

void addPad ( const QString &  name)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void removePad ( const Uuid uuid)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

CircuitIdentifier setName ( const Uuid uuid,
const QString &  name 
)
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:

void executeCommand ( UndoCommand cmd)
private

+ Here is the call graph for this function:

QString getNextPadNameProposal ( ) const
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int newPadRow ( ) const
inlineprivatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int indexToRow ( int  index) const
inlineprivatenoexcept
int rowToIndex ( int  row) const
inlineprivatenoexcept
bool isExistingPadRow ( int  row) const
inlineprivatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool isNewPadRow ( int  row) const
inlineprivatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void listObjectAdded ( const PackagePadList list,
int  newIndex,
const std::shared_ptr< PackagePad > &  ptr 
)
overrideprivatenoexcept
void listObjectRemoved ( const PackagePadList list,
int  oldIndex,
const std::shared_ptr< PackagePad > &  ptr 
)
overrideprivatenoexcept

Member Data Documentation

QTableWidget* mTable
private
PackagePadList* mPadList
private
UndoStack* mUndoStack
private
tl::optional<Uuid> mSelectedPad
private

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