LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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) noexceptoverride
 
bool entry (SEE_Base *event) noexceptoverride
 
bool exit (SEE_Base *event) noexceptoverride
 
- 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, 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 ( SchematicEditor editor,
Ui::SchematicEditor &  editorUi,
GraphicsView editorGraphicsView,
UndoStack undoStack 
)
explicit

Member Function Documentation

SES_Base::ProcRetVal process ( SEE_Base event)
overridevirtualnoexcept

Implements SES_Base.

+ Here is the call graph for this function:

bool entry ( SEE_Base event)
overridevirtualnoexcept

Reimplemented from SES_Base.

+ Here is the call graph for this function:

bool exit ( SEE_Base event)
overridevirtualnoexcept

Reimplemented from SES_Base.

SES_Base::ProcRetVal processSceneEvent ( SEE_Base event)
privatenoexcept

+ Here is the call graph for this function:

void startAddingComponent ( const tl::optional< Uuid > &  cmp = tl::nullopt,
const tl::optional< Uuid > &  symbVar = tl::nullopt,
bool  keepValue = false 
)
private

+ Here is the call graph for this function:

bool abortCommand ( bool  showErrMsgBox)
privatenoexcept

+ Here is the call graph for this function:

std::shared_ptr< const Attribute > getToolbarAttribute ( ) const
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void valueChanged ( QString  text)
privatenoexcept

+ Here is the caller graph for this function:

void attributeChanged ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void updateValueToolbar ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void updateAttributeToolbar ( )
privatenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void setFocusToToolbar ( )
privatenoexcept

+ Here is the caller graph for this function:

QString toSingleLine ( const QString &  text)
staticprivatenoexcept

+ Here is the caller graph for this function:

QString toMultiLine ( const QString &  text)
staticprivatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

bool mIsUndoCmdActive
private
AddComponentDialog* mAddComponentDialog
private
Angle mLastAngle
private
ComponentInstance* mCurrentComponent
private
int mCurrentSymbVarItemIndex
private
SI_Symbol* mCurrentSymbolToPlace
private
CmdSymbolInstanceEdit* mCurrentSymbolEditCommand
private
QLabel* mValueLabel
private
QComboBox* mValueComboBox
private
QLineEdit* mAttributeValueEdit
private
QAction* mAttributeValueEditAction
private
AttributeUnitComboBox* mAttributeUnitComboBox
private
QAction* mAttributeUnitComboBoxAction
private

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