![]() |
LibrePCB Developers Documentation
|
The "add hole" state/tool of the board editor. More...
#include <boardeditorstate_addhole.h>
Signals | |
void | diameterChanged (const PositiveLength &diameter) |
![]() | |
void | requestLeavingState () |
Signal to indicate that the current tool should be exited. | |
Public Member Functions | |
BoardEditorState_AddHole ()=delete | |
BoardEditorState_AddHole (const BoardEditorState_AddHole &other)=delete | |
BoardEditorState_AddHole (const Context &context) noexcept | |
virtual | ~BoardEditorState_AddHole () noexcept |
virtual bool | entry () noexcept override |
virtual bool | exit () noexcept override |
virtual bool | processGraphicsSceneMouseMoved (const GraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonPressed (const GraphicsSceneMouseEvent &e) noexcept override |
virtual bool | processGraphicsSceneLeftMouseButtonDoubleClicked (const GraphicsSceneMouseEvent &e) noexcept override |
const PositiveLength & | getDiameter () const noexcept |
void | setDiameter (const PositiveLength &diameter) noexcept |
BoardEditorState_AddHole & | operator= (const BoardEditorState_AddHole &rhs)=delete |
![]() | |
BoardEditorState ()=delete | |
BoardEditorState (const BoardEditorState &other)=delete | |
BoardEditorState (const Context &context, QObject *parent=nullptr) noexcept | |
virtual | ~BoardEditorState () 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 GraphicsSceneKeyEvent &e) noexcept |
virtual bool | processKeyReleased (const GraphicsSceneKeyEvent &e) noexcept |
virtual bool | processGraphicsSceneLeftMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept |
virtual bool | processGraphicsSceneRightMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept |
BoardEditorState & | operator= (const BoardEditorState &rhs)=delete |
Private Member Functions | |
bool | addHole (const Point &pos) noexcept |
bool | updatePosition (const Point &pos) noexcept |
bool | fixPosition (const Point &pos) noexcept |
bool | abortCommand (bool showErrMsgBox) noexcept |
Private Attributes | |
bool | mIsUndoCmdActive |
PositiveLength | mCurrentDiameter |
BI_Hole * | mCurrentHoleToPlace |
std::unique_ptr< CmdBoardHoleEdit > | mCurrentHoleEditCmd |
Additional Inherited Members | |
![]() | |
enum class | FindFlag : uint32_t |
using | Context = BoardEditorFsm::Context |
![]() | |
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 |
![]() | |
Context | mContext |
BoardEditorFsmAdapter & | mAdapter |
The "add hole" state/tool of the board editor.
|
delete |
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from BoardEditorState.
|
inlinenoexcept |
|
noexcept |
|
delete |
|
signal |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |