LibrePCB Developers Documentation
SES_AddComponent Class Referencefinal

The SES_AddComponent class. More...

#include <ses_addcomponent.h>

+ Inheritance diagram for SES_AddComponent:
+ Collaboration diagram for SES_AddComponent:

Public Member Functions

 SES_AddComponent (SchematicEditor &editor, Ui::SchematicEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
 ~SES_AddComponent ()
 
ProcRetVal process (SEE_Base *event) noexcept override
 
bool entry (SEE_Base *event) noexcept override
 
bool exit (SEE_Base *event) noexcept override
 
- Public Member Functions inherited from SES_Base
 SES_Base (SchematicEditor &editor, Ui::SchematicEditor &editorUi, GraphicsView &editorGraphicsView, UndoStack &undoStack)
 
virtual ~SES_Base ()
 

Private Member Functions

ProcRetVal processSceneEvent (SEE_Base *event) noexcept
 
void startAddingComponent (const tl::optional< Uuid > &cmp=tl::nullopt, const tl::optional< Uuid > &symbVar=tl::nullopt, const tl::optional< Uuid > &dev=tl::nullopt, bool keepValue=false)
 
bool abortCommand (bool showErrMsgBox) noexcept
 
std::shared_ptr< const AttributegetToolbarAttribute () const noexcept
 
void valueChanged (QString text) noexcept
 
void attributeChanged () noexcept
 
void updateValueToolbar () noexcept
 
void updateAttributeToolbar () noexcept
 
void setFocusToToolbar () noexcept
 

Static Private Member Functions

static QString toSingleLine (const QString &text) noexcept
 
static QString toMultiLine (const QString &text) noexcept
 

Private Attributes

bool mIsUndoCmdActive
 
AddComponentDialogmAddComponentDialog
 
Angle mLastAngle
 
ComponentInstancemCurrentComponent
 
int mCurrentSymbVarItemIndex
 
SI_SymbolmCurrentSymbolToPlace
 
CmdSymbolInstanceEditmCurrentSymbolEditCommand
 
QLabel * mValueLabel
 
QComboBox * mValueComboBox
 
QLineEdit * mAttributeValueEdit
 
QAction * mAttributeValueEditAction
 
AttributeUnitComboBoxmAttributeUnitComboBox
 
QAction * mAttributeUnitComboBoxAction
 

Additional Inherited Members

- Public Types inherited from SES_Base
enum  ProcRetVal
 process() return values More...
 
- Protected Attributes inherited from SES_Base
workspace::WorkspacemWorkspace
 
ProjectmProject
 
CircuitmCircuit
 
SchematicEditormEditor
 
Ui::SchematicEditor & mEditorUi
 allows access to SchematicEditor UI More...
 
GraphicsViewmEditorGraphicsView
 
UndoStackmUndoStack
 

Detailed Description

The SES_AddComponent class.

Constructor & Destructor Documentation

◆ SES_AddComponent()

SES_AddComponent ( SchematicEditor editor,
Ui::SchematicEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit

◆ ~SES_AddComponent()

Member Function Documentation

◆ process()

SES_Base::ProcRetVal process ( SEE_Base event)
overridevirtualnoexcept

Implements SES_Base.

+ Here is the call graph for this function:

◆ entry()

bool entry ( SEE_Base event)
overridevirtualnoexcept

Reimplemented from SES_Base.

+ Here is the call graph for this function:

◆ exit()

bool exit ( SEE_Base event)
overridevirtualnoexcept

Reimplemented from SES_Base.

+ Here is the call graph for this function:

◆ processSceneEvent()

SES_Base::ProcRetVal processSceneEvent ( SEE_Base event)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ startAddingComponent()

void startAddingComponent ( const tl::optional< Uuid > &  cmp = tl::nullopt,
const tl::optional< Uuid > &  symbVar = tl::nullopt,
const tl::optional< Uuid > &  dev = tl::nullopt,
bool  keepValue = false 
)
private
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ abortCommand()

bool abortCommand ( bool  showErrMsgBox)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getToolbarAttribute()

std::shared_ptr< const Attribute > getToolbarAttribute ( ) const
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ valueChanged()

void valueChanged ( QString  text)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ attributeChanged()

void attributeChanged ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateValueToolbar()

void updateValueToolbar ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ updateAttributeToolbar()

void updateAttributeToolbar ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setFocusToToolbar()

void setFocusToToolbar ( )
privatenoexcept
+ Here is the caller graph for this function:

◆ toSingleLine()

QString toSingleLine ( const QString &  text)
staticprivatenoexcept
+ Here is the caller graph for this function:

◆ toMultiLine()

QString toMultiLine ( const QString &  text)
staticprivatenoexcept
+ Here is the caller graph for this function:

Member Data Documentation

◆ mIsUndoCmdActive

bool mIsUndoCmdActive
private

◆ mAddComponentDialog

AddComponentDialog* mAddComponentDialog
private

◆ mLastAngle

Angle mLastAngle
private

◆ mCurrentComponent

ComponentInstance* mCurrentComponent
private

◆ mCurrentSymbVarItemIndex

int mCurrentSymbVarItemIndex
private

◆ mCurrentSymbolToPlace

SI_Symbol* mCurrentSymbolToPlace
private

◆ mCurrentSymbolEditCommand

CmdSymbolInstanceEdit* mCurrentSymbolEditCommand
private

◆ mValueLabel

QLabel* mValueLabel
private

◆ mValueComboBox

QComboBox* mValueComboBox
private

◆ mAttributeValueEdit

QLineEdit* mAttributeValueEdit
private

◆ mAttributeValueEditAction

QAction* mAttributeValueEditAction
private

◆ mAttributeUnitComboBox

AttributeUnitComboBox* mAttributeUnitComboBox
private

◆ mAttributeUnitComboBoxAction

QAction* mAttributeUnitComboBoxAction
private

The documentation for this class was generated from the following files: