LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SchematicEditor Class Referencefinal

The SchematicEditor class. More...

#include <schematiceditor.h>

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

Signals

void activeSchematicChanged (int oldIndex, int newIndex)
 

Public Member Functions

 SchematicEditor (ProjectEditor &projectEditor, Project &project)
 
 ~SchematicEditor ()
 
ProjectEditorgetProjectEditor () const noexcept
 
ProjectgetProject () const noexcept
 
int getActiveSchematicIndex () const noexcept
 
SchematicgetActiveSchematic () const noexcept
 
const GridPropertiesgetGridProperties () 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_actionNew_Schematic_Page_triggered ()
 
void on_actionGrid_triggered ()
 
void on_actionPrint_triggered ()
 
void on_actionPDF_Export_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
 

Private Attributes

ProjectEditormProjectEditor
 
ProjectmProject
 
Ui::SchematicEditor * mUi
 
GraphicsViewmGraphicsView
 
GridPropertiesmGridProperties
 
QScopedPointer
< UndoStackActionGroup
mUndoStackActionGroup
 
QScopedPointer
< ExclusiveActionGroup
mToolsActionGroup
 
int mActiveSchematicIndex
 
SchematicPagesDockmPagesDock
 
ErcMsgDockmErcMsgDock
 
SES_FSMmFsm
 

Detailed Description

The SchematicEditor class.

Constructor & Destructor Documentation

SchematicEditor ( ProjectEditor projectEditor,
Project project 
)
explicit

+ Here is the call graph for this function:

SchematicEditor ( )
private
SchematicEditor ( const SchematicEditor other)
private

Member Function Documentation

ProjectEditor& getProjectEditor ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

Project& getProject ( ) const
inlinenoexcept
int getActiveSchematicIndex ( ) const
inlinenoexcept

+ Here is the caller graph for this function:

Schematic * getActiveSchematic ( ) const
noexcept

+ Here is the caller graph for this function:

const GridProperties& getGridProperties ( ) const
inlinenoexcept
bool setActiveSchematicIndex ( int  index)
noexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void abortAllCommands ( )
noexcept

+ Here is the caller graph for this function:

void closeEvent ( QCloseEvent *  event)
protected
void on_actionClose_Project_triggered ( )
privateslot
void on_actionNew_Schematic_Page_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionGrid_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionPrint_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionPDF_Export_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionAddComp_Resistor_triggered ( )
privateslot
void on_actionAddComp_BipolarCapacitor_triggered ( )
privateslot
void on_actionAddComp_UnipolarCapacitor_triggered ( )
privateslot
void on_actionAddComp_Inductor_triggered ( )
privateslot
void on_actionAddComp_gnd_triggered ( )
privateslot
void on_actionAddComp_vcc_triggered ( )
privateslot
void on_actionProjectProperties_triggered ( )
privateslot
void on_actionUpdateLibrary_triggered ( )
privateslot
void activeSchematicChanged ( int  oldIndex,
int  newIndex 
)
signal

+ Here is the caller graph for this function:

SchematicEditor& operator= ( const SchematicEditor rhs)
private
bool graphicsViewEventHandler ( QEvent *  event)
privatevirtual

The event handler method.

Implements IF_GraphicsViewEventHandler.

void toolActionGroupChangeTriggered ( const QVariant &  newTool)
privatenoexcept

Member Data Documentation

ProjectEditor& mProjectEditor
private
Project& mProject
private
Ui::SchematicEditor* mUi
private
GraphicsView* mGraphicsView
private
GridProperties* mGridProperties
private
QScopedPointer<UndoStackActionGroup> mUndoStackActionGroup
private
QScopedPointer<ExclusiveActionGroup> mToolsActionGroup
private
int mActiveSchematicIndex
private
SchematicPagesDock* mPagesDock
private
ErcMsgDock* mErcMsgDock
private
SES_FSM* mFsm
private

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