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

The PackageEditorState_DrawCircle class. More...

#include <packageeditorstate_drawcircle.h>

+ Inheritance diagram for PackageEditorState_DrawCircle:
+ Collaboration diagram for PackageEditorState_DrawCircle:

Public Member Functions

 PackageEditorState_DrawCircle ()=delete
 
 PackageEditorState_DrawCircle (const PackageEditorState_DrawCircle &other)=delete
 
 PackageEditorState_DrawCircle (Context &context) noexcept
 
 ~PackageEditorState_DrawCircle () noexcept
 
bool entry () noexceptoverride
 
bool exit () noexceptoverride
 
bool processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexceptoverride
 
bool processAbortCommand () noexceptoverride
 
PackageEditorState_DrawCircleoperator= (const PackageEditorState_DrawCircle &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 processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept
 
virtual bool processCut () noexcept
 
virtual bool processCopy () noexcept
 
virtual bool processPaste () noexcept
 
virtual bool processRotateCw () noexcept
 
virtual bool processRotateCcw () noexcept
 
virtual bool processMirror () noexcept
 
virtual bool processFlip () noexcept
 
virtual bool processRemove () noexcept
 
PackageEditorStateoperator= (const PackageEditorState &rhs)=delete
 

Private Member Functions

bool startAddCircle (const Point &pos) noexcept
 
bool updateCircleDiameter (const Point &pos) noexcept
 
bool finishAddCircle (const Point &pos) noexcept
 
bool abortAddCircle () noexcept
 
void layerComboBoxValueChanged (const GraphicsLayerName &layerName) noexcept
 
void lineWidthEditValueChanged (const UnsignedLength &value) noexcept
 
void fillCheckBoxCheckedChanged (bool checked) noexcept
 
void grabAreaCheckBoxCheckedChanged (bool checked) noexcept
 

Private Attributes

QScopedPointer< CmdCircleEditmEditCmd
 
CirclemCurrentCircle
 
CircleGraphicsItemmCurrentGraphicsItem
 
GraphicsLayerName mLastLayerName
 
UnsignedLength mLastLineWidth
 
bool mLastFill
 
bool mLastGrabArea
 

Additional Inherited Members

- Public Types inherited from PackageEditorState
using Context = PackageEditorFsm::Context
 
- Protected Member Functions inherited from PackageEditorState
const PositiveLengthgetGridInterval () const noexcept
 
- Protected Attributes inherited from PackageEditorState
ContextmContext
 

Detailed Description

Constructor & Destructor Documentation

PackageEditorState_DrawCircle ( Context context)
explicitnoexcept

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 processAbortCommand ( )
overridevirtualnoexcept

Reimplemented from PackageEditorState.

+ Here is the call graph for this function:

bool startAddCircle ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool updateCircleDiameter ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool finishAddCircle ( const Point pos)
privatenoexcept

+ Here is the call graph for this function:

bool abortAddCircle ( )
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 lineWidthEditValueChanged ( const UnsignedLength value)
privatenoexcept

+ Here is the caller graph for this function:

void fillCheckBoxCheckedChanged ( bool  checked)
privatenoexcept

+ Here is the caller graph for this function:

void grabAreaCheckBoxCheckedChanged ( bool  checked)
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

QScopedPointer<CmdCircleEdit> mEditCmd
private
Circle* mCurrentCircle
private
CircleGraphicsItem* mCurrentGraphicsItem
private
GraphicsLayerName mLastLayerName
private
UnsignedLength mLastLineWidth
private
bool mLastFill
private
bool mLastGrabArea
private

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