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

The PackageEditorState_DrawTextBase class. More...

#include <packageeditorstate_drawtextbase.h>

+ Inheritance diagram for PackageEditorState_DrawTextBase:
+ Collaboration diagram for PackageEditorState_DrawTextBase:

Public Types

enum  Mode
 
- Public Types inherited from PackageEditorState
using Context = PackageEditorFsm::Context
 

Public Member Functions

 PackageEditorState_DrawTextBase ()=delete
 
 PackageEditorState_DrawTextBase (const PackageEditorState_DrawTextBase &other)=delete
 
 PackageEditorState_DrawTextBase (Context &context, Mode mode) noexcept
 
virtual ~PackageEditorState_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
 
PackageEditorState_DrawTextBaseoperator= (const PackageEditorState_DrawTextBase &rhs)=delete
 
- Public Member Functions inherited from PackageEditorState
 PackageEditorState ()=delete
 
 PackageEditorState (const PackageEditorState &other)=delete
 
 PackageEditorState (Context &context) noexcept
 
virtual ~PackageEditorState () noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processRemove () noexcept
 
virtual bool processAbortCommand () noexcept
 
PackageEditorStateoperator= (const PackageEditorState &rhs)=delete
 

Private Member Functions

bool startAddText (const Point &pos) noexcept
 
bool finishAddText (const Point &pos) noexcept
 
bool abortAddText () noexcept
 
void resetToDefaultParameters () 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< CmdStrokeTextEditmEditCmd
 
StrokeTextmCurrentText
 
StrokeTextGraphicsItemmCurrentGraphicsItem
 
GraphicsLayerName mLastLayerName
 
Angle mLastRotation
 
PositiveLength mLastHeight
 
QString mLastText
 

Additional Inherited Members

- Protected Member Functions inherited from PackageEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from PackageEditorState
ContextmContext
 

Detailed Description

The PackageEditorState_DrawTextBase class.

Author
ubruhin
Date
2017-05-29

Member Enumeration Documentation

enum Mode
strong
Enumerator
NAME 
VALUE 
TEXT 

Constructor & Destructor Documentation

PackageEditorState_DrawTextBase ( Context context,
Mode  mode 
)
explicitnoexcept
~PackageEditorState_DrawTextBase ( )
virtualnoexcept

Member Function Documentation

bool entry ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool exit ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneMouseMoved ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneLeftMouseButtonPressed ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processGraphicsSceneRightMouseButtonReleased ( QGraphicsSceneMouseEvent &  e)
overridevirtualnoexcept

Reimplemented from PackageEditorState.

bool processRotateCw ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool processRotateCcw ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ 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:

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<CmdStrokeTextEdit> mEditCmd
private
StrokeText* mCurrentText
private
StrokeTextGraphicsItem* 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: