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:

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
 
QSet< EditorWidgetBase::FeaturegetAvailableFeatures () const noexcept override
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override
 
bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override
 
bool processRotate (const Angle &rotation) noexcept override
 
bool processMirror (Qt::Orientation orientation) 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
 
std::unique_ptr< SymbolClipboardDatatakeDataToPaste () noexcept
 
virtual bool processKeyPressed (const QKeyEvent &e) noexcept
 
virtual bool processKeyReleased (const QKeyEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &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
 
SymbolEditorStateoperator= (const SymbolEditorState &rhs)=delete
 

Private Member Functions

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

Private Attributes

std::shared_ptr< SymbolPinmCurrentPin
 
std::shared_ptr< SymbolPinGraphicsItemmCurrentGraphicsItem
 
std::unique_ptr< CmdSymbolPinEditmEditCmd
 
QLineEdit * mNameLineEdit
 
Angle mLastRotation
 
UnsignedLength mLastLength
 

Additional Inherited Members

- Public Types inherited from SymbolEditorState
using Context = SymbolEditorFsm::Context
 
- Signals inherited from SymbolEditorState
void availableFeaturesChanged ()
 
void statusBarMessageChanged (const QString &message, int timeoutMs=-1)
 
void pasteRequested ()
 
- Protected Member Functions inherited from SymbolEditorState
void requestPaste (std::unique_ptr< SymbolClipboardData > data) noexcept
 
const PositiveLengthgetGridInterval () const noexcept
 
const LengthUnitgetLengthUnit () const 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
 

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:

◆ getAvailableFeatures()

QSet< EditorWidgetBase::Feature > getAvailableFeatures ( ) const
overridevirtualnoexcept

Implements SymbolEditorState.

◆ 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:

◆ processRotate()

bool processRotate ( const Angle rotation)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

◆ processMirror()

bool processMirror ( Qt::Orientation  orientation)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

◆ operator=()

SymbolEditorState_AddPins & operator= ( const SymbolEditorState_AddPins rhs)
delete

◆ addNextPin()

bool addNextPin ( const Point pos)
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 call graph for this function:
+ Here is the caller graph for this function:

◆ execMassImport()

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

◆ determineNextPinName()

QString 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

◆ mCurrentPin

std::shared_ptr<SymbolPin> mCurrentPin
private

◆ mCurrentGraphicsItem

std::shared_ptr<SymbolPinGraphicsItem> mCurrentGraphicsItem
private

◆ mEditCmd

std::unique_ptr<CmdSymbolPinEdit> mEditCmd
private

◆ mNameLineEdit

QLineEdit* mNameLineEdit
private

◆ mLastRotation

Angle mLastRotation
private

◆ mLastLength

UnsignedLength mLastLength
private

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