LibrePCB Developers Documentation
SchematicEditor Class Referencefinal

The SchematicEditor class. More...

#include <schematiceditor.h>

+ Inheritance diagram for SchematicEditor:
+ Collaboration diagram for SchematicEditor:

Signals

void activeSchematicChanged (int index)
 

Public Member Functions

 SchematicEditor (ProjectEditor &projectEditor, Project &project)
 
 ~SchematicEditor ()
 
ProjectEditorgetProjectEditor () const noexcept
 
ProjectgetProject () const noexcept
 
int getActiveSchematicIndex () const noexcept
 
SchematicgetActiveSchematic () const noexcept
 
bool setActiveSchematicIndex (int index) noexcept
 
void abortAllCommands () noexcept
 
- Public Member Functions inherited from IF_GraphicsViewEventHandler
 IF_GraphicsViewEventHandler () noexcept
 
virtual ~IF_GraphicsViewEventHandler () noexcept
 

Protected Member Functions

void closeEvent (QCloseEvent *event)
 

Private Slots

void on_actionClose_Project_triggered ()
 
void on_actionRenameSheet_triggered ()
 
void on_actionGrid_triggered ()
 
void on_actionPrint_triggered ()
 
void on_actionPDF_Export_triggered ()
 
void on_actionExportAsSvg_triggered ()
 
void on_actionGenerateBom_triggered ()
 
void on_actionAddComp_Resistor_triggered ()
 
void on_actionAddComp_BipolarCapacitor_triggered ()
 
void on_actionAddComp_UnipolarCapacitor_triggered ()
 
void on_actionAddComp_Inductor_triggered ()
 
void on_actionAddComp_gnd_triggered ()
 
void on_actionAddComp_vcc_triggered ()
 
void on_actionProjectProperties_triggered ()
 
void on_actionUpdateLibrary_triggered ()
 

Private Member Functions

 SchematicEditor ()
 
 SchematicEditor (const SchematicEditor &other)
 
SchematicEditoroperator= (const SchematicEditor &rhs)
 
bool graphicsViewEventHandler (QEvent *event)
 The event handler method. More...
 
void toolActionGroupChangeTriggered (const QVariant &newTool) noexcept
 
void addSchematic () noexcept
 
void removeSchematic (int index) noexcept
 
void renameSchematic (int index) noexcept
 
QStringList getSearchToolBarCompleterList () noexcept
 
void goToSymbol (const QString &name) noexcept
 

Private Attributes

ProjectEditormProjectEditor
 
ProjectmProject
 
Ui::SchematicEditor * mUi
 
GraphicsViewmGraphicsView
 
QScopedPointer< UndoStackActionGroupmUndoStackActionGroup
 
QScopedPointer< ExclusiveActionGroupmToolsActionGroup
 
int mActiveSchematicIndex
 
SchematicPagesDockmPagesDock
 
ErcMsgDockmErcMsgDock
 
SchematicEditorFsmmFsm
 

Detailed Description

The SchematicEditor class.

Constructor & Destructor Documentation

◆ SchematicEditor() [1/3]

SchematicEditor ( ProjectEditor projectEditor,
Project project 
)
explicit
+ Here is the call graph for this function:

◆ ~SchematicEditor()

◆ SchematicEditor() [2/3]

SchematicEditor ( )
private

◆ SchematicEditor() [3/3]

SchematicEditor ( const SchematicEditor other)
private

Member Function Documentation

◆ getProjectEditor()

ProjectEditor& getProjectEditor ( ) const
inlinenoexcept

◆ getProject()

Project& getProject ( ) const
inlinenoexcept

◆ getActiveSchematicIndex()

int getActiveSchematicIndex ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getActiveSchematic()

Schematic * getActiveSchematic ( ) const
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setActiveSchematicIndex()

bool setActiveSchematicIndex ( int  index)
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ abortAllCommands()

void abortAllCommands ( )
noexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ closeEvent()

void closeEvent ( QCloseEvent *  event)
protected
+ Here is the call graph for this function:

◆ on_actionClose_Project_triggered

void on_actionClose_Project_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionRenameSheet_triggered

void on_actionRenameSheet_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionGrid_triggered

void on_actionGrid_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionPrint_triggered

void on_actionPrint_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionPDF_Export_triggered

void on_actionPDF_Export_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionExportAsSvg_triggered

void on_actionExportAsSvg_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionGenerateBom_triggered

void on_actionGenerateBom_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionAddComp_Resistor_triggered

void on_actionAddComp_Resistor_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionAddComp_BipolarCapacitor_triggered

void on_actionAddComp_BipolarCapacitor_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionAddComp_UnipolarCapacitor_triggered

void on_actionAddComp_UnipolarCapacitor_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionAddComp_Inductor_triggered

void on_actionAddComp_Inductor_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionAddComp_gnd_triggered

void on_actionAddComp_gnd_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionAddComp_vcc_triggered

void on_actionAddComp_vcc_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionProjectProperties_triggered

void on_actionProjectProperties_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ on_actionUpdateLibrary_triggered

void on_actionUpdateLibrary_triggered ( )
privateslot
+ Here is the call graph for this function:

◆ activeSchematicChanged

void activeSchematicChanged ( int  index)
signal
+ Here is the caller graph for this function:

◆ operator=()

SchematicEditor& operator= ( const SchematicEditor rhs)
private

◆ graphicsViewEventHandler()

bool graphicsViewEventHandler ( QEvent *  event)
privatevirtual

The event handler method.

Implements IF_GraphicsViewEventHandler.

+ Here is the call graph for this function:

◆ toolActionGroupChangeTriggered()

void toolActionGroupChangeTriggered ( const QVariant &  newTool)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addSchematic()

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

◆ removeSchematic()

void removeSchematic ( int  index)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renameSchematic()

void renameSchematic ( int  index)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSearchToolBarCompleterList()

QStringList getSearchToolBarCompleterList ( )
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ goToSymbol()

void goToSymbol ( const QString &  name)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mProjectEditor

ProjectEditor& mProjectEditor
private

◆ mProject

Project& mProject
private

◆ mUi

Ui::SchematicEditor* mUi
private

◆ mGraphicsView

GraphicsView* mGraphicsView
private

◆ mUndoStackActionGroup

QScopedPointer<UndoStackActionGroup> mUndoStackActionGroup
private

◆ mToolsActionGroup

QScopedPointer<ExclusiveActionGroup> mToolsActionGroup
private

◆ mActiveSchematicIndex

int mActiveSchematicIndex
private

◆ mPagesDock

SchematicPagesDock* mPagesDock
private

◆ mErcMsgDock

ErcMsgDock* mErcMsgDock
private

◆ mFsm

SchematicEditorFsm* mFsm
private

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