LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BI_StrokeText Class Referencefinal

The BI_StrokeText class. More...

#include <bi_stroketext.h>

+ Inheritance diagram for BI_StrokeText:
+ Collaboration diagram for BI_StrokeText:

Public Member Functions

 BI_StrokeText ()=delete
 
 BI_StrokeText (const BI_StrokeText &other)=delete
 
 BI_StrokeText (Board &board, const BI_StrokeText &other)
 
 BI_StrokeText (Board &board, const SExpression &node)
 
 BI_StrokeText (Board &board, const StrokeText &text)
 
 ~BI_StrokeText () noexcept
 
StrokeTextgetText () noexcept
 
const StrokeTextgetText () const noexcept
 
const UuidgetUuid () const noexcept
 
bool isSelectable () const noexceptoverride
 
BI_FootprintgetFootprint () const noexcept
 
void setFootprint (BI_Footprint *footprint) noexcept
 
void updateGraphicsItems () noexcept
 
void addToBoard () override
 
void removeFromBoard () override
 
void serialize (SExpression &root) const override
 Serialize the object into an existing S-Expression node. More...
 
Type_t getType () const noexceptoverride
 
const PointgetPosition () const noexceptoverride
 
bool getIsMirrored () const noexceptoverride
 
QPainterPath getGrabAreaScenePx () const noexceptoverride
 
void setSelected (bool selected) noexceptoverride
 
BI_StrokeTextoperator= (const BI_StrokeText &rhs)=delete
 
- Public Member Functions inherited from BI_Base
 BI_Base ()=delete
 
 BI_Base (const BI_Base &other)=delete
 
 BI_Base (Board &board) noexcept
 
virtual ~BI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
BoardgetBoard () const noexcept
 
virtual bool isAddedToBoard () const noexcept
 
virtual bool isSelected () const noexcept
 
BI_Baseoperator= (const BI_Base &rhs)=delete
 
- Public Member Functions inherited from SerializableObject
 SerializableObject () noexcept
 
virtual ~SerializableObject () noexcept
 
SExpression serializeToDomElement (const QString &name) const
 Serialize the object to a new S-Expression node. More...
 

Private Slots

void boardAttributesChanged ()
 

Private Member Functions

void init ()
 
void updatePaths () noexcept
 
void strokeTextLayerNameChanged (const GraphicsLayerName &newLayerName) noexceptoverride
 
void strokeTextTextChanged (const QString &newText) noexceptoverride
 
void strokeTextPositionChanged (const Point &newPos) noexceptoverride
 
void strokeTextRotationChanged (const Angle &newRot) noexceptoverride
 
void strokeTextHeightChanged (const PositiveLength &newHeight) noexceptoverride
 
void strokeTextStrokeWidthChanged (const UnsignedLength &newStrokeWidth) noexceptoverride
 
void strokeTextLetterSpacingChanged (const StrokeTextSpacing &spacing) noexceptoverride
 
void strokeTextLineSpacingChanged (const StrokeTextSpacing &spacing) noexceptoverride
 
void strokeTextAlignChanged (const Alignment &newAlign) noexceptoverride
 
void strokeTextMirroredChanged (bool mirrored) noexceptoverride
 
void strokeTextAutoRotateChanged (bool newAutoRotate) noexceptoverride
 
void strokeTextPathsChanged (const QVector< Path > &paths) noexceptoverride
 

Private Attributes

BI_FootprintmFootprint
 
QScopedPointer< StrokeTextmText
 
QScopedPointer
< StrokeTextGraphicsItem
mGraphicsItem
 
QScopedPointer< LineGraphicsItemmAnchorGraphicsItem
 

Additional Inherited Members

- Public Types inherited from BI_Base
enum  Type_t
 
- Static Public Member Functions inherited from SerializableObject
template<typename T >
static void serializeObjectContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName)
 
- Protected Member Functions inherited from BI_Base
void addToBoard (QGraphicsItem *item) noexcept
 
void removeFromBoard (QGraphicsItem *item) noexcept
 
- Protected Member Functions inherited from IF_StrokeTextObserver
 IF_StrokeTextObserver () noexcept
 
 IF_StrokeTextObserver (const IF_StrokeTextObserver &other)=delete
 
virtual ~IF_StrokeTextObserver () noexcept
 
IF_StrokeTextObserveroperator= (const IF_StrokeTextObserver &rhs)=delete
 
- Protected Attributes inherited from BI_Base
BoardmBoard
 

Detailed Description

The BI_StrokeText class.

Constructor & Destructor Documentation

BI_StrokeText ( )
delete
BI_StrokeText ( const BI_StrokeText other)
delete
BI_StrokeText ( Board board,
const BI_StrokeText other 
)

+ Here is the call graph for this function:

BI_StrokeText ( Board board,
const SExpression node 
)

+ Here is the call graph for this function:

BI_StrokeText ( Board board,
const StrokeText text 
)

+ Here is the call graph for this function:

~BI_StrokeText ( )
noexcept

Member Function Documentation

StrokeText& getText ( )
inlinenoexcept

+ Here is the caller graph for this function:

const StrokeText& getText ( ) const
inlinenoexcept
const Uuid & getUuid ( ) const
noexcept
bool isSelectable ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BI_Footprint* getFootprint ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

void setFootprint ( BI_Footprint footprint)
noexcept

+ Here is the caller graph for this function:

void updateGraphicsItems ( )
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void addToBoard ( )
overridevirtual

Implements BI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void removeFromBoard ( )
overridevirtual

Implements BI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void serialize ( SExpression root) const
overridevirtual

Serialize the object into an existing S-Expression node.

This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.

Note
The generated S-Expression node has always the format of the application's major version (it's not possible to generate DOMs of older versions).
Parameters
rootThe target DOM root node
Exceptions
ExceptionThis method throws an exception if an error occurs.

Implements SerializableObject.

Type_t getType ( ) const
inlineoverridevirtualnoexcept

Implements BI_Base.

const Point & getPosition ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the caller graph for this function:

bool getIsMirrored ( ) const
inlineoverridevirtualnoexcept

Implements BI_Base.

QPainterPath getGrabAreaScenePx ( ) const
overridevirtualnoexcept

Implements BI_Base.

+ Here is the caller graph for this function:

void setSelected ( bool  selected)
overridevirtualnoexcept

Reimplemented from BI_Base.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

BI_StrokeText& operator= ( const BI_StrokeText rhs)
delete
void boardAttributesChanged ( )
privateslot

+ Here is the caller graph for this function:

void init ( )
private

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void updatePaths ( )
privatenoexcept
void strokeTextLayerNameChanged ( const GraphicsLayerName newLayerName)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

+ Here is the call graph for this function:

void strokeTextTextChanged ( const QString &  newText)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextPositionChanged ( const Point newPos)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

+ Here is the call graph for this function:

void strokeTextRotationChanged ( const Angle newRot)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextHeightChanged ( const PositiveLength newHeight)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextStrokeWidthChanged ( const UnsignedLength newStrokeWidth)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextLetterSpacingChanged ( const StrokeTextSpacing spacing)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextLineSpacingChanged ( const StrokeTextSpacing spacing)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextAlignChanged ( const Alignment newAlign)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextMirroredChanged ( bool  mirrored)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextAutoRotateChanged ( bool  newAutoRotate)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

void strokeTextPathsChanged ( const QVector< Path > &  paths)
inlineoverrideprivatevirtualnoexcept

Implements IF_StrokeTextObserver.

Member Data Documentation

BI_Footprint* mFootprint
private
QScopedPointer<StrokeText> mText
private
QScopedPointer<StrokeTextGraphicsItem> mGraphicsItem
private
QScopedPointer<LineGraphicsItem> mAnchorGraphicsItem
private

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