LibrePCB Developers Documentation
|
The PackageEditorState_DrawPolygonBase class. More...
#include <packageeditorstate_drawpolygonbase.h>
Public Types | |
enum class | Mode |
Public Types inherited from PackageEditorState | |
using | Context = PackageEditorFsm::Context |
Signals | |
void | requestLineWidth (const UnsignedLength &value) |
Signals inherited from PackageEditorState | |
void | abortRequested () |
void | availableFeaturesChanged () |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
Public Member Functions | |
PackageEditorState_DrawPolygonBase ()=delete | |
PackageEditorState_DrawPolygonBase (const PackageEditorState_DrawPolygonBase &other)=delete | |
PackageEditorState_DrawPolygonBase (Context &context, Mode mode) noexcept | |
virtual | ~PackageEditorState_DrawPolygonBase () noexcept |
bool | entry () noexcept override |
bool | exit () noexcept override |
QSet< EditorWidgetBase::Feature > | getAvailableFeatures () const noexcept override |
bool | processKeyPressed (const QKeyEvent &e) noexcept override |
bool | processKeyReleased (const QKeyEvent &e) noexcept override |
bool | processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processAbortCommand () noexcept override |
PackageEditorState_DrawPolygonBase & | operator= (const PackageEditorState_DrawPolygonBase &rhs)=delete |
Public Member Functions inherited from PackageEditorState | |
PackageEditorState ()=delete | |
PackageEditorState (const PackageEditorState &other)=delete | |
PackageEditorState (Context &context) noexcept | |
virtual | ~PackageEditorState () noexcept |
virtual bool | entry () noexcept |
virtual bool | exit () noexcept |
virtual QSet< EditorWidgetBase::Feature > | getAvailableFeatures () const noexcept=0 |
virtual bool | processKeyPressed (const QKeyEvent &e) noexcept |
virtual bool | processKeyReleased (const QKeyEvent &e) noexcept |
virtual bool | processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept |
virtual bool | processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept |
virtual bool | processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept |
virtual bool | processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept |
virtual bool | processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept |
virtual bool | processSelectAll () noexcept |
virtual bool | processCut () noexcept |
virtual bool | processCopy () noexcept |
virtual bool | processPaste () noexcept |
virtual bool | processMove (Qt::ArrowType direction) |
virtual bool | processRotate (const Angle &rotation) noexcept |
virtual bool | processMirror (Qt::Orientation orientation) noexcept |
virtual bool | processMoveAlign () noexcept |
virtual bool | processSnapToGrid () noexcept |
virtual bool | processFlip (Qt::Orientation orientation) noexcept |
virtual bool | processRemove () noexcept |
virtual bool | processEditProperties () noexcept |
virtual bool | processGenerateOutline () noexcept |
virtual bool | processGenerateCourtyard () noexcept |
virtual bool | processImportDxf () noexcept |
virtual bool | processAbortCommand () noexcept |
PackageEditorState & | operator= (const PackageEditorState &rhs)=delete |
Private Member Functions | |
bool | start () noexcept |
bool | abort (bool showErrMsgBox=true) noexcept |
bool | addNextSegment () noexcept |
void | updateCursorPosition (Qt::KeyboardModifiers modifiers) noexcept |
void | updatePolygonPath () noexcept |
void | updateOverlayText () noexcept |
void | updateStatusBarMessage () noexcept |
void | layerComboBoxValueChanged (const Layer &layer) noexcept |
void | lineWidthEditValueChanged (const UnsignedLength &value) noexcept |
void | angleEditValueChanged (const Angle &value) noexcept |
void | fillCheckBoxCheckedChanged (bool checked) noexcept |
void | grabAreaCheckBoxCheckedChanged (bool checked) noexcept |
Private Attributes | |
Mode | mMode |
bool | mIsUndoCmdActive |
QScopedPointer< CmdPolygonEdit > | mEditCmd |
std::shared_ptr< Polygon > | mCurrentPolygon |
std::shared_ptr< PolygonGraphicsItem > | mCurrentGraphicsItem |
Point | mLastScenePos |
Point | mCursorPos |
Point | mArcCenter |
bool | mArcInSecondState |
const Layer * | mLastLayer |
UnsignedLength | mLastLineWidth |
Angle | mLastAngle |
bool | mLastFill |
bool | mLastGrabArea |
QHash< const Layer *, UnsignedLength > | mUsedLineWidths |
Additional Inherited Members | |
Protected Member Functions inherited from PackageEditorState | |
const PositiveLength & | getGridInterval () const noexcept |
const LengthUnit & | getLengthUnit () const noexcept |
Static Protected Member Functions inherited from PackageEditorState | |
static const QSet< const Layer * > & | getAllowedTextLayers () noexcept |
static const QSet< const Layer * > & | getAllowedCircleAndPolygonLayers () noexcept |
Protected Attributes inherited from PackageEditorState | |
Context & | mContext |
The PackageEditorState_DrawPolygonBase class.
|
strong |
|
delete |
|
delete |
|
noexcept |
|
virtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Implements PackageEditorState.
|
overridevirtualnoexcept |
Reimplemented from PackageEditorState.
|
overridevirtualnoexcept |
Reimplemented from PackageEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from PackageEditorState.
|
overridevirtualnoexcept |
|
delete |
|
signal |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |