LibrePCB Developers Documentation
|
The PackageEditorState_DrawTextBase class. More...
#include <packageeditorstate_drawtextbase.h>
Public Types | |
enum class | 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 () noexcept override |
bool | exit () noexcept override |
QSet< EditorWidgetBase::Feature > | getAvailableFeatures () const noexcept override |
bool | processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processRotate (const Angle &rotation) noexcept override |
bool | processMirror (Qt::Orientation orientation) noexcept override |
bool | processFlip (Qt::Orientation orientation) noexcept override |
PackageEditorState_DrawTextBase & | operator= (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 | 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 | startAddText (const Point &pos) noexcept |
bool | finishAddText (const Point &pos) noexcept |
bool | abortAddText () noexcept |
void | resetToDefaultParameters () noexcept |
void | layerComboBoxValueChanged (const Layer &layer) 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< CmdStrokeTextEdit > | mEditCmd |
std::shared_ptr< StrokeText > | mCurrentText |
std::shared_ptr< StrokeTextGraphicsItem > | mCurrentGraphicsItem |
QPointer< LayerComboBox > | mLayerComboBox |
QPointer< HAlignActionGroup > | mHAlignActionGroup |
QPointer< VAlignActionGroup > | mVAlignActionGroup |
const Layer * | mLastLayer |
Angle | mLastRotation |
PositiveLength | mLastHeight |
UnsignedLength | mLastStrokeWidth |
Alignment | mLastAlignment |
QString | mLastText |
bool | mLastMirrored |
Additional Inherited Members | |
Signals inherited from PackageEditorState | |
void | abortRequested () |
void | availableFeaturesChanged () |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
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_DrawTextBase class.
|
strong |
|
delete |
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Implements PackageEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from PackageEditorState.
|
overridevirtualnoexcept |
Reimplemented from PackageEditorState.
|
overridevirtualnoexcept |
Reimplemented from PackageEditorState.
|
delete |
|
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 |