LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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) noexceptoverride
 
bool entry (BEE_Base *event) noexceptoverride
 
bool exit (BEE_Base *event) noexceptoverride
 
- 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 QString &layerName) noexcept
 
void textComboBoxValueChanged (const QString &value) noexcept
 
void heightSpinBoxValueChanged (double 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
< GraphicsLayerComboBox
mLayerComboBox
 
QScopedPointer< QLabel > mTextLabel
 
QScopedPointer< QComboBox > mTextComboBox
 
QScopedPointer< QLabel > mHeightLabel
 
QScopedPointer< QDoubleSpinBox > mHeightSpinBox
 
QScopedPointer< QLabel > mMirrorLabel
 
QScopedPointer< QCheckBox > mMirrorCheckBox
 

Additional Inherited Members

- Public Types inherited from BES_Base
enum  ProcRetVal
 process() return values More...
 
- 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 ( BoardEditor editor,
Ui::BoardEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit

Member Function Documentation

BES_Base::ProcRetVal process ( BEE_Base event)
overridevirtualnoexcept

Implements BES_Base.

+ Here is the call graph for this function:

bool entry ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

bool exit ( BEE_Base event)
overridevirtualnoexcept

Reimplemented from BES_Base.

+ Here is the call graph for this function:

BES_Base::ProcRetVal processSceneEvent ( BEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

BES_Base::ProcRetVal processRotateEvent ( const Angle angle)
privatenoexcept
BES_Base::ProcRetVal processFlipEvent ( Qt::Orientation  orientation)
privatenoexcept
bool addText ( Board board,
const Point pos 
)
privatenoexcept

+ Here is the call graph for this function:

void updateTextPosition ( const Point pos)
privatenoexcept
bool fixText ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

void layerComboBoxLayerChanged ( const QString &  layerName)
privatenoexcept

+ Here is the caller graph for this function:

void textComboBoxValueChanged ( const QString &  value)
privatenoexcept

+ Here is the caller graph for this function:

void heightSpinBoxValueChanged ( double  value)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void mirrorCheckBoxToggled ( bool  checked)
privatenoexcept

+ Here is the caller graph for this function:

void makeSelectedLayerVisible ( )
privatenoexcept

+ Here is the call graph for this function:

Member Data Documentation

bool mUndoCmdActive
private
BI_StrokeText* mText
private
QScopedPointer<CmdStrokeTextEdit> mEditCmd
private
GraphicsLayerName mCurrentLayerName
private
QString mCurrentText
private
PositiveLength mCurrentHeight
private
bool mCurrentMirror
private
Angle mCurrentRotation
private
QScopedPointer<QLabel> mLayerLabel
private
QScopedPointer<GraphicsLayerComboBox> mLayerComboBox
private
QScopedPointer<QLabel> mTextLabel
private
QScopedPointer<QComboBox> mTextComboBox
private
QScopedPointer<QLabel> mHeightLabel
private
QScopedPointer<QDoubleSpinBox> mHeightSpinBox
private
QScopedPointer<QLabel> mMirrorLabel
private
QScopedPointer<QCheckBox> mMirrorCheckBox
private

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