LibrePCB Developers Documentation
BES_AddStrokeText Class Referencefinal

The BES_AddStrokeText class. More...

#include <bes_addstroketext.h>

+ Inheritance diagram for BES_AddStrokeText:
+ Collaboration diagram for BES_AddStrokeText:

Public Member Functions

 BES_AddStrokeText (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
 ~BES_AddStrokeText ()
 
ProcRetVal process (BEE_Base *event) noexcept override
 
bool entry (BEE_Base *event) noexcept override
 
bool exit (BEE_Base *event) noexcept override
 
- Public Member Functions inherited from BES_Base
 BES_Base (BoardEditor &editor, Ui::BoardEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
virtual ~BES_Base ()
 

Private Member Functions

ProcRetVal processSceneEvent (BEE_Base *event) noexcept
 
ProcRetVal processRotateEvent (const Angle &angle) noexcept
 
ProcRetVal processFlipEvent (Qt::Orientation orientation) noexcept
 
bool addText (Board &board, const Point &pos) noexcept
 
void updateTextPosition (const Point &pos) noexcept
 
bool fixText (const Point &pos) noexcept
 
void layerComboBoxLayerChanged (const GraphicsLayerName &layerName) noexcept
 
void textComboBoxValueChanged (const QString &value) noexcept
 
void heightEditValueChanged (const PositiveLength &value) noexcept
 
void mirrorCheckBoxToggled (bool checked) noexcept
 
void makeSelectedLayerVisible () noexcept
 

Private Attributes

bool mUndoCmdActive
 
BI_StrokeTextmText
 
QScopedPointer< CmdStrokeTextEditmEditCmd
 
GraphicsLayerName mCurrentLayerName
 
QString mCurrentText
 
PositiveLength mCurrentHeight
 
bool mCurrentMirror
 
Angle mCurrentRotation
 
QScopedPointer< QLabel > mLayerLabel
 
QScopedPointer< GraphicsLayerComboBoxmLayerComboBox
 
QScopedPointer< QLabel > mTextLabel
 
QScopedPointer< QComboBox > mTextComboBox
 
QScopedPointer< QLabel > mHeightLabel
 
QScopedPointer< PositiveLengthEditmHeightEdit
 
QScopedPointer< QLabel > mMirrorLabel
 
QScopedPointer< QCheckBox > mMirrorCheckBox
 

Additional Inherited Members

- Public Types inherited from BES_Base
enum  ProcRetVal
 process() return values More...
 
- Protected Member Functions inherited from BES_Base
const LengthUnitgetDefaultLengthUnit () const noexcept
 
- Protected Attributes inherited from BES_Base
workspace::WorkspacemWorkspace
 
ProjectmProject
 
CircuitmCircuit
 
BoardEditormEditor
 
Ui::BoardEditor & mEditorUi
 allows access to BoardEditor UI More...
 
GraphicsViewmEditorGraphicsView
 allows access to the board editor graphics view More...
 
UndoStackmUndoStack
 

Detailed Description

The BES_AddStrokeText class.

Constructor & Destructor Documentation

◆ BES_AddStrokeText()

BES_AddStrokeText ( BoardEditor editor,
Ui::BoardEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit

◆ ~BES_AddStrokeText()

Member Function Documentation

◆ process()

BES_Base::ProcRetVal process ( BEE_Base event)
overridevirtualnoexcept

Implements BES_Base.

+ Here is the call graph for this function:

◆ entry()

bool entry ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

◆ exit()

bool exit ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

◆ processSceneEvent()

BES_Base::ProcRetVal processSceneEvent ( BEE_Base event)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processRotateEvent()

BES_Base::ProcRetVal processRotateEvent ( const Angle angle)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ processFlipEvent()

BES_Base::ProcRetVal processFlipEvent ( Qt::Orientation  orientation)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addText()

bool addText ( Board board,
const Point pos 
)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateTextPosition()

void updateTextPosition ( const Point pos)
privatenoexcept
+ Here is the caller graph for this function:

◆ fixText()

bool fixText ( const Point pos)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layerComboBoxLayerChanged()

void layerComboBoxLayerChanged ( const GraphicsLayerName layerName)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ textComboBoxValueChanged()

void textComboBoxValueChanged ( const QString &  value)
privatenoexcept
+ Here is the caller graph for this function:

◆ heightEditValueChanged()

void heightEditValueChanged ( const PositiveLength value)
privatenoexcept
+ Here is the caller graph for this function:

◆ mirrorCheckBoxToggled()

void mirrorCheckBoxToggled ( bool  checked)
privatenoexcept
+ Here is the caller graph for this function:

◆ makeSelectedLayerVisible()

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

Member Data Documentation

◆ mUndoCmdActive

bool mUndoCmdActive
private

◆ mText

BI_StrokeText* mText
private

◆ mEditCmd

QScopedPointer<CmdStrokeTextEdit> mEditCmd
private

◆ mCurrentLayerName

GraphicsLayerName mCurrentLayerName
private

◆ mCurrentText

QString mCurrentText
private

◆ mCurrentHeight

PositiveLength mCurrentHeight
private

◆ mCurrentMirror

bool mCurrentMirror
private

◆ mCurrentRotation

Angle mCurrentRotation
private

◆ mLayerLabel

QScopedPointer<QLabel> mLayerLabel
private

◆ mLayerComboBox

QScopedPointer<GraphicsLayerComboBox> mLayerComboBox
private

◆ mTextLabel

QScopedPointer<QLabel> mTextLabel
private

◆ mTextComboBox

QScopedPointer<QComboBox> mTextComboBox
private

◆ mHeightLabel

QScopedPointer<QLabel> mHeightLabel
private

◆ mHeightEdit

QScopedPointer<PositiveLengthEdit> mHeightEdit
private

◆ mMirrorLabel

QScopedPointer<QLabel> mMirrorLabel
private

◆ mMirrorCheckBox

QScopedPointer<QCheckBox> mMirrorCheckBox
private

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