LibrePCB Developers Documentation
|
The "add device" state/tool of the board editor. More...
#include <boardeditorstate_adddevice.h>
Public Member Functions | |
BoardEditorState_AddDevice ()=delete | |
BoardEditorState_AddDevice (const BoardEditorState_AddDevice &other)=delete | |
BoardEditorState_AddDevice (const Context &context) noexcept | |
virtual | ~BoardEditorState_AddDevice () noexcept |
virtual bool | entry () noexcept override |
virtual bool | exit () noexcept override |
virtual bool | processAddDevice (ComponentInstance &component, const Uuid &device, const Uuid &footprint) noexcept override |
virtual bool | processRotate (const Angle &rotation) noexcept override |
virtual bool | processFlip (Qt::Orientation orientation) noexcept override |
virtual bool | processGraphicsSceneMouseMoved (QGraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonPressed (QGraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonDoubleClicked (QGraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneRightMouseButtonReleased (QGraphicsSceneMouseEvent &e) noexcept override |
BoardEditorState_AddDevice & | operator= (const BoardEditorState_AddDevice &rhs)=delete |
Public Member Functions inherited from BoardEditorState | |
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 |
Private Member Functions | |
bool | addDevice (ComponentInstance &cmp, const Uuid &dev, const Uuid &fpt) noexcept |
bool | rotateDevice (const Angle &angle) noexcept |
bool | mirrorDevice (Qt::Orientation orientation) noexcept |
bool | abortCommand (bool showErrMsgBox) noexcept |
Private Attributes | |
bool | mIsUndoCmdActive |
BI_Device * | mCurrentDeviceToPlace |
QScopedPointer< CmdDeviceInstanceEditAll > | mCurrentDeviceEditCmd |
Additional Inherited Members | |
Public Types inherited from BoardEditorState | |
enum class | FindFlag |
using | Context = BoardEditorFsm::Context |
Signals inherited from BoardEditorState | |
void | requestLeavingState () |
Signal to indicate that the current tool should be exited. More... | |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
Protected Member Functions inherited from BoardEditorState | |
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 tl::optional< const Layer & > cuLayer=tl::nullopt, 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 tl::optional< const Layer & > cuLayer=tl::nullopt, const QSet< const NetSignal * > &netsignals={}, const QVector< std::shared_ptr< QGraphicsItem > > &except={}) noexcept |
Protected Attributes inherited from BoardEditorState | |
Context | mContext |
The "add device" state/tool of the board editor.
|
delete |
|
delete |
|
noexcept |
|
virtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from BoardEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from BoardEditorState.
|
overridevirtualnoexcept |
Reimplemented from BoardEditorState.
|
overridevirtualnoexcept |
Reimplemented from BoardEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from BoardEditorState.
|
overridevirtualnoexcept |
|
delete |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |