KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_JOBS Class Reference

#include <panel_jobs.h>

Inheritance diagram for PANEL_JOBS:
PANEL_JOBS_BASE PANEL_NOTEBOOK_BASE

Public Member Functions

 PANEL_JOBS (wxAuiNotebook *aParent, KICAD_MANAGER_FRAME *aFrame, std::unique_ptr< JOBSET > aJobsFile)
 
 ~PANEL_JOBS ()
 
void RemoveOutput (JOBSET_OUTPUT *aOutput)
 
void EnsurePcbSchFramesOpen ()
 
wxString GetFilePath () const
 
void UpdateTitle ()
 
JOBSETGetJobsFile ()
 
bool OpenJobOptionsForListItem (size_t aItemIndex)
 
void OnJobButtonDelete (wxCommandEvent &aEvent) override
 
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 OnAddOutputClick (wxCommandEvent &aEvent) override
 
virtual void OnSaveButtonClick (wxCommandEvent &aEvent) override
 
virtual void OnJobButtonUp (wxCommandEvent &aEvent) override
 
virtual void OnJobButtonDown (wxCommandEvent &aEvent) override
 
virtual void OnRunAllJobsClick (wxCommandEvent &event) 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_outputList
 
wxBoxSizer * m_outputListSizer
 
STD_BITMAP_BUTTONm_buttonOutputAdd
 
wxButton * m_buttonSave
 
wxButton * m_buttonRunAllOutputs
 

Private Member Functions

void rebuildJobList ()
 
void buildOutputList ()
 
void addJobOutputPanel (JOBSET_OUTPUT *aOutput)
 

Private Attributes

wxAuiNotebook * m_parentBook
 
KICAD_MANAGER_FRAMEm_frame
 
std::unique_ptr< JOBSETm_jobsFile
 
std::unordered_map< JOBSET_OUTPUT *, PANEL_JOB_OUTPUT * > m_outputPanelMap
 
bool m_closable = false
 
bool m_projectTied = false
 

Detailed Description

Definition at line 58 of file panel_jobs.h.

Constructor & Destructor Documentation

◆ PANEL_JOBS()

◆ ~PANEL_JOBS()

PANEL_JOBS::~PANEL_JOBS ( )

Definition at line 566 of file panel_jobs.cpp.

References PANEL_JOBS_BASE::m_jobsGrid.

Member Function Documentation

◆ addJobOutputPanel()

void PANEL_JOBS::addJobOutputPanel ( JOBSET_OUTPUT aOutput)
private

◆ buildOutputList()

void PANEL_JOBS::buildOutputList ( )
private

Definition at line 666 of file panel_jobs.cpp.

References addJobOutputPanel(), m_jobsFile, and m_outputPanelMap.

Referenced by PANEL_JOBS().

◆ 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_JOBS::GetCanClose ( )
overrideprotectedvirtual

Reimplemented from PANEL_NOTEBOOK_BASE.

Definition at line 833 of file panel_jobs.cpp.

References _, HandleUnsavedChanges(), and m_jobsFile.

◆ GetClosable()

bool PANEL_NOTEBOOK_BASE::GetClosable ( ) const
inlineinherited

◆ GetFilePath()

wxString PANEL_JOBS::GetFilePath ( ) const

Definition at line 898 of file panel_jobs.cpp.

References m_jobsFile.

Referenced by KICAD_MANAGER_FRAME::OpenJobsFile().

◆ GetJobsFile()

JOBSET * PANEL_JOBS::GetJobsFile ( )
inline

Definition at line 73 of file panel_jobs.h.

References m_jobsFile.

Referenced by JOBS_GRID_TRICKS::handleDoubleClick().

◆ GetProjectTied()

bool PANEL_NOTEBOOK_BASE::GetProjectTied ( )
inlineinherited

◆ OnAddJobClick()

void PANEL_JOBS::OnAddJobClick ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnAddOutputClick()

void PANEL_JOBS::OnAddOutputClick ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnJobButtonDelete()

void PANEL_JOBS::OnJobButtonDelete ( wxCommandEvent &  aEvent)
overridevirtual

◆ OnJobButtonDown()

void PANEL_JOBS::OnJobButtonDown ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnJobButtonUp()

void PANEL_JOBS::OnJobButtonUp ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnRunAllJobsClick()

void PANEL_JOBS::OnRunAllJobsClick ( wxCommandEvent &  event)
overrideprotectedvirtual

◆ OnSaveButtonClick()

void PANEL_JOBS::OnSaveButtonClick ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBS_BASE.

Definition at line 718 of file panel_jobs.cpp.

References m_jobsFile, and UpdateTitle().

◆ OnSizeGrid()

void PANEL_JOBS::OnSizeGrid ( wxSizeEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBS_BASE.

Definition at line 1015 of file panel_jobs.cpp.

References PANEL_JOBS_BASE::m_jobsGrid.

◆ OpenJobOptionsForListItem()

◆ rebuildJobList()

◆ RemoveOutput()

◆ 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_JOBS::UpdateTitle ( )

Member Data Documentation

◆ m_buttonAddJob

STD_BITMAP_BUTTON* PANEL_JOBS_BASE::m_buttonAddJob
protectedinherited

◆ m_buttonDelete

STD_BITMAP_BUTTON* PANEL_JOBS_BASE::m_buttonDelete
protectedinherited

◆ m_buttonDown

STD_BITMAP_BUTTON* PANEL_JOBS_BASE::m_buttonDown
protectedinherited

◆ m_buttonOutputAdd

STD_BITMAP_BUTTON* PANEL_JOBS_BASE::m_buttonOutputAdd
protectedinherited

◆ m_buttonRunAllOutputs

wxButton* PANEL_JOBS_BASE::m_buttonRunAllOutputs
protectedinherited

◆ m_buttonSave

wxButton* PANEL_JOBS_BASE::m_buttonSave
protectedinherited

◆ m_buttonUp

STD_BITMAP_BUTTON* PANEL_JOBS_BASE::m_buttonUp
protectedinherited

◆ m_closable

bool PANEL_NOTEBOOK_BASE::m_closable = false
privateinherited

◆ m_frame

◆ m_jobsFile

◆ m_jobsGrid

◆ m_outputList

wxScrolledWindow* PANEL_JOBS_BASE::m_outputList
protectedinherited

◆ m_outputListSizer

wxBoxSizer* PANEL_JOBS_BASE::m_outputListSizer
protectedinherited

◆ m_outputPanelMap

std::unordered_map<JOBSET_OUTPUT*, PANEL_JOB_OUTPUT*> PANEL_JOBS::m_outputPanelMap
private

◆ m_parentBook

wxAuiNotebook* PANEL_JOBS::m_parentBook
private

Definition at line 95 of file panel_jobs.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: