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 ()=delete
 
 SchematicEditor (const SchematicEditor &other)=delete
 
 SchematicEditor (ProjectEditor &projectEditor, Project &project)
 
 ~SchematicEditor ()
 
ProjectEditorgetProjectEditor () const noexcept
 
ProjectgetProject () const noexcept
 
int getActiveSchematicIndex () const noexcept
 
SchematicgetActiveSchematic () const noexcept
 
SchematicGraphicsScenegetActiveSchematicScene () noexcept
 
virtual std::shared_ptr< GraphicsLayergetLayer (const QString &name) const noexcept override
 
virtual QList< std::shared_ptr< GraphicsLayer > > getAllLayers () const noexcept override
 
bool setActiveSchematicIndex (int index) noexcept
 
void abortAllCommands () noexcept
 
void abortBlockingToolsInOtherEditors () noexcept
 
SchematicEditoroperator= (const SchematicEditor &rhs)=delete
 
- Public Member Functions inherited from IF_GraphicsLayerProvider
virtual ~IF_GraphicsLayerProvider () noexcept
 
virtual QList< std::shared_ptr< GraphicsLayer > > getAllLayers () const noexcept=0
 
virtual std::shared_ptr< GraphicsLayergetLayer (const QString &name) const noexcept=0
 
std::shared_ptr< GraphicsLayergetLayer (const Layer &layer) const noexcept
 
std::shared_ptr< GraphicsLayergetGrabAreaLayer (const Layer &outlineLayer) const noexcept
 
- Public Member Functions inherited from IF_GraphicsViewEventHandler
 IF_GraphicsViewEventHandler () noexcept
 
virtual ~IF_GraphicsViewEventHandler () noexcept
 
virtual bool graphicsViewEventHandler (QEvent *event)=0
 The event handler method. More...
 

Protected Member Functions

virtual void closeEvent (QCloseEvent *event) noexcept override
 

Private Member Functions

void addLayers (const Theme &theme) noexcept
 
void createActions () noexcept
 
void createToolBars () noexcept
 
void createDockWidgets () noexcept
 
void createMenus () noexcept
 
virtual bool graphicsViewEventHandler (QEvent *event) override
 The event handler method. More...
 
void toolRequested (const QVariant &newTool) noexcept
 
void addSchematic () noexcept
 
void removeSchematic (int index) noexcept
 
void renameSchematic (int index) noexcept
 
QList< SI_Symbol * > getSearchCandidates () noexcept
 
QStringList getSearchToolBarCompleterList () noexcept
 
void goToSymbol (const QString &name, int index) noexcept
 
void updateEmptySchematicMessage () noexcept
 
void updateComponentToolbarIcons () noexcept
 
void setGridProperties (const PositiveLength &interval, const LengthUnit &unit, Theme::GridStyle style, bool applyToSchematics) noexcept
 
void execGridPropertiesDialog () noexcept
 
void execGraphicsExportDialog (GraphicsExportDialog::Output output, const QString &settingsKey) noexcept
 
bool useIeee315Symbols () const noexcept
 

Private Attributes

ProjectEditormProjectEditor
 
ProjectmProject
 
QScopedPointer< Ui::SchematicEditor > mUi
 
QScopedPointer< ToolBarProxymCommandToolBarProxy
 
QScopedPointer< StandardEditorCommandHandlermStandardCommandHandler
 
int mActiveSchematicIndex
 
QList< std::shared_ptr< GraphicsLayer > > mLayers
 
QScopedPointer< SchematicGraphicsScenemGraphicsScene
 
QHash< Uuid, QRectF > mVisibleSceneRect
 
QScopedPointer< SchematicEditorFsmmFsm
 
QScopedPointer< QAction > mActionAboutLibrePcb
 
QScopedPointer< QAction > mActionAboutQt
 
QScopedPointer< QAction > mActionOnlineDocumentation
 
QScopedPointer< QAction > mActionKeyboardShortcutsReference
 
QScopedPointer< QAction > mActionWebsite
 
QScopedPointer< QAction > mActionSaveProject
 
QScopedPointer< QAction > mActionCloseProject
 
QScopedPointer< QAction > mActionCloseWindow
 
QScopedPointer< QAction > mActionQuit
 
QScopedPointer< QAction > mActionFileManager
 
QScopedPointer< QAction > mActionBoardEditor
 
QScopedPointer< QAction > mActionControlPanel
 
QScopedPointer< QAction > mActionProjectSetup
 
QScopedPointer< QAction > mActionUpdateLibrary
 
QScopedPointer< QAction > mActionExportLppz
 
QScopedPointer< QAction > mActionExportImage
 
QScopedPointer< QAction > mActionExportPdf
 
QScopedPointer< QAction > mActionPrint
 
QScopedPointer< QAction > mActionGenerateBom
 
QScopedPointer< QAction > mActionOutputJobs
 
QScopedPointer< QAction > mActionOrderPcb
 
QScopedPointer< QAction > mActionNewSheet
 
QScopedPointer< QAction > mActionRenameSheet
 
QScopedPointer< QAction > mActionRemoveSheet
 
QScopedPointer< QAction > mActionNextPage
 
QScopedPointer< QAction > mActionPreviousPage
 
QScopedPointer< QAction > mActionFind
 
QScopedPointer< QAction > mActionFindNext
 
QScopedPointer< QAction > mActionFindPrevious
 
QScopedPointer< QAction > mActionSelectAll
 
QScopedPointer< QAction > mActionGridProperties
 
QScopedPointer< QAction > mActionGridIncrease
 
QScopedPointer< QAction > mActionGridDecrease
 
QScopedPointer< QAction > mActionShowPinNumbers
 
QScopedPointer< QAction > mActionZoomFit
 
QScopedPointer< QAction > mActionZoomIn
 
QScopedPointer< QAction > mActionZoomOut
 
QScopedPointer< QAction > mActionUndo
 
QScopedPointer< QAction > mActionRedo
 
QScopedPointer< QAction > mActionCut
 
QScopedPointer< QAction > mActionCopy
 
QScopedPointer< QAction > mActionPaste
 
QScopedPointer< QAction > mActionMoveLeft
 
QScopedPointer< QAction > mActionMoveRight
 
QScopedPointer< QAction > mActionMoveUp
 
QScopedPointer< QAction > mActionMoveDown
 
QScopedPointer< QAction > mActionRotateCcw
 
QScopedPointer< QAction > mActionRotateCw
 
QScopedPointer< QAction > mActionMirrorHorizontal
 
QScopedPointer< QAction > mActionMirrorVertical
 
QScopedPointer< QAction > mActionResetAllTexts
 
QScopedPointer< QAction > mActionProperties
 
QScopedPointer< QAction > mActionRemove
 
QScopedPointer< QAction > mActionAbort
 
QScopedPointer< QAction > mActionToolSelect
 
QScopedPointer< QAction > mActionToolWire
 
QScopedPointer< QAction > mActionToolNetLabel
 
QScopedPointer< QAction > mActionToolPolygon
 
QScopedPointer< QAction > mActionToolText
 
QScopedPointer< QAction > mActionToolComponent
 
QScopedPointer< QAction > mActionToolMeasure
 
QScopedPointer< QAction > mActionComponentResistor
 
QScopedPointer< QAction > mActionComponentInductor
 
QScopedPointer< QAction > mActionComponentCapacitorBipolar
 
QScopedPointer< QAction > mActionComponentCapacitorUnipolar
 
QScopedPointer< QAction > mActionComponentGnd
 
QScopedPointer< QAction > mActionComponentVcc
 
QScopedPointer< QAction > mActionDockPages
 
QScopedPointer< QAction > mActionDockErc
 
QScopedPointer< UndoStackActionGroupmUndoStackActionGroup
 
QScopedPointer< ExclusiveActionGroupmToolsActionGroup
 
QScopedPointer< QToolBar > mToolBarFile
 
QScopedPointer< QToolBar > mToolBarEdit
 
QScopedPointer< QToolBar > mToolBarView
 
QScopedPointer< SearchToolBarmToolBarSearch
 
QScopedPointer< QToolBar > mToolBarCommand
 
QScopedPointer< QToolBar > mToolBarTools
 
QScopedPointer< QToolBar > mToolBarComponents
 
QScopedPointer< SchematicPagesDockmDockPages
 
QScopedPointer< RuleCheckDockmDockErc
 
QVector< QMetaObject::Connection > mSchematicConnections
 

Detailed Description

The SchematicEditor class.

Constructor & Destructor Documentation

◆ SchematicEditor() [1/3]

SchematicEditor ( )
delete

◆ SchematicEditor() [2/3]

SchematicEditor ( const SchematicEditor other)
delete

◆ SchematicEditor() [3/3]

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

◆ ~SchematicEditor()

Member Function Documentation

◆ getProjectEditor()

ProjectEditor & getProjectEditor ( ) const
inlinenoexcept

◆ getProject()

Project & getProject ( ) const
inlinenoexcept

◆ getActiveSchematicIndex()

int getActiveSchematicIndex ( ) const
inlinenoexcept

◆ getActiveSchematic()

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

◆ getActiveSchematicScene()

SchematicGraphicsScene * getActiveSchematicScene ( )
inlinenoexcept
+ Here is the caller graph for this function:

◆ getLayer()

virtual std::shared_ptr< GraphicsLayer > getLayer ( const QString &  name) const
inlineoverridevirtualnoexcept

◆ getAllLayers()

virtual QList< std::shared_ptr< GraphicsLayer > > getAllLayers ( ) const
inlineoverridevirtualnoexcept

◆ setActiveSchematicIndex()

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

◆ abortAllCommands()

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

◆ abortBlockingToolsInOtherEditors()

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

◆ operator=()

SchematicEditor & operator= ( const SchematicEditor rhs)
delete

◆ closeEvent()

void closeEvent ( QCloseEvent *  event)
overrideprotectedvirtualnoexcept

◆ activeSchematicChanged

void activeSchematicChanged ( int  index)
signal

◆ addLayers()

void addLayers ( const Theme theme)
privatenoexcept
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createActions()

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

◆ createToolBars()

void createToolBars ( )
privatenoexcept

◆ createDockWidgets()

void createDockWidgets ( )
privatenoexcept

◆ createMenus()

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

◆ graphicsViewEventHandler()

bool graphicsViewEventHandler ( QEvent *  event)
overrideprivatevirtual

The event handler method.

Implements IF_GraphicsViewEventHandler.

◆ toolRequested()

void toolRequested ( const QVariant &  newTool)
privatenoexcept

◆ addSchematic()

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

◆ removeSchematic()

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

◆ renameSchematic()

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

◆ getSearchCandidates()

QList< SI_Symbol * > getSearchCandidates ( )
privatenoexcept
+ Here is the call graph for this function:

◆ getSearchToolBarCompleterList()

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

◆ goToSymbol()

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

◆ updateEmptySchematicMessage()

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

◆ updateComponentToolbarIcons()

void updateComponentToolbarIcons ( )
privatenoexcept

◆ setGridProperties()

void setGridProperties ( const PositiveLength interval,
const LengthUnit unit,
Theme::GridStyle  style,
bool  applyToSchematics 
)
privatenoexcept
+ Here is the call graph for this function:

◆ execGridPropertiesDialog()

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

◆ execGraphicsExportDialog()

void execGraphicsExportDialog ( GraphicsExportDialog::Output  output,
const QString &  settingsKey 
)
privatenoexcept
+ Here is the call graph for this function:

◆ useIeee315Symbols()

bool useIeee315Symbols ( ) const
privatenoexcept

Member Data Documentation

◆ mProjectEditor

ProjectEditor& mProjectEditor
private

◆ mProject

Project& mProject
private

◆ mUi

QScopedPointer<Ui::SchematicEditor> mUi
private

◆ mCommandToolBarProxy

QScopedPointer<ToolBarProxy> mCommandToolBarProxy
private

◆ mStandardCommandHandler

QScopedPointer<StandardEditorCommandHandler> mStandardCommandHandler
private

◆ mActiveSchematicIndex

int mActiveSchematicIndex
private

◆ mLayers

QList<std::shared_ptr<GraphicsLayer> > mLayers
private

◆ mGraphicsScene

QScopedPointer<SchematicGraphicsScene> mGraphicsScene
private

◆ mVisibleSceneRect

QHash<Uuid, QRectF> mVisibleSceneRect
private

◆ mFsm

QScopedPointer<SchematicEditorFsm> mFsm
private

◆ mActionAboutLibrePcb

QScopedPointer<QAction> mActionAboutLibrePcb
private

◆ mActionAboutQt

QScopedPointer<QAction> mActionAboutQt
private

◆ mActionOnlineDocumentation

QScopedPointer<QAction> mActionOnlineDocumentation
private

◆ mActionKeyboardShortcutsReference

QScopedPointer<QAction> mActionKeyboardShortcutsReference
private

◆ mActionWebsite

QScopedPointer<QAction> mActionWebsite
private

◆ mActionSaveProject

QScopedPointer<QAction> mActionSaveProject
private

◆ mActionCloseProject

QScopedPointer<QAction> mActionCloseProject
private

◆ mActionCloseWindow

QScopedPointer<QAction> mActionCloseWindow
private

◆ mActionQuit

QScopedPointer<QAction> mActionQuit
private

◆ mActionFileManager

QScopedPointer<QAction> mActionFileManager
private

◆ mActionBoardEditor

QScopedPointer<QAction> mActionBoardEditor
private

◆ mActionControlPanel

QScopedPointer<QAction> mActionControlPanel
private

◆ mActionProjectSetup

QScopedPointer<QAction> mActionProjectSetup
private

◆ mActionUpdateLibrary

QScopedPointer<QAction> mActionUpdateLibrary
private

◆ mActionExportLppz

QScopedPointer<QAction> mActionExportLppz
private

◆ mActionExportImage

QScopedPointer<QAction> mActionExportImage
private

◆ mActionExportPdf

QScopedPointer<QAction> mActionExportPdf
private

◆ mActionPrint

QScopedPointer<QAction> mActionPrint
private

◆ mActionGenerateBom

QScopedPointer<QAction> mActionGenerateBom
private

◆ mActionOutputJobs

QScopedPointer<QAction> mActionOutputJobs
private

◆ mActionOrderPcb

QScopedPointer<QAction> mActionOrderPcb
private

◆ mActionNewSheet

QScopedPointer<QAction> mActionNewSheet
private

◆ mActionRenameSheet

QScopedPointer<QAction> mActionRenameSheet
private

◆ mActionRemoveSheet

QScopedPointer<QAction> mActionRemoveSheet
private

◆ mActionNextPage

QScopedPointer<QAction> mActionNextPage
private

◆ mActionPreviousPage

QScopedPointer<QAction> mActionPreviousPage
private

◆ mActionFind

QScopedPointer<QAction> mActionFind
private

◆ mActionFindNext

QScopedPointer<QAction> mActionFindNext
private

◆ mActionFindPrevious

QScopedPointer<QAction> mActionFindPrevious
private

◆ mActionSelectAll

QScopedPointer<QAction> mActionSelectAll
private

◆ mActionGridProperties

QScopedPointer<QAction> mActionGridProperties
private

◆ mActionGridIncrease

QScopedPointer<QAction> mActionGridIncrease
private

◆ mActionGridDecrease

QScopedPointer<QAction> mActionGridDecrease
private

◆ mActionShowPinNumbers

QScopedPointer<QAction> mActionShowPinNumbers
private

◆ mActionZoomFit

QScopedPointer<QAction> mActionZoomFit
private

◆ mActionZoomIn

QScopedPointer<QAction> mActionZoomIn
private

◆ mActionZoomOut

QScopedPointer<QAction> mActionZoomOut
private

◆ mActionUndo

QScopedPointer<QAction> mActionUndo
private

◆ mActionRedo

QScopedPointer<QAction> mActionRedo
private

◆ mActionCut

QScopedPointer<QAction> mActionCut
private

◆ mActionCopy

QScopedPointer<QAction> mActionCopy
private

◆ mActionPaste

QScopedPointer<QAction> mActionPaste
private

◆ mActionMoveLeft

QScopedPointer<QAction> mActionMoveLeft
private

◆ mActionMoveRight

QScopedPointer<QAction> mActionMoveRight
private

◆ mActionMoveUp

QScopedPointer<QAction> mActionMoveUp
private

◆ mActionMoveDown

QScopedPointer<QAction> mActionMoveDown
private

◆ mActionRotateCcw

QScopedPointer<QAction> mActionRotateCcw
private

◆ mActionRotateCw

QScopedPointer<QAction> mActionRotateCw
private

◆ mActionMirrorHorizontal

QScopedPointer<QAction> mActionMirrorHorizontal
private

◆ mActionMirrorVertical

QScopedPointer<QAction> mActionMirrorVertical
private

◆ mActionResetAllTexts

QScopedPointer<QAction> mActionResetAllTexts
private

◆ mActionProperties

QScopedPointer<QAction> mActionProperties
private

◆ mActionRemove

QScopedPointer<QAction> mActionRemove
private

◆ mActionAbort

QScopedPointer<QAction> mActionAbort
private

◆ mActionToolSelect

QScopedPointer<QAction> mActionToolSelect
private

◆ mActionToolWire

QScopedPointer<QAction> mActionToolWire
private

◆ mActionToolNetLabel

QScopedPointer<QAction> mActionToolNetLabel
private

◆ mActionToolPolygon

QScopedPointer<QAction> mActionToolPolygon
private

◆ mActionToolText

QScopedPointer<QAction> mActionToolText
private

◆ mActionToolComponent

QScopedPointer<QAction> mActionToolComponent
private

◆ mActionToolMeasure

QScopedPointer<QAction> mActionToolMeasure
private

◆ mActionComponentResistor

QScopedPointer<QAction> mActionComponentResistor
private

◆ mActionComponentInductor

QScopedPointer<QAction> mActionComponentInductor
private

◆ mActionComponentCapacitorBipolar

QScopedPointer<QAction> mActionComponentCapacitorBipolar
private

◆ mActionComponentCapacitorUnipolar

QScopedPointer<QAction> mActionComponentCapacitorUnipolar
private

◆ mActionComponentGnd

QScopedPointer<QAction> mActionComponentGnd
private

◆ mActionComponentVcc

QScopedPointer<QAction> mActionComponentVcc
private

◆ mActionDockPages

QScopedPointer<QAction> mActionDockPages
private

◆ mActionDockErc

QScopedPointer<QAction> mActionDockErc
private

◆ mUndoStackActionGroup

QScopedPointer<UndoStackActionGroup> mUndoStackActionGroup
private

◆ mToolsActionGroup

QScopedPointer<ExclusiveActionGroup> mToolsActionGroup
private

◆ mToolBarFile

QScopedPointer<QToolBar> mToolBarFile
private

◆ mToolBarEdit

QScopedPointer<QToolBar> mToolBarEdit
private

◆ mToolBarView

QScopedPointer<QToolBar> mToolBarView
private

◆ mToolBarSearch

QScopedPointer<SearchToolBar> mToolBarSearch
private

◆ mToolBarCommand

QScopedPointer<QToolBar> mToolBarCommand
private

◆ mToolBarTools

QScopedPointer<QToolBar> mToolBarTools
private

◆ mToolBarComponents

QScopedPointer<QToolBar> mToolBarComponents
private

◆ mDockPages

QScopedPointer<SchematicPagesDock> mDockPages
private

◆ mDockErc

QScopedPointer<RuleCheckDock> mDockErc
private

◆ mSchematicConnections

QVector<QMetaObject::Connection> mSchematicConnections
private

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