LibrePCB Developers Documentation
|
The SymbolEditorState_Select class. More...
#include <symboleditorstate_select.h>
Public Member Functions | |
SymbolEditorState_Select ()=delete | |
SymbolEditorState_Select (const SymbolEditorState_Select &other)=delete | |
SymbolEditorState_Select (const Context &context) noexcept | |
~SymbolEditorState_Select () noexcept | |
bool | exit () noexcept override |
QSet< EditorWidgetBase::Feature > | getAvailableFeatures () const noexcept override |
bool | processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override |
bool | processSelectAll () noexcept override |
bool | processCut () noexcept override |
bool | processCopy () noexcept override |
bool | processPaste (std::unique_ptr< SymbolClipboardData > data=nullptr) noexcept override |
bool | processMove (const Point &delta) noexcept override |
bool | processRotate (const Angle &rotation) noexcept override |
bool | processMirror (Qt::Orientation orientation) noexcept override |
bool | processSnapToGrid () noexcept override |
bool | processRemove () noexcept override |
bool | processEditProperties () noexcept override |
bool | processImportDxf () noexcept override |
bool | processAbortCommand () noexcept override |
SymbolEditorState_Select & | operator= (const SymbolEditorState_Select &rhs)=delete |
Public Member Functions inherited from SymbolEditorState | |
SymbolEditorState ()=delete | |
SymbolEditorState (const SymbolEditorState &other)=delete | |
SymbolEditorState (const Context &context) noexcept | |
virtual | ~SymbolEditorState () noexcept |
virtual bool | entry () noexcept |
virtual bool | exit () noexcept |
virtual QSet< EditorWidgetBase::Feature > | getAvailableFeatures () const noexcept=0 |
std::unique_ptr< SymbolClipboardData > | takeDataToPaste () noexcept |
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 (std::unique_ptr< SymbolClipboardData > data=nullptr) noexcept |
virtual bool | processMove (const Point &delta) |
virtual bool | processRotate (const Angle &rotation) noexcept |
virtual bool | processMirror (Qt::Orientation orientation) noexcept |
virtual bool | processSnapToGrid () noexcept |
virtual bool | processRemove () noexcept |
virtual bool | processEditProperties () noexcept |
virtual bool | processImportDxf () noexcept |
virtual bool | processAbortCommand () noexcept |
SymbolEditorState & | operator= (const SymbolEditorState &rhs)=delete |
Private Types | |
enum class | SubState |
Private Member Functions | |
bool | openContextMenuAtPos (const Point &pos) noexcept |
bool | openPropertiesDialogOfItem (std::shared_ptr< QGraphicsItem > item) noexcept |
bool | openPropertiesDialogOfItemAtPos (const Point &pos) noexcept |
bool | copySelectedItemsToClipboard () noexcept |
bool | startPaste (std::unique_ptr< SymbolClipboardData > data, const tl::optional< Point > &fixedPosition) |
bool | rotateSelectedItems (const Angle &angle) noexcept |
bool | mirrorSelectedItems (Qt::Orientation orientation) noexcept |
bool | snapSelectedItemsToGrid () noexcept |
bool | removeSelectedItems () noexcept |
void | removePolygonVertices (std::shared_ptr< Polygon > polygon, const QVector< int > vertices) noexcept |
void | startAddingPolygonVertex (std::shared_ptr< Polygon > polygon, int vertex, const Point &pos) noexcept |
void | setSelectionRect (const Point &p1, const Point &p2) noexcept |
void | clearSelectionRect (bool updateItemsSelectionState) noexcept |
QList< std::shared_ptr< QGraphicsItem > > | findItemsAtPosition (const Point &pos) noexcept |
bool | findPolygonVerticesAtPosition (const Point &pos) noexcept |
void | setState (SubState state) noexcept |
Private Attributes | |
SubState | mState |
Point | mStartPos |
QScopedPointer< CmdDragSelectedSymbolItems > | mCmdDragSelectedItems |
std::shared_ptr< Polygon > | mSelectedPolygon |
The current polygon selected for editing (nullptr if none) More... | |
QVector< int > | mSelectedPolygonVertices |
The polygon vertex indices selected for editing (empty if none) More... | |
QScopedPointer< CmdPolygonEdit > | mCmdPolygonEdit |
The polygon edit command (nullptr if not editing) More... | |
Additional Inherited Members | |
Public Types inherited from SymbolEditorState | |
using | Context = SymbolEditorFsm::Context |
Signals inherited from SymbolEditorState | |
void | availableFeaturesChanged () |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
void | pasteRequested () |
Protected Member Functions inherited from SymbolEditorState | |
void | requestPaste (std::unique_ptr< SymbolClipboardData > data) noexcept |
const PositiveLength & | getGridInterval () const noexcept |
const LengthUnit & | getLengthUnit () const noexcept |
Static Protected Member Functions inherited from SymbolEditorState | |
static const QSet< const Layer * > & | getAllowedTextLayers () noexcept |
static const QSet< const Layer * > & | getAllowedCircleAndPolygonLayers () noexcept |
Protected Attributes inherited from SymbolEditorState | |
Context | mContext |
The SymbolEditorState_Select class.
|
strongprivate |
|
delete |
|
delete |
|
explicitnoexcept |
|
noexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SymbolEditorState.
|
overridevirtualnoexcept |
Reimplemented from SymbolEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SymbolEditorState.
|
delete |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
The current polygon selected for editing (nullptr if none)
|
private |
The polygon vertex indices selected for editing (empty if none)
|
private |
The polygon edit command (nullptr if not editing)