LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 () noexceptoverride
 
bool exit () noexceptoverride
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processRotateCw () noexceptoverride
 
bool processRotateCcw () noexceptoverride
 
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 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 lengthSpinBoxValueChanged (double 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

The SymbolEditorState_AddPins class.

Author
ubruhin
Date
2016-11-27

Constructor & Destructor Documentation

SymbolEditorState_AddPins ( const Context context)
explicitnoexcept

Member Function Documentation

bool entry ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool exit ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

bool processRotateCw ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processRotateCcw ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

SymbolEditorState_AddPins& operator= ( const SymbolEditorState_AddPins rhs)
delete
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:

void nameLineEditTextChanged ( const QString &  text)
privatenoexcept

+ Here is the caller graph for this function:

void lengthSpinBoxValueChanged ( double  value)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

QString determineNextPinName ( ) const
privatenoexcept

+ Here is the call graph for this function:

bool hasPin ( const QString &  name) const
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

QScopedPointer<CmdSymbolPinEdit> mEditCmd
private
SymbolPin* mCurrentPin
private
SymbolPinGraphicsItem* mCurrentGraphicsItem
private
QLineEdit* mNameLineEdit
private
UnsignedLength mLastLength
private

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