The "select" state/tool of the board editor (default state)
More...
#include <boardeditorstate_select.h>
|
bool | startMovingSelectedItems (BoardGraphicsScene &scene, const Point &startPos) noexcept |
|
bool | moveSelectedItems (const Point &delta) noexcept |
|
bool | rotateSelectedItems (const Angle &angle) noexcept |
|
bool | flipSelectedItems (Qt::Orientation orientation) noexcept |
|
bool | snapSelectedItemsToGrid () noexcept |
|
bool | lockSelectedItems (bool locked) noexcept |
|
bool | changeWidthOfSelectedItems (int step) noexcept |
|
bool | resetAllTextsOfSelectedItems () noexcept |
|
bool | removeSelectedItems () noexcept |
|
void | removePolygonVertices (BI_Polygon &polygon, const QVector< int > vertices) noexcept |
|
void | removePlaneVertices (BI_Plane &plane, const QVector< int > vertices) noexcept |
|
void | removeZoneVertices (BI_Zone &zone, const QVector< int > vertices) noexcept |
|
void | startAddingPolygonVertex (BI_Polygon &polygon, int vertex, const Point &pos) noexcept |
|
void | startAddingPlaneVertex (BI_Plane &plane, int vertex, const Point &pos) noexcept |
|
void | startAddingZoneVertex (BI_Zone &zone, int vertex, const Point &pos) noexcept |
|
bool | copySelectedItemsToClipboard () noexcept |
|
bool | startPaste (BoardGraphicsScene &scene, std::unique_ptr< BoardClipboardData > data, const tl::optional< Point > &fixedPosition) |
|
bool | abortCommand (bool showErrMsgBox) noexcept |
|
bool | findPolygonVerticesAtPosition (const Point &pos) noexcept |
|
bool | findPlaneVerticesAtPosition (const Point &pos) noexcept |
|
bool | findZoneVerticesAtPosition (const Point &pos) noexcept |
|
bool | measureSelectedItems (const BI_NetLine &netline) noexcept |
| Measure the length of the selected items. More...
|
|
void | measureLengthInDirection (BoardGraphicsScene &scene, bool directionBackwards, const BI_NetLine &netline, QSet< Uuid > &visitedNetLines, UnsignedLength &totalLength) |
| Internal helper method used by measureSelectedItems. More...
|
|
bool | openPropertiesDialog (std::shared_ptr< QGraphicsItem > item) |
|
void | openDevicePropertiesDialog (BI_Device &device) noexcept |
|
void | openViaPropertiesDialog (BI_Via &via) noexcept |
|
void | openPlanePropertiesDialog (BI_Plane &plane) noexcept |
|
void | openZonePropertiesDialog (BI_Zone &zone) noexcept |
|
void | openPolygonPropertiesDialog (BI_Polygon &polygon) noexcept |
|
void | openStrokeTextPropertiesDialog (BI_StrokeText &text) noexcept |
|
void | openHolePropertiesDialog (BI_Hole &hole) noexcept |
|
QList< DeviceMenuItem > | getDeviceMenuItems (const ComponentInstance &cmpInst) const noexcept |
|
The "select" state/tool of the board editor (default state)
◆ BoardEditorState_Select() [1/3]
◆ BoardEditorState_Select() [2/3]
◆ BoardEditorState_Select() [3/3]
◆ ~BoardEditorState_Select()
◆ entry()
◆ exit()
◆ processImportDxf()
bool processImportDxf |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ processSelectAll()
bool processSelectAll |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ processCut()
◆ processCopy()
◆ processPaste()
◆ processMove()
bool processMove |
( |
const Point & |
delta | ) |
|
|
overridevirtualnoexcept |
◆ processRotate()
bool processRotate |
( |
const Angle & |
rotation | ) |
|
|
overridevirtualnoexcept |
◆ processFlip()
bool processFlip |
( |
Qt::Orientation |
orientation | ) |
|
|
overridevirtualnoexcept |
◆ processSnapToGrid()
bool processSnapToGrid |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ processSetLocked()
bool processSetLocked |
( |
bool |
locked | ) |
|
|
overridevirtualnoexcept |
◆ processChangeLineWidth()
bool processChangeLineWidth |
( |
int |
step | ) |
|
|
overridevirtualnoexcept |
◆ processResetAllTexts()
bool processResetAllTexts |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ processRemove()
◆ processEditProperties()
bool processEditProperties |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ processAbortCommand()
bool processAbortCommand |
( |
| ) |
|
|
overridevirtualnoexcept |
◆ processGraphicsSceneMouseMoved()
bool processGraphicsSceneMouseMoved |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
overridevirtualnoexcept |
◆ processGraphicsSceneLeftMouseButtonPressed()
bool processGraphicsSceneLeftMouseButtonPressed |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
overridevirtualnoexcept |
◆ processGraphicsSceneLeftMouseButtonReleased()
bool processGraphicsSceneLeftMouseButtonReleased |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
overridevirtualnoexcept |
◆ processGraphicsSceneLeftMouseButtonDoubleClicked()
bool processGraphicsSceneLeftMouseButtonDoubleClicked |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
overridevirtualnoexcept |
◆ processGraphicsSceneRightMouseButtonReleased()
bool processGraphicsSceneRightMouseButtonReleased |
( |
QGraphicsSceneMouseEvent & |
e | ) |
|
|
overridevirtualnoexcept |
◆ processSwitchToBoard()
bool processSwitchToBoard |
( |
int |
index | ) |
|
|
overridevirtualnoexcept |
◆ operator=()
◆ startMovingSelectedItems()
◆ moveSelectedItems()
bool moveSelectedItems |
( |
const Point & |
delta | ) |
|
|
privatenoexcept |
◆ rotateSelectedItems()
bool rotateSelectedItems |
( |
const Angle & |
angle | ) |
|
|
privatenoexcept |
◆ flipSelectedItems()
bool flipSelectedItems |
( |
Qt::Orientation |
orientation | ) |
|
|
privatenoexcept |
◆ snapSelectedItemsToGrid()
bool snapSelectedItemsToGrid |
( |
| ) |
|
|
privatenoexcept |
◆ lockSelectedItems()
bool lockSelectedItems |
( |
bool |
locked | ) |
|
|
privatenoexcept |
◆ changeWidthOfSelectedItems()
bool changeWidthOfSelectedItems |
( |
int |
step | ) |
|
|
privatenoexcept |
◆ resetAllTextsOfSelectedItems()
bool resetAllTextsOfSelectedItems |
( |
| ) |
|
|
privatenoexcept |
◆ removeSelectedItems()
bool removeSelectedItems |
( |
| ) |
|
|
privatenoexcept |
◆ removePolygonVertices()
void removePolygonVertices |
( |
BI_Polygon & |
polygon, |
|
|
const QVector< int > |
vertices |
|
) |
| |
|
privatenoexcept |
◆ removePlaneVertices()
void removePlaneVertices |
( |
BI_Plane & |
plane, |
|
|
const QVector< int > |
vertices |
|
) |
| |
|
privatenoexcept |
◆ removeZoneVertices()
void removeZoneVertices |
( |
BI_Zone & |
zone, |
|
|
const QVector< int > |
vertices |
|
) |
| |
|
privatenoexcept |
◆ startAddingPolygonVertex()
void startAddingPolygonVertex |
( |
BI_Polygon & |
polygon, |
|
|
int |
vertex, |
|
|
const Point & |
pos |
|
) |
| |
|
privatenoexcept |
◆ startAddingPlaneVertex()
void startAddingPlaneVertex |
( |
BI_Plane & |
plane, |
|
|
int |
vertex, |
|
|
const Point & |
pos |
|
) |
| |
|
privatenoexcept |
◆ startAddingZoneVertex()
void startAddingZoneVertex |
( |
BI_Zone & |
zone, |
|
|
int |
vertex, |
|
|
const Point & |
pos |
|
) |
| |
|
privatenoexcept |
◆ copySelectedItemsToClipboard()
bool copySelectedItemsToClipboard |
( |
| ) |
|
|
privatenoexcept |
◆ startPaste()
◆ abortCommand()
bool abortCommand |
( |
bool |
showErrMsgBox | ) |
|
|
privatenoexcept |
◆ findPolygonVerticesAtPosition()
bool findPolygonVerticesAtPosition |
( |
const Point & |
pos | ) |
|
|
privatenoexcept |
◆ findPlaneVerticesAtPosition()
bool findPlaneVerticesAtPosition |
( |
const Point & |
pos | ) |
|
|
privatenoexcept |
◆ findZoneVerticesAtPosition()
bool findZoneVerticesAtPosition |
( |
const Point & |
pos | ) |
|
|
privatenoexcept |
◆ measureSelectedItems()
bool measureSelectedItems |
( |
const BI_NetLine & |
netline | ) |
|
|
privatenoexcept |
Measure the length of the selected items.
Note: Currently only non-branching non-intersecting segments can be measured!
- Parameters
-
netline | A selected netline |
◆ measureLengthInDirection()
Internal helper method used by measureSelectedItems.
- Parameters
-
scene | Scene of the board containing the traces. |
directionBackwards | If set to true, the segments are traversed "backwards" starting at the start anchor. Otherwise, the segments are traversed starting at the end anchor. |
netline | The netline that is used as starting point. The length of this netline will not be considered. |
visitedNetLines | A set containing UUIDs of all visited netlines. |
totalLength | A reference to the total length. The length of the found segments will be appended to this total length. |
- Exceptions
-
◆ openPropertiesDialog()
bool openPropertiesDialog |
( |
std::shared_ptr< QGraphicsItem > |
item | ) |
|
|
private |
◆ openDevicePropertiesDialog()
void openDevicePropertiesDialog |
( |
BI_Device & |
device | ) |
|
|
privatenoexcept |
◆ openViaPropertiesDialog()
void openViaPropertiesDialog |
( |
BI_Via & |
via | ) |
|
|
privatenoexcept |
◆ openPlanePropertiesDialog()
void openPlanePropertiesDialog |
( |
BI_Plane & |
plane | ) |
|
|
privatenoexcept |
◆ openZonePropertiesDialog()
void openZonePropertiesDialog |
( |
BI_Zone & |
zone | ) |
|
|
privatenoexcept |
◆ openPolygonPropertiesDialog()
void openPolygonPropertiesDialog |
( |
BI_Polygon & |
polygon | ) |
|
|
privatenoexcept |
◆ openStrokeTextPropertiesDialog()
◆ openHolePropertiesDialog()
void openHolePropertiesDialog |
( |
BI_Hole & |
hole | ) |
|
|
privatenoexcept |
◆ getDeviceMenuItems()
◆ mIsUndoCmdActive
An undo command will be active while dragging pasted items.
◆ mSelectedItemsDragCommand
When dragging items, this undo command will be active.
◆ mSelectedPolygon
The current polygon selected for editing (nullptr if none)
◆ mSelectedPolygonVertices
QVector<int> mSelectedPolygonVertices |
|
private |
The polygon vertex indices selected for editing (empty if none)
◆ mCmdPolygonEdit
The polygon edit command (nullptr if not editing)
◆ mSelectedPlane
The current plane selected for editing (nullptr if none)
◆ mSelectedPlaneVertices
QVector<int> mSelectedPlaneVertices |
|
private |
The plane vertex indices selected for editing (empty if none)
◆ mCmdPlaneEdit
The plane edit command (nullptr if not editing)
◆ mSelectedZone
The current zone selected for editing (nullptr if none)
◆ mSelectedZoneVertices
QVector<int> mSelectedZoneVertices |
|
private |
The zone vertex indices selected for editing (empty if none)
◆ mCmdZoneEdit
The zone edit command (nullptr if not editing)
The documentation for this class was generated from the following files: