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

The BoardEditor class. More...

#include <boardeditor.h>

+ Inheritance diagram for BoardEditor:
+ Collaboration diagram for BoardEditor:

Public Slots

void boardAdded (int newIndex)
 
void boardRemoved (int oldIndex)
 

Signals

void activeBoardChanged (int oldIndex, int newIndex)
 

Public Member Functions

 BoardEditor (ProjectEditor &projectEditor, Project &project)
 
 ~BoardEditor ()
 
ProjectEditorgetProjectEditor () const noexcept
 
ProjectgetProject () const noexcept
 
int getActiveBoardIndex () const noexcept
 
BoardgetActiveBoard () const noexcept
 
bool setActiveBoardIndex (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_actionProjectClose_triggered ()
 
void on_actionNewBoard_triggered ()
 
void on_actionCopyBoard_triggered ()
 
void on_actionRemoveBoard_triggered ()
 
void on_actionGrid_triggered ()
 
void on_actionExportAsPdf_triggered ()
 
void on_actionGenerateFabricationData_triggered ()
 
void on_actionProjectProperties_triggered ()
 
void on_actionUpdateLibrary_triggered ()
 
void on_actionLayerStackSetup_triggered ()
 
void on_actionModifyDesignRules_triggered ()
 
void on_actionRebuildPlanes_triggered ()
 
void on_tabBar_currentChanged (int index)
 
void on_lblUnplacedComponentsNote_linkActivated ()
 
void boardListActionGroupTriggered (QAction *action)
 

Private Member Functions

 BoardEditor ()=delete
 
 BoardEditor (const BoardEditor &other)=delete
 
BoardEditoroperator= (const BoardEditor &rhs)=delete
 
bool graphicsViewEventHandler (QEvent *event)
 The event handler method. More...
 
void toolActionGroupChangeTriggered (const QVariant &newTool) noexcept
 
void unplacedComponentsCountChanged (int count) noexcept
 

Private Attributes

ProjectEditormProjectEditor
 
ProjectmProject
 
Ui::BoardEditor * mUi
 
GraphicsViewmGraphicsView
 
QScopedPointer
< UndoStackActionGroup
mUndoStackActionGroup
 
QScopedPointer
< ExclusiveActionGroup
mToolsActionGroup
 
int mActiveBoardIndex
 
QList< QAction * > mBoardListActions
 
QActionGroup mBoardListActionGroup
 
ErcMsgDockmErcMsgDock
 
UnplacedComponentsDockmUnplacedComponentsDock
 
BoardLayersDockmBoardLayersDock
 
BES_FSMmFsm
 

Detailed Description

The BoardEditor class.

Constructor & Destructor Documentation

BoardEditor ( ProjectEditor projectEditor,
Project project 
)
explicit

+ Here is the call graph for this function:

BoardEditor ( )
privatedelete
BoardEditor ( const BoardEditor other)
privatedelete

Member Function Documentation

ProjectEditor& getProjectEditor ( ) const
inlinenoexcept
Project& getProject ( ) const
inlinenoexcept
int getActiveBoardIndex ( ) const
inlinenoexcept
Board * getActiveBoard ( ) const
noexcept

+ Here is the caller graph for this function:

bool setActiveBoardIndex ( int  index)
noexcept

+ Here is the call graph for this function:

void abortAllCommands ( )
noexcept

+ Here is the caller graph for this function:

void closeEvent ( QCloseEvent *  event)
protected
void boardAdded ( int  newIndex)
slot

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void boardRemoved ( int  oldIndex)
slot

+ Here is the caller graph for this function:

void on_actionProjectClose_triggered ( )
privateslot
void on_actionNewBoard_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionCopyBoard_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionRemoveBoard_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_actionExportAsPdf_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionGenerateFabricationData_triggered ( )
privateslot
void on_actionProjectProperties_triggered ( )
privateslot
void on_actionUpdateLibrary_triggered ( )
privateslot
void on_actionLayerStackSetup_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionModifyDesignRules_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_actionRebuildPlanes_triggered ( )
privateslot

+ Here is the call graph for this function:

void on_tabBar_currentChanged ( int  index)
privateslot
void on_lblUnplacedComponentsNote_linkActivated ( )
privateslot
void boardListActionGroupTriggered ( QAction *  action)
privateslot

+ Here is the caller graph for this function:

void activeBoardChanged ( int  oldIndex,
int  newIndex 
)
signal
BoardEditor& operator= ( const BoardEditor rhs)
privatedelete
bool graphicsViewEventHandler ( QEvent *  event)
privatevirtual

The event handler method.

Implements IF_GraphicsViewEventHandler.

void toolActionGroupChangeTriggered ( const QVariant &  newTool)
privatenoexcept
void unplacedComponentsCountChanged ( int  count)
privatenoexcept

+ Here is the caller graph for this function:

Member Data Documentation

ProjectEditor& mProjectEditor
private
Project& mProject
private
Ui::BoardEditor* mUi
private
GraphicsView* mGraphicsView
private
QScopedPointer<UndoStackActionGroup> mUndoStackActionGroup
private
QScopedPointer<ExclusiveActionGroup> mToolsActionGroup
private
int mActiveBoardIndex
private
QList<QAction*> mBoardListActions
private
QActionGroup mBoardListActionGroup
private
ErcMsgDock* mErcMsgDock
private
UnplacedComponentsDock* mUnplacedComponentsDock
private
BoardLayersDock* mBoardLayersDock
private
BES_FSM* mFsm
private

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