KiCad PCB EDA Suite
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
PANEL_JOBSET Class Reference

#include <panel_jobset.h>

Inheritance diagram for PANEL_JOBSET:
PANEL_JOBSET_BASE PANEL_NOTEBOOK_BASE

Public Member Functions

 PANEL_JOBSET (wxAuiNotebook *aParent, KICAD_MANAGER_FRAME *aFrame, std::unique_ptr< JOBSET > aJobsFile)
 
 ~PANEL_JOBSET ()
 
void RemoveDestination (PANEL_DESTINATION *aPanel)
 
void EnsurePcbSchFramesOpen ()
 
wxString GetFilePath () const
 
void UpdateTitle ()
 
JOBSETGetJobsFile ()
 
bool OpenJobOptionsForListItem (size_t aItemIndex)
 
void OnJobButtonDelete (wxCommandEvent &aEvent) override
 
std::vector< PANEL_DESTINATION * > GetDestinationPanels ()
 
virtual bool canWindowClose ()
 
virtual void doWindowClose ()
 
void SetProjectTied (bool aYes)
 
bool GetProjectTied ()
 
void SetClosable (bool aYes)
 
bool GetClosable () const
 

Protected Member Functions

virtual void OnSizeGrid (wxSizeEvent &aEvent) override
 
virtual void OnAddJobClick (wxCommandEvent &aEvent) override
 
virtual void OnAddDestinationClick (wxCommandEvent &aEvent) override
 
virtual void OnSaveButtonClick (wxCommandEvent &aEvent) override
 
virtual void OnJobButtonUp (wxCommandEvent &aEvent) override
 
virtual void OnJobButtonDown (wxCommandEvent &aEvent) override
 
virtual void OnGenerateAllDestinationsClick (wxCommandEvent &event) override
 
virtual void OnGridCellChange (wxGridEvent &aEvent) override
 
bool GetCanClose () override
 

Protected Attributes

WX_GRIDm_jobsGrid
 
STD_BITMAP_BUTTONm_buttonAddJob
 
STD_BITMAP_BUTTONm_buttonUp
 
STD_BITMAP_BUTTONm_buttonDown
 
STD_BITMAP_BUTTONm_buttonDelete
 
wxScrolledWindow * m_destinationList
 
wxBoxSizer * m_destinationListSizer
 
STD_BITMAP_BUTTONm_buttonAddDestination
 
wxButton * m_buttonSave
 
wxButton * m_buttonGenerateAllDestinations
 

Private Member Functions

void rebuildJobList ()
 
void buildDestinationList ()
 
void addDestinationPanel (JOBSET_DESTINATION *aDestination)
 

Private Attributes

wxAuiNotebook * m_parentBook
 
KICAD_MANAGER_FRAMEm_frame
 
std::unique_ptr< JOBSETm_jobsFile
 
bool m_closable = false
 
bool m_projectTied = false
 

Detailed Description

Definition at line 68 of file panel_jobset.h.

Constructor & Destructor Documentation

◆ PANEL_JOBSET()

◆ ~PANEL_JOBSET()

PANEL_JOBSET::~PANEL_JOBSET ( )

Definition at line 494 of file panel_jobset.cpp.

References PANEL_JOBSET_BASE::m_jobsGrid.

Member Function Documentation

◆ addDestinationPanel()

void PANEL_JOBSET::addDestinationPanel ( JOBSET_DESTINATION aDestination)
private

◆ buildDestinationList()

void PANEL_JOBSET::buildDestinationList ( )
private

Definition at line 599 of file panel_jobset.cpp.

References addDestinationPanel(), and m_jobsFile.

Referenced by PANEL_JOBSET().

◆ canWindowClose()

virtual bool PANEL_NOTEBOOK_BASE::canWindowClose ( )
inlinevirtualinherited

Definition at line 37 of file panel_notebook_base.h.

◆ doWindowClose()

virtual void PANEL_NOTEBOOK_BASE::doWindowClose ( )
inlinevirtualinherited

Definition at line 38 of file panel_notebook_base.h.

◆ EnsurePcbSchFramesOpen()

◆ GetCanClose()

bool PANEL_JOBSET::GetCanClose ( )
overrideprotectedvirtual

Reimplemented from PANEL_NOTEBOOK_BASE.

Definition at line 822 of file panel_jobset.cpp.

References _, HandleUnsavedChanges(), and m_jobsFile.

◆ GetClosable()

bool PANEL_NOTEBOOK_BASE::GetClosable ( ) const
inlineinherited

Definition at line 44 of file panel_notebook_base.h.

References PANEL_NOTEBOOK_BASE::m_closable.

