LibrePCB Developers Documentation
SymbolEditorState_AddPins Class Referencefinal

The SymbolEditorState_AddPins class. More...

#include <symboleditorstate_addpins.h>

+ Inheritance diagram for SymbolEditorState_AddPins:
+ Collaboration diagram for SymbolEditorState_AddPins:

Public Member Functions

 SymbolEditorState_AddPins ()=delete
 
 SymbolEditorState_AddPins (const SymbolEditorState_AddPins &other)=delete
 
 SymbolEditorState_AddPins (const Context &context) noexcept
 
 ~SymbolEditorState_AddPins () noexcept
 
bool entry () noexcept override
 
bool exit () noexcept override
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override
 
bool processRotateCw () noexcept override
 
bool processRotateCcw () noexcept override
 
SymbolEditorState_AddPinsoperator= (const SymbolEditorState_AddPins &rhs)=delete
 
- Public Member Functions inherited from SymbolEditorState
 SymbolEditorState ()=delete
 
 SymbolEditorState (const SymbolEditorState &other)=delete
 
 SymbolEditorState (const Context &context) noexcept
 
virtual ~SymbolEditorState () noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste () noexcept
 
virtual bool processMirror () noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processAbortCommand () noexcept
 
SymbolEditorStateoperator= (const SymbolEditorState &rhs)=delete
 

Private Member Functions

bool addNextPin (const Point &pos, const Angle &rot) noexcept
 
void nameLineEditTextChanged (const QString &text) noexcept
 
void lengthEditValueChanged (const UnsignedLength &value) noexcept
 
QString determineNextPinName () const noexcept
 
bool hasPin (const QString &name) const noexcept
 

Private Attributes

QScopedPointer< CmdSymbolPinEditmEditCmd
 
SymbolPinmCurrentPin
 
SymbolPinGraphicsItemmCurrentGraphicsItem
 
QLineEdit * mNameLineEdit
 
UnsignedLength mLastLength
 

Additional Inherited Members

- Public Types inherited from SymbolEditorState
using Context = SymbolEditorFsm::Context
 
- Protected Member Functions inherited from SymbolEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from SymbolEditorState
Context mContext
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolEditorState_AddPins() [1/3]

◆ SymbolEditorState_AddPins() [2/3]

◆ SymbolEditorState_AddPins() [3/3]

SymbolEditorState_AddPins ( const Context context)
explicitnoexcept

◆ ~SymbolEditorState_AddPins()

Member Function Documentation

◆ entry()

bool entry ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ exit()

bool exit ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneMouseMoved()

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneLeftMouseButtonPressed()

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneRightMouseButtonReleased()

bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processRotateCw()

bool processRotateCw ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processRotateCcw()

bool processRotateCcw ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

SymbolEditorState_AddPins& operator= ( const SymbolEditorState_AddPins rhs)
delete

◆ addNextPin()

bool addNextPin ( const Point pos,
const Angle rot 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ nameLineEditTextChanged()

void nameLineEditTextChanged ( const QString &  text)
privatenoexcept
+ Here is the caller graph for this function:

◆ lengthEditValueChanged()

void lengthEditValueChanged ( const UnsignedLength value)
privatenoexcept
+ Here is the caller graph for this function:

◆ determineNextPinName()

QString determineNextPinName ( ) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ hasPin()

bool hasPin ( const QString &  name) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mEditCmd

QScopedPointer<CmdSymbolPinEdit> mEditCmd
private

◆ mCurrentPin

SymbolPin* mCurrentPin
private

◆ mCurrentGraphicsItem

SymbolPinGraphicsItem* mCurrentGraphicsItem
private

◆ mNameLineEdit

QLineEdit* mNameLineEdit
private

◆ mLastLength

UnsignedLength mLastLength
private

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