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 processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste () noexcept
 
virtual bool processMirror () noexcept
 
virtual bool processFlip () 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 GraphicsLayerName &layerName) noexcept
 
void heightEditValueChanged (const PositiveLength &value) noexcept
 
void strokeWidthEditValueChanged (const UnsignedLength &value) noexcept
 
void textComboBoxValueChanged (const QString &value) noexcept
 
void hAlignActionGroupValueChanged (const HAlign &value) noexcept
 
void vAlignActionGroupValueChanged (const VAlign &value) noexcept
 

Private Attributes

Mode mMode
 
Point mStartPos
 
QScopedPointer< CmdStrokeTextEditmEditCmd
 
StrokeTextmCurrentText
 
StrokeTextGraphicsItemmCurrentGraphicsItem
 
GraphicsLayerName mLastLayerName
 
Angle mLastRotation
 
PositiveLength mLastHeight
 
UnsignedLength mLastStrokeWidth
 
Alignment mLastAlignment
 
QString mLastText
 

Additional Inherited Members

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

Detailed Description

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 call graph for this function:

+ Here is the caller graph for this function:

void layerComboBoxValueChanged ( const GraphicsLayerName layerName)
privatenoexcept

+ Here is the caller graph for this function:

void heightEditValueChanged ( const PositiveLength value)
privatenoexcept

+ Here is the caller graph for this function:

void strokeWidthEditValueChanged ( const UnsignedLength value)
privatenoexcept

+ Here is the caller graph for this function:

void textComboBoxValueChanged ( const QString &  value)
privatenoexcept

+ Here is the caller graph for this function:

void hAlignActionGroupValueChanged ( const HAlign value)
privatenoexcept

+ Here is the caller graph for this function:

void vAlignActionGroupValueChanged ( const VAlign 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
UnsignedLength mLastStrokeWidth
private
Alignment mLastAlignment
private
QString mLastText
private

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