◆ GetDestinationPanels()

std::vector< PANEL_DESTINATION * > PANEL_JOBSET::GetDestinationPanels ( )

◆ GetFilePath()

wxString PANEL_JOBSET::GetFilePath ( ) const

Definition at line 895 of file panel_jobset.cpp.

References m_jobsFile.

◆ GetJobsFile()

JOBSET * PANEL_JOBSET::GetJobsFile ( )
inline

Definition at line 83 of file panel_jobset.h.

References m_jobsFile.

Referenced by JOBS_GRID_TRICKS::handleDoubleClick().

◆ GetProjectTied()

bool PANEL_NOTEBOOK_BASE::GetProjectTied ( )
inlineinherited

Definition at line 41 of file panel_notebook_base.h.

References PANEL_NOTEBOOK_BASE::m_projectTied.

◆ OnAddDestinationClick()

void PANEL_JOBSET::OnAddDestinationClick ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnAddJobClick()

◆ OnGenerateAllDestinationsClick()

void PANEL_JOBSET::OnGenerateAllDestinationsClick ( wxCommandEvent &  event)
overrideprotectedvirtual

◆ OnGridCellChange()

void PANEL_JOBSET::OnGridCellChange ( wxGridEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBSET_BASE.

Definition at line 659 of file panel_jobset.cpp.

References COL_DESCR, m_jobsFile, and PANEL_JOBSET_BASE::m_jobsGrid.

◆ OnJobButtonDelete()

void PANEL_JOBSET::OnJobButtonDelete ( wxCommandEvent &  aEvent)
overridevirtual

◆ OnJobButtonDown()

void PANEL_JOBSET::OnJobButtonDown ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnJobButtonUp()

void PANEL_JOBSET::OnJobButtonUp ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnSaveButtonClick()

void PANEL_JOBSET::OnSaveButtonClick ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnSizeGrid()

void PANEL_JOBSET::OnSizeGrid ( wxSizeEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBSET_BASE.

Definition at line 991 of file panel_jobset.cpp.

References COL_DESCR, COL_NUMBER, COL_SOURCE, and PANEL_JOBSET_BASE::m_jobsGrid.

◆ OpenJobOptionsForListItem()

◆ rebuildJobList()

◆ RemoveDestination()

◆ SetClosable()

void PANEL_NOTEBOOK_BASE::SetClosable ( bool  aYes)
inlineinherited

Definition at line 43 of file panel_notebook_base.h.

References PANEL_NOTEBOOK_BASE::m_closable.

Referenced by KICAD_MANAGER_FRAME::OpenJobsFile().

◆ SetProjectTied()

void PANEL_NOTEBOOK_BASE::SetProjectTied ( bool  aYes)
inlineinherited

◆ UpdateTitle()

void PANEL_JOBSET::UpdateTitle ( )

Member Data Documentation

◆ m_buttonAddDestination

STD_BITMAP_BUTTON* PANEL_JOBSET_BASE::m_buttonAddDestination
protectedinherited

◆ m_buttonAddJob

STD_BITMAP_BUTTON* PANEL_JOBSET_BASE::m_buttonAddJob
protectedinherited

◆ m_buttonDelete

STD_BITMAP_BUTTON* PANEL_JOBSET_BASE::m_buttonDelete
protectedinherited

◆ m_buttonDown

STD_BITMAP_BUTTON* PANEL_JOBSET_BASE::m_buttonDown
protectedinherited

◆ m_buttonGenerateAllDestinations

wxButton* PANEL_JOBSET_BASE::m_buttonGenerateAllDestinations
protectedinherited

◆ m_buttonSave

wxButton* PANEL_JOBSET_BASE::m_buttonSave
protectedinherited

◆ m_buttonUp

STD_BITMAP_BUTTON* PANEL_JOBSET_BASE::m_buttonUp
protectedinherited

◆ m_closable

bool PANEL_NOTEBOOK_BASE::m_closable = false
privateinherited

◆ m_destinationList

wxScrolledWindow* PANEL_JOBSET_BASE::m_destinationList
protectedinherited

◆ m_destinationListSizer

wxBoxSizer* PANEL_JOBSET_BASE::m_destinationListSizer
protectedinherited

◆ m_frame

◆ m_jobsFile

◆ m_jobsGrid

◆ m_parentBook

wxAuiNotebook* PANEL_JOBSET::m_parentBook
private

Definition at line 108 of file panel_jobset.h.

Referenced by UpdateTitle().

◆ m_projectTied

bool PANEL_NOTEBOOK_BASE::m_projectTied = false
privateinherited

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