![]() |
LibrePCB Developers Documentation
|
The SchematicEditorState_AddComponent class. More...
#include <schematiceditorstate_addcomponent.h>
Signals | |
void | valueChanged (const QString &value) |
void | valueSuggestionsChanged (const QStringList &suggestions) |
void | valueAttributeKeyChanged (const std::optional< AttributeKey > &key) |
void | valueAttributeTypeChanged (const AttributeType *type) |
void | valueAttributeValueChanged (const std::optional< QString > &value) |
void | valueAttributeUnitChanged (const AttributeUnit *unit) |
![]() | |
void | requestLeavingState () |
Signal to indicate that the current tool should be exited. | |
Public Member Functions | |
SchematicEditorState_AddComponent ()=delete | |
SchematicEditorState_AddComponent (const SchematicEditorState_AddComponent &other)=delete | |
SchematicEditorState_AddComponent (const Context &context) noexcept | |
virtual | ~SchematicEditorState_AddComponent () noexcept |
virtual bool | entry () noexcept override |
virtual bool | exit () noexcept override |
virtual bool | processAddComponent (const QString &searchTerm=QString()) noexcept override |
virtual bool | processAddComponent (const Uuid &cmp, const Uuid &symbVar) noexcept override |
virtual bool | processRotate (const Angle &rotation) noexcept override |
virtual bool | processMirror (Qt::Orientation orientation) noexcept override |
virtual bool | processAbortCommand () 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 |
virtual bool | processGraphicsSceneRightMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept override |
const QString & | getValue () const noexcept |
void | setValue (const QString &value) noexcept |
const QStringList & | getValueSuggestions () const noexcept |
std::optional< AttributeKey > | getValueAttributeKey () const noexcept |
const AttributeType * | getValueAttributeType () const noexcept |
std::optional< QString > | getValueAttributeValue () const noexcept |
void | setValueAttributeValue (const QString &value) noexcept |
const AttributeUnit * | getValueAttributeUnit () const noexcept |
void | setValueAttributeUnit (const AttributeUnit *unit) noexcept |
SchematicEditorState_AddComponent & | operator= (const SchematicEditorState_AddComponent &rhs)=delete |
![]() | |
SchematicEditorState ()=delete | |
SchematicEditorState (const SchematicEditorState &other)=delete | |
SchematicEditorState (const Context &context, QObject *parent=nullptr) noexcept | |
virtual | ~SchematicEditorState () 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 | processSnapToGrid () noexcept |
virtual bool | processResetAllTexts () noexcept |
virtual bool | processRemove () noexcept |
virtual bool | processEditProperties () noexcept |
virtual bool | processKeyPressed (const GraphicsSceneKeyEvent &e) noexcept |
virtual bool | processKeyReleased (const GraphicsSceneKeyEvent &e) noexcept |
virtual bool | processGraphicsSceneLeftMouseButtonReleased (const GraphicsSceneMouseEvent &e) noexcept |
SchematicEditorState & | operator= (const SchematicEditorState &rhs)=delete |
Private Member Functions | |
void | startAddingComponent (const std::optional< Uuid > &cmp=std::nullopt, const std::optional< Uuid > &symbVar=std::nullopt, const std::optional< librepcb::ComponentAssemblyOptionList > &options=std::nullopt, const QString &searchTerm=QString(), bool keepValue=false) |
bool | abortCommand (bool showErrMsgBox) noexcept |
void | applyValueAndAttributeToComponent () noexcept |
Private Attributes | |
bool | mIsUndoCmdActive |
bool | mUseAddComponentDialog |
QScopedPointer< AddComponentDialog > | mAddComponentDialog |
Angle | mCurrentAngle |
bool | mCurrentMirrored |
QString | mCurrentValue |
QStringList | mCurrentValueSuggestions |
std::optional< Attribute > | mCurrentValueAttribute |
ComponentInstance * | mCurrentComponent |
int | mCurrentSymbVarItemIndex |
SI_Symbol * | mCurrentSymbolToPlace |
CmdSymbolInstanceEditAll * | mCurrentSymbolEditCommand |
Additional Inherited Members | |
![]() | |
enum class | FindFlag |
using | Context = SchematicEditorFsm::Context |
![]() | |
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 const QSet< const Layer * > & | getAllowedGeometryLayers () noexcept |
![]() | |
Context | mContext |
SchematicEditorFsmAdapter & | mAdapter |
The SchematicEditorState_AddComponent class.
|
delete |
|
delete |
|
explicitnoexcept |
|
virtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
|
overridevirtualnoexcept |
Reimplemented from SchematicEditorState.
|
overridevirtualnoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
delete |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
private |
|
privatenoexcept |
|
privatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |