LibrePCB Developers Documentation
|
The SchematicEditorState_AddComponent class. More...
#include <schematiceditorstate_addcomponent.h>
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 (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 |
SchematicEditorState_AddComponent & | operator= (const SchematicEditorState_AddComponent &rhs)=delete |
Public Member Functions inherited from SchematicEditorState | |
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 |
Private Member Functions | |
void | startAddingComponent (const tl::optional< Uuid > &cmp=tl::nullopt, const tl::optional< Uuid > &symbVar=tl::nullopt, const tl::optional< librepcb::ComponentAssemblyOptionList > &options=tl::nullopt, const QString &searchTerm=QString(), bool keepValue=false) |
bool | abortCommand (bool showErrMsgBox) noexcept |
std::shared_ptr< const Attribute > | getToolbarAttribute () const noexcept |
void | valueChanged (QString text) noexcept |
void | attributeChanged () noexcept |
void | updateValueToolbar () noexcept |
void | updateAttributeToolbar () noexcept |
Static Private Member Functions | |
static QString | toSingleLine (const QString &text) noexcept |
static QString | toMultiLine (const QString &text) noexcept |
Private Attributes | |
bool | mIsUndoCmdActive |
bool | mUseAddComponentDialog |
QScopedPointer< AddComponentDialog > | mAddComponentDialog |
Angle | mLastAngle |
bool | mLastMirrored |
ComponentInstance * | mCurrentComponent |
int | mCurrentSymbVarItemIndex |
SI_Symbol * | mCurrentSymbolToPlace |
CmdSymbolInstanceEditAll * | mCurrentSymbolEditCommand |
QPointer< QComboBox > | mValueComboBox |
QPointer< QLineEdit > | mAttributeValueEdit |
QPointer< QAction > | mAttributeValueEditAction |
QPointer< AttributeUnitComboBox > | mAttributeUnitComboBox |
QPointer< QAction > | mAttributeUnitComboBoxAction |
Additional Inherited Members | |
Public Types inherited from SchematicEditorState | |
enum class | FindFlag |
using | Context = SchematicEditorFsm::Context |
Signals inherited from SchematicEditorState | |
void | statusBarMessageChanged (const QString &message, int timeoutMs=-1) |
Protected Member Functions inherited from SchematicEditorState | |
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 inherited from SchematicEditorState | |
static const QSet< const Layer * > & | getAllowedGeometryLayers () noexcept |
Protected Attributes inherited from SchematicEditorState | |
Context | mContext |
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 |
|
delete |
|
private |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
privatenoexcept |
|
staticprivatenoexcept |
|
staticprivatenoexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |