LibrePCB Developers Documentation
|
The board editor state base class. More...
#include <boardeditorstate.h>
Public Types | |
enum class | FindFlag |
using | Context = BoardEditorFsm::Context |
Signals | |
void | requestLeavingState () |
Signal to indicate that the current tool should be exited. | |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
Public Member Functions | |
BoardEditorState ()=delete | |
BoardEditorState (const BoardEditorState &other)=delete | |
BoardEditorState (const Context &context, QObject *parent=nullptr) noexcept | |
virtual | ~BoardEditorState () noexcept |
virtual bool | entry () noexcept |
virtual bool | exit () noexcept |
virtual bool | processAddDevice (ComponentInstance &component, const Uuid &device, const Uuid &footprint) noexcept |
virtual bool | processImportDxf () 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 | processFlip (Qt::Orientation orientation) noexcept |
virtual bool | processSnapToGrid () noexcept |
virtual bool | processSetLocked (bool locked) noexcept |
virtual bool | processChangeLineWidth (int step) 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 | processSwitchToBoard (int index) noexcept |
BoardEditorState & | operator= (const BoardEditorState &rhs)=delete |
Protected Member Functions | |
Board * | getActiveBoard () noexcept |
BoardGraphicsScene * | getActiveBoardScene () noexcept |
bool | getIgnoreLocks () const noexcept |
PositiveLength | getGridInterval () const noexcept |
const LengthUnit & | getLengthUnit () const noexcept |
QSet< const Layer * > | getAllowedGeometryLayers () noexcept |
void | makeLayerVisible (const QString &layer) noexcept |
void | abortBlockingToolsInOtherEditors () noexcept |
bool | execCmd (UndoCommand *cmd) |
QWidget * | parentWidget () noexcept |
QList< std::shared_ptr< QGraphicsItem > > | findItemsAtPos (const Point &pos, FindFlags flags, const Layer *cuLayer=nullptr, const QSet< const NetSignal * > &netsignals={}, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept |
template<typename T = QGraphicsItem> | |
std::shared_ptr< T > | findItemAtPos (const Point &pos, FindFlags flags, const Layer *cuLayer=nullptr, const QSet< const NetSignal * > &netsignals={}, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept |
Protected Attributes | |
Context | mContext |
The board editor state base class.
using Context = BoardEditorFsm::Context |
|
strong |
|
delete |
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_AddDevice, BoardEditorState_AddHole, BoardEditorState_AddStrokeText, BoardEditorState_AddVia, BoardEditorState_DrawPlane, BoardEditorState_DrawPolygon, BoardEditorState_DrawTrace, BoardEditorState_DrawZone, BoardEditorState_Measure, and BoardEditorState_Select.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_AddDevice.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Measure, and BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_AddDevice, BoardEditorState_AddStrokeText, and BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_AddDevice, BoardEditorState_AddStrokeText, and BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Measure, and BoardEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_DrawTrace, and BoardEditorState_Measure.
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_DrawTrace, and BoardEditorState_Measure.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_Select.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in BoardEditorState_AddDevice, BoardEditorState_AddStrokeText, BoardEditorState_DrawTrace, and BoardEditorState_Select.
|
inlinevirtualnoexcept |
|
delete |
|
signal |
Signal to indicate that the current tool should be exited.
This signal can be emitted by each state to signalize the FSM to leave the current state and entering the select tool.
|
signal |
|
protectednoexcept |
|
protectednoexcept |
|
protectednoexcept |
|
protectednoexcept |
|
protectednoexcept |
|
protectednoexcept |
|
protectednoexcept |
|
protectednoexcept |
|
protected |
|
protectednoexcept |
|
protectednoexcept |
|
inlineprotectednoexcept |
|
protected |