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

The SymbolEditorState_DrawTextBase class. More...

#include <symboleditorstate_drawtextbase.h>

+ Inheritance diagram for SymbolEditorState_DrawTextBase:
+ Collaboration diagram for SymbolEditorState_DrawTextBase:

Public Types

enum  Mode
 
- Public Types inherited from SymbolEditorState
using Context = SymbolEditorFsm::Context
 

Public Member Functions

 SymbolEditorState_DrawTextBase ()=delete
 
 SymbolEditorState_DrawTextBase (const SymbolEditorState_DrawTextBase &other)=delete
 
 SymbolEditorState_DrawTextBase (const Context &context, Mode mode) noexcept
 
virtual ~SymbolEditorState_DrawTextBase () noexcept
 
bool entry () noexceptoverride
 
bool exit () noexceptoverride
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processRotateCw () noexceptoverride
 
bool processRotateCcw () noexceptoverride
 
SymbolEditorState_DrawTextBaseoperator= (const SymbolEditorState_DrawTextBase &rhs)=delete
 
- Public Member Functions inherited from SymbolEditorState
 SymbolEditorState ()=delete
 
 SymbolEditorState (const SymbolEditorState &other)=delete
 
 SymbolEditorState (const Context &context) noexcept
 
virtual ~SymbolEditorState () noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processAbortCommand () noexcept
 
SymbolEditorStateoperator= (const SymbolEditorState &rhs)=delete
 

Private Member Functions

bool startAddText (const Point &pos) noexcept
 
bool finishAddText (const Point &pos) noexcept
 
bool abortAddText () noexcept
 
void resetToDefaultParameters () noexcept
 
Alignment getAlignment () const noexcept
 
void layerComboBoxValueChanged (const QString &layerName) noexcept
 
void heightSpinBoxValueChanged (double value) noexcept
 
void textComboBoxValueChanged (const QString &value) noexcept
 

Private Attributes

Mode mMode
 
Point mStartPos
 
QScopedPointer< CmdTextEditmEditCmd
 
TextmCurrentText
 
TextGraphicsItemmCurrentGraphicsItem
 
GraphicsLayerName mLastLayerName
 
Angle mLastRotation
 
PositiveLength mLastHeight
 
QString mLastText
 

Additional Inherited Members

- Protected Member Functions inherited from SymbolEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from SymbolEditorState
Context mContext
 

Detailed Description

The SymbolEditorState_DrawTextBase class.

Author
ubruhin
Date
2017-01-03

Member Enumeration Documentation

enum Mode
strong
Enumerator
NAME 
VALUE 
TEXT 

Constructor & Destructor Documentation

SymbolEditorState_DrawTextBase ( const Context context,
Mode  mode 
)
explicitnoexcept
~SymbolEditorState_DrawTextBase ( )
virtualnoexcept

Member Function Documentation

bool entry ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool exit ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

bool processRotateCw ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool processRotateCcw ( )
overridevirtualnoexcept

Reimplemented from SymbolEditorState.

+ Here is the call graph for this function:

bool startAddText ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool finishAddText ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool abortAddText ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void resetToDefaultParameters ( )
privatenoexcept

+ Here is the caller graph for this function:

Alignment getAlignment ( ) const
privatenoexcept

+ Here is the call graph for this function:

void layerComboBoxValueChanged ( const QString &  layerName)
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 textComboBoxValueChanged ( const QString &  value)
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

Mode mMode
private
Point mStartPos
private
QScopedPointer<CmdTextEdit> mEditCmd
private
Text* mCurrentText
private
TextGraphicsItem* mCurrentGraphicsItem
private
GraphicsLayerName mLastLayerName
private
Angle mLastRotation
private
PositiveLength mLastHeight
private
QString mLastText
private

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