LibrePCB Developers Documentation
Loading...
Searching...
No Matches
DevicePinoutBuilder Class Referencefinal

The DevicePinoutBuilder class. More...

#include <devicepinoutbuilder.h>

Inherits QObject.

+ Collaboration diagram for DevicePinoutBuilder:

Public Member Functions

 DevicePinoutBuilder ()=delete
 
 DevicePinoutBuilder (const DevicePinoutBuilder &other)=delete
 
 DevicePinoutBuilder (DevicePadSignalMap &list, UndoStack &undoStack, QObject *parent=nullptr) noexcept
 
 ~DevicePinoutBuilder () noexcept
 
void setPads (const PackagePadList &list) noexcept
 
void setSignals (const ComponentSignalList &list) noexcept
 
bool hasUnconnectedPadsAndSignals () const noexcept
 
bool hasAutoConnectablePads () const noexcept
 
bool areAllPadsUnconnected () const noexcept
 
void resetAll () noexcept
 
void autoConnect () noexcept
 
void loadFromFile () noexcept
 
void startInteractiveMode () noexcept
 
void commitInteractiveMode () noexcept
 
void exitInteractiveMode () noexcept
 
int getCurrentPadNumber () const noexcept
 
QString getCurrentPadName () const noexcept
 
const QString & getSignalsFilter () const noexcept
 
void setSignalsFilter (const QString &filter) noexcept
 
const auto & getFilteredSignals () noexcept
 
int getCurrentSignalIndex () const noexcept
 
void setCurrentSignalIndex (int index) noexcept
 
DevicePinoutBuilderoperator= (const DevicePinoutBuilder &rhs)=delete
 

Private Types

typedef std::pair< std::shared_ptr< const ComponentSignal >, bool > SignalChoice
 

Private Member Functions

void loadNextPad () noexcept
 
bool commitCurrentPad () noexcept
 
void updateFilteredSignals () noexcept
 
QMap< Uuid, UuidgetMap () const noexcept
 
void setMap (const QString &cmdText, const QMap< Uuid, Uuid > &map)
 
bool askForResetFirst () noexcept
 

Private Attributes

DevicePadSignalMapmList
 
UndoStackmUndoStack
 
PackagePadList mPadsSorted
 
ComponentSignalList mSignals
 
int mCurrentPadIndex
 
QString mSignalsFilter
 
QVector< SignalChoicemFilteredSignals
 
std::shared_ptr< slint::VectorModel< ui::DeviceInteractivePinoutSignalData > > mFilteredSignalsModel
 
int mCurrentSignalIndex
 

Detailed Description

Member Typedef Documentation

◆ SignalChoice

typedef std::pair<std::shared_ptr<const ComponentSignal>, bool> SignalChoice
private

Constructor & Destructor Documentation

◆ DevicePinoutBuilder() [1/3]

DevicePinoutBuilder ( )
delete

◆ DevicePinoutBuilder() [2/3]

DevicePinoutBuilder ( const DevicePinoutBuilder other)
delete

◆ DevicePinoutBuilder() [3/3]

DevicePinoutBuilder ( DevicePadSignalMap list,
UndoStack undoStack,
QObject *  parent = nullptr 
)
noexcept

◆ ~DevicePinoutBuilder()

~DevicePinoutBuilder ( )
noexcept

Member Function Documentation

◆ setPads()

void setPads ( const PackagePadList list)
noexcept
+ Here is the call graph for this function:

◆ setSignals()

void setSignals ( const ComponentSignalList list)
noexcept

◆ hasUnconnectedPadsAndSignals()

bool hasUnconnectedPadsAndSignals ( ) const
noexcept
+ Here is the call graph for this function:

◆ hasAutoConnectablePads()

bool hasAutoConnectablePads ( ) const
noexcept
+ Here is the call graph for this function:

◆ areAllPadsUnconnected()

bool areAllPadsUnconnected ( ) const
noexcept
+ Here is the call graph for this function:

◆ resetAll()

void resetAll ( )
noexcept
+ Here is the call graph for this function:

◆ autoConnect()

void autoConnect ( )
noexcept
+ Here is the call graph for this function:

◆ loadFromFile()

void loadFromFile ( )
noexcept
+ Here is the call graph for this function:

◆ startInteractiveMode()

void startInteractiveMode ( )
noexcept
+ Here is the call graph for this function:

◆ commitInteractiveMode()

void commitInteractiveMode ( )
noexcept
+ Here is the call graph for this function:

◆ exitInteractiveMode()

void exitInteractiveMode ( )
noexcept
+ Here is the caller graph for this function:

◆ getCurrentPadNumber()

int getCurrentPadNumber ( ) const
inlinenoexcept

◆ getCurrentPadName()

QString getCurrentPadName ( ) const
noexcept
+ Here is the call graph for this function:

◆ getSignalsFilter()

const QString & getSignalsFilter ( ) const
inlinenoexcept

◆ setSignalsFilter()

void setSignalsFilter ( const QString &  filter)
noexcept

◆ getFilteredSignals()

const auto & getFilteredSignals ( )
inlinenoexcept

◆ getCurrentSignalIndex()

int getCurrentSignalIndex ( ) const
inlinenoexcept

◆ setCurrentSignalIndex()

void setCurrentSignalIndex ( int  index)
noexcept

◆ operator=()

DevicePinoutBuilder & operator= ( const DevicePinoutBuilder rhs)
delete

◆ loadNextPad()

void loadNextPad ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ commitCurrentPad()

bool commitCurrentPad ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateFilteredSignals()

void updateFilteredSignals ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMap()

QMap< Uuid, Uuid > getMap ( ) const
privatenoexcept
+ Here is the caller graph for this function:

◆ setMap()

void setMap ( const QString &  cmdText,
const QMap< Uuid, Uuid > &  map 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ askForResetFirst()

bool askForResetFirst ( )
privatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mList

DevicePadSignalMap& mList
private

◆ mUndoStack

UndoStack& mUndoStack
private

◆ mPadsSorted

PackagePadList mPadsSorted
private

◆ mSignals

ComponentSignalList mSignals
private

◆ mCurrentPadIndex

int mCurrentPadIndex
private

◆ mSignalsFilter

QString mSignalsFilter
private

◆ mFilteredSignals

QVector<SignalChoice> mFilteredSignals
private

◆ mFilteredSignalsModel

std::shared_ptr<slint::VectorModel<ui::DeviceInteractivePinoutSignalData> > mFilteredSignalsModel
private

◆ mCurrentSignalIndex

int mCurrentSignalIndex
private

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