KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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 ()
 
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 532 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 637 of file panel_jobset.cpp.

References addDestinationPanel(), and m_jobsFile.

Referenced by PANEL_JOBSET().

◆ EnsurePcbSchFramesOpen()

void PANEL_JOBSET::EnsurePcbSchFramesOpen ( )

◆ GetCanClose()

bool PANEL_JOBSET::GetCanClose ( )
overrideprotectedvirtual

Reimplemented from PANEL_NOTEBOOK_BASE.

Definition at line 846 of file panel_jobset.cpp.

References _, HandleUnsavedChanges(), and m_jobsFile.

◆ GetClosable()

bool PANEL_NOTEBOOK_BASE::GetClosable ( ) const
inlineinherited

◆ GetDestinationPanels()

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

◆ GetFilePath()

wxString PANEL_JOBSET::GetFilePath ( ) const

Definition at line 919 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.

◆ GetProjectTied()

bool PANEL_NOTEBOOK_BASE::GetProjectTied ( )
inlineinherited

Definition at line 38 of file panel_notebook_base.h.

References 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 697 of file panel_jobset.cpp.

References COL_DESCR, m_jobsFile, and PANEL_JOBSET_BASE::m_jobsGrid.

◆ OnJobButtonDelete()

void PANEL_JOBSET::OnJobButtonDelete ( wxCommandEvent & aEvent)
overridevirtual

Reimplemented from PANEL_JOBSET_BASE.

Definition at line 788 of file panel_jobset.cpp.

References m_jobsFile, and PANEL_JOBSET_BASE::m_jobsGrid.

◆ OnJobButtonDown()

void PANEL_JOBSET::OnJobButtonDown ( wxCommandEvent & aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBSET_BASE.

Definition at line 948 of file panel_jobset.cpp.

References m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, and rebuildJobList().

◆ OnJobButtonUp()

void PANEL_JOBSET::OnJobButtonUp ( wxCommandEvent & aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBSET_BASE.

Definition at line 925 of file panel_jobset.cpp.

References m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, and rebuildJobList().

◆ OnSaveButtonClick()

void PANEL_JOBSET::OnSaveButtonClick ( wxCommandEvent & aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBSET_BASE.

Definition at line 707 of file panel_jobset.cpp.

References m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, and UpdateTitle().

◆ OnSizeGrid()

void PANEL_JOBSET::OnSizeGrid ( wxSizeEvent & aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBSET_BASE.

Definition at line 1014 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

◆ SetProjectTied()

void PANEL_NOTEBOOK_BASE::SetProjectTied ( bool aYes)
inlineinherited

Definition at line 37 of file panel_notebook_base.h.

References m_projectTied.

Referenced by KICAD_MANAGER_FRAME::OpenJobsFile().

◆ UpdateTitle()

void PANEL_JOBSET::UpdateTitle ( )

Definition at line 594 of file panel_jobset.cpp.

References m_jobsFile, and m_parentBook.

Referenced by OnSaveButtonClick(), OpenJobOptionsForListItem(), and rebuildJobList().

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

Definition at line 58 of file panel_jobset_base.h.

Referenced by PANEL_JOBSET_BASE(), and ~PANEL_JOBSET_BASE().

◆ m_buttonSave

wxButton* PANEL_JOBSET_BASE::m_buttonSave
protectedinherited

Definition at line 57 of file panel_jobset_base.h.

Referenced by PANEL_JOBSET_BASE(), and ~PANEL_JOBSET_BASE().

◆ m_buttonUp

STD_BITMAP_BUTTON* PANEL_JOBSET_BASE::m_buttonUp
protectedinherited

◆ m_closable

bool PANEL_NOTEBOOK_BASE::m_closable = false
privateinherited

Definition at line 46 of file panel_notebook_base.h.

Referenced by GetClosable(), and SetClosable().

◆ 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 PANEL_JOBSET(), and UpdateTitle().

◆ m_projectTied

bool PANEL_NOTEBOOK_BASE::m_projectTied = false
privateinherited

Definition at line 47 of file panel_notebook_base.h.

Referenced by GetProjectTied(), and SetProjectTied().


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