LibrePCB Developers Documentation
|
The schematic editor state base class. More...
#include <schematiceditorstate.h>
Public Types | |
enum class | FindFlag |
using | Context = SchematicEditorFsm::Context |
Signals | |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
Public Member Functions | |
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 |
Protected Member Functions | |
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 | |
static const QSet< const Layer * > & | getAllowedGeometryLayers () noexcept |
Protected Attributes | |
Context | mContext |
The schematic editor state base class.
using Context = SchematicEditorFsm::Context |
|
strong |
|
delete |
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_AddComponent, SchematicEditorState_AddNetLabel, SchematicEditorState_AddText, SchematicEditorState_DrawPolygon, SchematicEditorState_DrawWire, SchematicEditorState_Measure, and SchematicEditorState_Select.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_AddComponent.
Reimplemented in SchematicEditorState_AddComponent.
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Measure, and SchematicEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Select.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Measure, and SchematicEditorState_Select.
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Select.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_DrawWire, and SchematicEditorState_Measure.
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_DrawWire, and SchematicEditorState_Measure.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
Reimplemented in SchematicEditorState_Select.
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
|
inlinevirtualnoexcept |
|
delete |
|
signal |
|
protectednoexcept |
|
protectednoexcept |
|
protectednoexcept |
|
protectednoexcept |
|
staticprotectednoexcept |
|
protectednoexcept |
|
protected |
|
protectednoexcept |
|
protectednoexcept |
|
inlineprotectednoexcept |
|
protected |