LibrePCB Developers Documentation
SGI_Text Class Referencefinal

The SGI_Text class. More...

#include <sgi_text.h>

Inherits QGraphicsItemGroup.

+ Collaboration diagram for SGI_Text:

Public Member Functions

 SGI_Text ()=delete
 
 SGI_Text (const SGI_Text &other)=delete
 
 SGI_Text (SI_Text &text, std::weak_ptr< SGI_Symbol > symbolItem, const IF_GraphicsLayerProvider &lp) noexcept
 
virtual ~SGI_Text () noexcept
 
SI_TextgetText () noexcept
 
const std::weak_ptr< SGI_Symbol > & getSymbolGraphicsItem () noexcept
 
virtual QPainterPath shape () const noexcept override
 
SGI_Textoperator= (const SGI_Text &rhs)=delete
 

Private Member Functions

void textEdited (const SI_Text &obj, SI_Text::Event event) noexcept
 
void symbolGraphicsItemEdited (const SGI_Symbol &obj, SGI_Symbol::Event event) noexcept
 
virtual QVariant itemChange (GraphicsItemChange change, const QVariant &value) noexcept override
 
void updateText () noexcept
 
void updateAnchorLayer () noexcept
 
void updateAnchorLine () noexcept
 

Private Attributes

SI_TextmText
 
std::weak_ptr< SGI_SymbolmSymbolGraphicsItem
 
const IF_GraphicsLayerProvidermLayerProvider
 
QScopedPointer< TextGraphicsItemmTextGraphicsItem
 
QScopedPointer< LineGraphicsItemmAnchorGraphicsItem
 
SI_Text::OnEditedSlot mOnEditedSlot
 
SGI_Symbol::OnEditedSlot mOnSymbolEditedSlot
 

Detailed Description

The SGI_Text class.

Constructor & Destructor Documentation

◆ SGI_Text() [1/3]

SGI_Text ( )
delete

◆ SGI_Text() [2/3]

SGI_Text ( const SGI_Text other)
delete

◆ SGI_Text() [3/3]

SGI_Text ( SI_Text text,
std::weak_ptr< SGI_Symbol symbolItem,
const IF_GraphicsLayerProvider lp 
)
noexcept

◆ ~SGI_Text()

~SGI_Text ( )
virtualnoexcept

Member Function Documentation

◆ getText()

SI_Text & getText ( )
inlinenoexcept

◆ getSymbolGraphicsItem()

const std::weak_ptr< SGI_Symbol > & getSymbolGraphicsItem ( )
inlinenoexcept

◆ shape()

QPainterPath shape ( ) const
overridevirtualnoexcept

◆ operator=()

SGI_Text & operator= ( const SGI_Text rhs)
delete

◆ textEdited()

void textEdited ( const SI_Text obj,
SI_Text::Event  event 
)
privatenoexcept

◆ symbolGraphicsItemEdited()

void symbolGraphicsItemEdited ( const SGI_Symbol obj,
SGI_Symbol::Event  event 
)
privatenoexcept

◆ itemChange()

QVariant itemChange ( GraphicsItemChange  change,
const QVariant &  value 
)
overrideprivatevirtualnoexcept

◆ updateText()

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

◆ updateAnchorLayer()

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

◆ updateAnchorLine()

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

Member Data Documentation

◆ mText

SI_Text& mText
private

◆ mSymbolGraphicsItem

std::weak_ptr<SGI_Symbol> mSymbolGraphicsItem
private

◆ mLayerProvider

const IF_GraphicsLayerProvider& mLayerProvider
private

◆ mTextGraphicsItem

QScopedPointer<TextGraphicsItem> mTextGraphicsItem
private

◆ mAnchorGraphicsItem

QScopedPointer<LineGraphicsItem> mAnchorGraphicsItem
private

◆ mOnEditedSlot

SI_Text::OnEditedSlot mOnEditedSlot
private

◆ mOnSymbolEditedSlot

SGI_Symbol::OnEditedSlot mOnSymbolEditedSlot
private

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