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

The SymbolEditorState_AddPins class. More...

#include <symboleditorstate_addpins.h>

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

Signals

void nameChanged (const CircuitIdentifier &name)
 
void lengthChanged (const UnsignedLength &length)
 
- Signals inherited from SymbolEditorState
void pasteRequested ()
 

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 (const GraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneLeftMouseButtonPressed (const GraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneRightMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept override
 
bool processRotate (const Angle &rotation) noexcept override
 
bool processMirror (Qt::Orientation orientation) noexcept override
 
bool processImportPins () noexcept override
 
const CircuitIdentifiergetName () const noexcept
 
void setName (const CircuitIdentifier &name) noexcept
 
const UnsignedLengthgetLength () const noexcept
 
void setLength (const UnsignedLength &length) noexcept
 
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
 
std::unique_ptr< SymbolClipboardDatatakeDataToPaste () noexcept
 
virtual bool processKeyPressed (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processKeyReleased (const GraphicsSceneKeyEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (const GraphicsSceneMouseEvent &e) noexcept
 
virtual bool processSelectAll () noexcept
 
virtual bool processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste (std::unique_ptr< SymbolClipboardData > data=nullptr) noexcept
 
virtual bool processMove (const Point &delta)
 
virtual bool processSnapToGrid () noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processEditProperties () noexcept
 
virtual bool processImportDxf () noexcept
 
virtual bool processAbortCommand () noexcept
 
virtual bool processGridIntervalChanged (const PositiveLength &inverval) noexcept
 
SymbolEditorStateoperator= (const SymbolEditorState &rhs)=delete
 

Private Member Functions

bool addNextPin (const Point &pos) noexcept
 
CircuitIdentifier determineNextPinName () const noexcept
 
bool hasPin (const QString &name) const noexcept
 

Private Attributes

SymbolPin mCurrentProperties
 
std::shared_ptr< SymbolPinmCurrentPin
 
std::shared_ptr< SymbolPinGraphicsItemmCurrentGraphicsItem
 
std::unique_ptr< CmdSymbolPinEditmCurrentEditCmd
 

Additional Inherited Members

- Public Types inherited from SymbolEditorState
using Context = SymbolEditorFsm::Context
 
- Protected Member Functions inherited from SymbolEditorState
void requestPaste (std::unique_ptr< SymbolClipboardData > data) noexcept
 
GraphicsScenegetGraphicsScene () noexcept
 
SymbolGraphicsItemgetGraphicsItem () noexcept
 
PositiveLength getGridInterval () const noexcept
 
const LengthUnitgetLengthUnit () const noexcept
 
QWidget * parentWidget () noexcept
 
- Static Protected Member Functions inherited from SymbolEditorState
static const QSet< const Layer * > & getAllowedTextLayers () noexcept
 
static const QSet< const Layer * > & getAllowedCircleAndPolygonLayers () noexcept
 
- Protected Attributes inherited from SymbolEditorState
Context mContext
 
SymbolEditorFsmAdaptermAdapter
 

Detailed Description

Constructor & Destructor Documentation

◆ SymbolEditorState_AddPins() [1/3]

◆ SymbolEditorState_AddPins() [2/3]

◆ SymbolEditorState_AddPins() [3/3]

SymbolEditorState_AddPins ( const Context context)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~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 ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneLeftMouseButtonPressed()

bool processGraphicsSceneLeftMouseButtonPressed ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processGraphicsSceneRightMouseButtonReleased()

bool processGraphicsSceneRightMouseButtonReleased ( const GraphicsSceneMouseEvent e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ processRotate()

bool processRotate ( const Angle rotation)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

◆ processMirror()

bool processMirror ( Qt::Orientation  orientation)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

◆ processImportPins()

bool processImportPins ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

◆ getName()

const CircuitIdentifier & getName ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ setName()

void setName ( const CircuitIdentifier name)
noexcept

◆ getLength()

const UnsignedLength & getLength ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ setLength()

void setLength ( const UnsignedLength length)
noexcept
+ 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

◆ nameChanged

void nameChanged ( const CircuitIdentifier name)
signal
+ Here is the caller graph for this function:

◆ lengthChanged

void lengthChanged ( const UnsignedLength length)
signal
+ Here is the caller graph for this function:

◆ addNextPin()

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

◆ determineNextPinName()

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

◆ hasPin()

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

Member Data Documentation

◆ mCurrentProperties

SymbolPin mCurrentProperties
private

◆ mCurrentPin

std::shared_ptr<SymbolPin> mCurrentPin
private

◆ mCurrentGraphicsItem

std::shared_ptr<SymbolPinGraphicsItem> mCurrentGraphicsItem
private

◆ mCurrentEditCmd

std::unique_ptr<CmdSymbolPinEdit> mCurrentEditCmd
private

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