LibrePCB Developers Documentation
SI_Text Class Referencefinal

The SI_Text class represents a text label in a schematic. More...

#include <si_text.h>

+ Inheritance diagram for SI_Text:
+ Collaboration diagram for SI_Text:

Public Types

enum class  Event
 
typedef Slot< SI_Text, EventOnEditedSlot
 

Public Member Functions

 SI_Text ()=delete
 
 SI_Text (const SI_Text &other)=delete
 
 SI_Text (Schematic &schematic, const Text &text)
 
 ~SI_Text () noexcept
 
const UuidgetUuid () const noexcept
 
const PointgetPosition () const noexcept
 
const AnglegetRotation () const noexcept
 
const QString & getText () const noexcept
 
TextgetTextObj () noexcept
 
const TextgetTextObj () const noexcept
 
SI_SymbolgetSymbol () const noexcept
 
void setSymbol (SI_Symbol *symbol) noexcept
 
void addToSchematic () override
 
void removeFromSchematic () override
 
SI_Textoperator= (const SI_Text &rhs)=delete
 
- Public Member Functions inherited from SI_Base
 SI_Base ()=delete
 
 SI_Base (const SI_Base &other)=delete
 
 SI_Base (Schematic &schematic) noexcept
 
virtual ~SI_Base () noexcept
 
ProjectgetProject () const noexcept
 
CircuitgetCircuit () const noexcept
 
SchematicgetSchematic () const noexcept
 
virtual bool isAddedToSchematic () const noexcept
 
virtual void addToSchematic ()
 
virtual void removeFromSchematic ()
 
SI_Baseoperator= (const SI_Base &rhs)=delete
 

Public Attributes

Signal< SI_Text, EventonEdited
 

Private Member Functions

void textEdited (const Text &text, Text::Event event) noexcept
 
void updateText () noexcept
 

Private Attributes

QPointer< SI_SymbolmSymbol
 
Text mTextObj
 
QString mText
 
Text::OnEditedSlot mOnTextEditedSlot
 

Additional Inherited Members

- Protected Attributes inherited from SI_Base
SchematicmSchematic
 

Detailed Description

The SI_Text class represents a text label in a schematic.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
PositionChanged 
LayerNameChanged 
TextChanged 

Constructor & Destructor Documentation

◆ SI_Text() [1/3]

SI_Text ( )
delete

◆ SI_Text() [2/3]

SI_Text ( const SI_Text other)
delete

◆ SI_Text() [3/3]

SI_Text ( Schematic schematic,
const Text text 
)
+ Here is the call graph for this function:

◆ ~SI_Text()

~SI_Text ( )
noexcept

Member Function Documentation

◆ getUuid()

const Uuid & getUuid ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPosition()

const Point & getPosition ( ) const
inlinenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRotation()

const Angle & getRotation ( ) const
inlinenoexcept
+ Here is the call graph for this function:

◆ getText()

const QString & getText ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getTextObj() [1/2]

Text & getTextObj ( )
inlinenoexcept
+ Here is the caller graph for this function:

◆ getTextObj() [2/2]

const Text & getTextObj ( ) const
inlinenoexcept

◆ getSymbol()

SI_Symbol * getSymbol ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setSymbol()

void setSymbol ( SI_Symbol symbol)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addToSchematic()

void addToSchematic ( )
overridevirtual

Reimplemented from SI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ removeFromSchematic()

void removeFromSchematic ( )
overridevirtual

Reimplemented from SI_Base.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

SI_Text & operator= ( const SI_Text rhs)
delete

◆ textEdited()

void textEdited ( const Text text,
Text::Event  event 
)
privatenoexcept

◆ updateText()

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

Member Data Documentation

◆ onEdited

Signal<SI_Text, Event> onEdited

◆ mSymbol

QPointer<SI_Symbol> mSymbol
private

◆ mTextObj

Text mTextObj
private

◆ mText

QString mText
private

◆ mOnTextEditedSlot

Text::OnEditedSlot mOnTextEditedSlot
private

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