LibrePCB Developers Documentation
|
The "select" state/tool of the schematic editor (default state) More...
#include <schematiceditorstate_select.h>
Public Member Functions | |
SchematicEditorState_Select ()=delete | |
SchematicEditorState_Select (const SchematicEditorState_Select &other)=delete | |
SchematicEditorState_Select (const Context &context) noexcept | |
virtual | ~SchematicEditorState_Select () noexcept |
virtual bool | entry () noexcept override |
virtual bool | exit () noexcept override |
virtual bool | processSelectAll () noexcept override |
virtual bool | processCut () noexcept override |
virtual bool | processCopy () noexcept override |
virtual bool | processPaste () noexcept override |
virtual bool | processMove (const Point &delta) noexcept override |
virtual bool | processRotate (const Angle &rotation) noexcept override |
virtual bool | processMirror (Qt::Orientation orientation) noexcept override |
virtual bool | processResetAllTexts () noexcept override |
virtual bool | processRemove () noexcept override |
virtual bool | processEditProperties () noexcept override |
virtual bool | processAbortCommand () noexcept override |
virtual bool | processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processSwitchToSchematicPage (int index) noexcept override |
SchematicEditorState_Select & | operator= (const SchematicEditorState_Select &rhs)=delete |
Public Member Functions inherited from SchematicEditorState | |
SchematicEditorState ()=delete | |
SchematicEditorState (const SchematicEditorState &other)=delete | |
SchematicEditorState (const Context &context, QObject *parent=nullptr) noexcept | |
virtual | ~SchematicEditorState () noexcept |
virtual bool | entry () noexcept |
virtual bool | exit () noexcept |
virtual bool | processAddComponent (const QString &searchTerm=QString()) noexcept |
virtual bool | processAddComponent (const Uuid &cmp, const Uuid &symbVar) noexcept |
virtual bool | processSelectAll () noexcept |
virtual bool | processCut () noexcept |
virtual bool | processCopy () noexcept |
virtual bool | processPaste () noexcept |
virtual bool | processMove (const Point &delta) noexcept |
virtual bool | processRotate (const Angle &rotation) noexcept |
virtual bool | processMirror (Qt::Orientation orientation) noexcept |
virtual bool | processResetAllTexts () noexcept |
virtual bool | processRemove () noexcept |
virtual bool | processEditProperties () noexcept |
virtual bool | processAbortCommand () 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 | processSwitchToSchematicPage (int index) noexcept |
SchematicEditorState & | operator= (const SchematicEditorState &rhs)=delete |
Private Types | |
enum class | SubState |
enum for all possible substates More... | |
Private Member Functions | |
bool | startMovingSelectedItems (SchematicGraphicsScene &scene, const Point &startPos) noexcept |
bool | moveSelectedItems (const Point &delta) noexcept |
bool | rotateSelectedItems (const Angle &angle) noexcept |
bool | mirrorSelectedItems (Qt::Orientation orientation) noexcept |
bool | resetAllTextsOfSelectedItems () noexcept |
bool | removeSelectedItems () noexcept |
void | removePolygonVertices (Polygon &polygon, const QVector< int > vertices) noexcept |
void | startAddingPolygonVertex (SI_Polygon &polygon, int vertex, const Point &pos) noexcept |
bool | copySelectedItemsToClipboard () noexcept |
bool | pasteFromClipboard () noexcept |
bool | findPolygonVerticesAtPosition (const Point &pos) noexcept |
bool | openPropertiesDialog (std::shared_ptr< QGraphicsItem > item) noexcept |
void | openSymbolPropertiesDialog (SI_Symbol &symbol) noexcept |
void | openNetLabelPropertiesDialog (SI_NetLabel &netlabel) noexcept |
void | openPolygonPropertiesDialog (Polygon &polygon) noexcept |
void | openTextPropertiesDialog (Text &text) noexcept |
Private Attributes | |
SubState | mSubState |
the current substate More... | |
Point | mStartPos |
QScopedPointer< CmdDragSelectedSchematicItems > | mSelectedItemsDragCommand |
SI_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 SchematicEditorState | |
enum class | FindFlag |
using | Context = SchematicEditorFsm::Context |
Signals inherited from SchematicEditorState | |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
Protected Member Functions inherited from SchematicEditorState | |
Schematic * | getActiveSchematic () noexcept |
SchematicGraphicsScene * | getActiveSchematicScene () noexcept |
PositiveLength | getGridInterval () const noexcept |
const LengthUnit & | getLengthUnit () const noexcept |
void | abortBlockingToolsInOtherEditors () noexcept |
bool | execCmd (UndoCommand *cmd) |
QWidget * | parentWidget () noexcept |
QList< std::shared_ptr< QGraphicsItem > > | findItemsAtPos (const Point &pos, FindFlags flags, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept |
template<typename T = QGraphicsItem> | |
std::shared_ptr< T > | findItemAtPos (const Point &pos, FindFlags flags, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept |
Static Protected Member Functions inherited from SchematicEditorState | |
static const QSet< const Layer * > & | getAllowedGeometryLayers () noexcept |
Protected Attributes inherited from SchematicEditorState | |
Context | mContext |
The "select" state/tool of the schematic editor (default state)
|
strongprivate |
|
delete |
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
delete |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
the current substate
|
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)