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 ()
 
virtual bool canWindowClose ()
 
virtual void doWindowClose ()
 
void SetProjectTied (bool aYes)
 
bool GetProjectTied ()
 
void SetClosable (bool aYes)
 
bool GetClosable () const
 

Protected Member Functions

virtual void OnAddJobClick (wxCommandEvent &aEvent) override
 
virtual void OnAddOutputClick (wxCommandEvent &aEvent) override
 
virtual void OnJobListDoubleClicked (wxListEvent &aEvent) override
 
virtual void OnJobListItemRightClick (wxListEvent &event) 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

wxStaticText * m_staticText1
 
wxListCtrl * m_jobList
 
wxBitmapButton * m_buttonAddJob
 
wxBitmapButton * m_buttonUp
 
wxBitmapButton * m_buttonDown
 
wxButton * m_buttonSave
 
wxStaticText * m_staticText4
 
wxBitmapButton * m_buttonOutputAdd
 
wxScrolledWindow * m_outputList
 
wxBoxSizer * m_outputListSizer
 
wxButton * m_buttonRunAllOutputs
 

Private Member Functions

void rebuildJobList ()
 
void updateTitle ()
 
void buildOutputList ()
 
void addJobOutputPanel (JOBSET_OUTPUT *aOutput)
 
void onJobListMenu (wxCommandEvent &aEvent)
 
void openJobOptionsForListItem (size_t aItemIndex)
 

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 32 of file panel_jobs.h.

Constructor & Destructor Documentation

◆ PANEL_JOBS()

◆ ~PANEL_JOBS()

PANEL_JOBS::~PANEL_JOBS ( )

Definition at line 331 of file panel_jobs.cpp.

References PANEL_JOBS_BASE::m_jobList, and onJobListMenu().

Member Function Documentation

◆ addJobOutputPanel()

void PANEL_JOBS::addJobOutputPanel ( JOBSET_OUTPUT aOutput)
private

◆ buildOutputList()

void PANEL_JOBS::buildOutputList ( )
private

Definition at line 400 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 584 of file panel_jobs.cpp.

References _, HandleUnsavedChanges(), and m_jobsFile.

◆ GetClosable()

bool PANEL_NOTEBOOK_BASE::GetClosable ( ) const
inlineinherited

◆ GetProjectTied()

bool PANEL_NOTEBOOK_BASE::GetProjectTied ( )
inlineinherited

◆ OnAddJobClick()

void PANEL_JOBS::OnAddJobClick ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnAddOutputClick()

void PANEL_JOBS::OnAddOutputClick ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnJobButtonDown()

void PANEL_JOBS::OnJobButtonDown ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBS_BASE.

Definition at line 662 of file panel_jobs.cpp.

References PANEL_JOBS_BASE::m_jobList, m_jobsFile, and rebuildJobList().

◆ OnJobButtonUp()

void PANEL_JOBS::OnJobButtonUp ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBS_BASE.

Definition at line 644 of file panel_jobs.cpp.

References PANEL_JOBS_BASE::m_jobList, m_jobsFile, and rebuildJobList().

◆ OnJobListDoubleClicked()

void PANEL_JOBS::OnJobListDoubleClicked ( wxListEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBS_BASE.

Definition at line 442 of file panel_jobs.cpp.

References openJobOptionsForListItem().

◆ OnJobListItemRightClick()

void PANEL_JOBS::OnJobListItemRightClick ( wxListEvent &  event)
overrideprotectedvirtual

Reimplemented from PANEL_JOBS_BASE.

Definition at line 450 of file panel_jobs.cpp.

References _, and PANEL_JOBS_BASE::m_jobList.

◆ onJobListMenu()

void PANEL_JOBS::onJobListMenu ( wxCommandEvent &  aEvent)
private

◆ OnRunAllJobsClick()

void PANEL_JOBS::OnRunAllJobsClick ( wxCommandEvent &  event)
overrideprotectedvirtual

◆ OnSaveButtonClick()

void PANEL_JOBS::OnSaveButtonClick ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

Reimplemented from PANEL_JOBS_BASE.

Definition at line 492 of file panel_jobs.cpp.

References m_jobsFile, and updateTitle().

◆ openJobOptionsForListItem()

◆ rebuildJobList()

void PANEL_JOBS::rebuildJobList ( )
private

◆ RemoveOutput()

◆ SetClosable()

void PANEL_NOTEBOOK_BASE::SetClosable ( bool  aYes)
inlineinherited

◆ SetProjectTied()

void PANEL_NOTEBOOK_BASE::SetProjectTied ( bool  aYes)
inlineinherited

◆ updateTitle()

void PANEL_JOBS::updateTitle ( )
private

Definition at line 376 of file panel_jobs.cpp.

References m_jobsFile, and m_parentBook.

Referenced by OnSaveButtonClick(), and rebuildJobList().

Member Data Documentation

◆ m_buttonAddJob

wxBitmapButton* PANEL_JOBS_BASE::m_buttonAddJob
protectedinherited

◆ m_buttonDown

wxBitmapButton* PANEL_JOBS_BASE::m_buttonDown
protectedinherited

◆ m_buttonOutputAdd

wxBitmapButton* 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

wxBitmapButton* PANEL_JOBS_BASE::m_buttonUp
protectedinherited

◆ m_closable

bool PANEL_NOTEBOOK_BASE::m_closable = false
privateinherited

◆ m_frame

KICAD_MANAGER_FRAME* PANEL_JOBS::m_frame
private

◆ m_jobList

◆ m_jobsFile

◆ 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

Definition at line 68 of file panel_jobs.h.

Referenced by addJobOutputPanel(), buildOutputList(), and RemoveOutput().

◆ m_parentBook

wxAuiNotebook* PANEL_JOBS::m_parentBook
private

Definition at line 64 of file panel_jobs.h.

Referenced by updateTitle().

◆ m_projectTied

bool PANEL_NOTEBOOK_BASE::m_projectTied = false
privateinherited

◆ m_staticText1

wxStaticText* PANEL_JOBS_BASE::m_staticText1
protectedinherited

Definition at line 48 of file panel_jobs_base.h.

Referenced by PANEL_JOBS_BASE::PANEL_JOBS_BASE().

◆ m_staticText4

wxStaticText* PANEL_JOBS_BASE::m_staticText4
protectedinherited

Definition at line 54 of file panel_jobs_base.h.

Referenced by PANEL_JOBS_BASE::PANEL_JOBS_BASE().


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