KiCad PCB EDA Suite
|
#include <panel_jobs.h>
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_FRAME * | m_frame |
std::unique_ptr< JOBSET > | m_jobsFile |
std::unordered_map< JOBSET_OUTPUT *, PANEL_JOB_OUTPUT * > | m_outputPanelMap |
bool | m_closable = false |
bool | m_projectTied = false |
Definition at line 32 of file panel_jobs.h.
PANEL_JOBS::PANEL_JOBS | ( | wxAuiNotebook * | aParent, |
KICAD_MANAGER_FRAME * | aFrame, | ||
std::unique_ptr< JOBSET > | aJobsFile | ||
) |
Definition at line 304 of file panel_jobs.cpp.
References _, buildOutputList(), KiBitmapBundle(), PANEL_JOBS_BASE::m_buttonAddJob, PANEL_JOBS_BASE::m_buttonDown, PANEL_JOBS_BASE::m_buttonOutputAdd, PANEL_JOBS_BASE::m_buttonRunAllOutputs, PANEL_JOBS_BASE::m_buttonUp, PANEL_JOBS_BASE::m_jobList, m_jobsFile, onJobListMenu(), and rebuildJobList().
PANEL_JOBS::~PANEL_JOBS | ( | ) |
Definition at line 331 of file panel_jobs.cpp.
References PANEL_JOBS_BASE::m_jobList, and onJobListMenu().
|
private |
Definition at line 388 of file panel_jobs.cpp.
References m_frame, m_jobsFile, PANEL_JOBS_BASE::m_outputList, PANEL_JOBS_BASE::m_outputListSizer, and m_outputPanelMap.
Referenced by buildOutputList(), and OnAddOutputClick().
|
private |
Definition at line 400 of file panel_jobs.cpp.
References addJobOutputPanel(), m_jobsFile, and m_outputPanelMap.
Referenced by PANEL_JOBS().
|
inlinevirtualinherited |
Definition at line 37 of file panel_notebook_base.h.
|
inlinevirtualinherited |
Definition at line 38 of file panel_notebook_base.h.
void PANEL_JOBS::EnsurePcbSchFramesOpen | ( | ) |
Definition at line 605 of file panel_jobs.cpp.
References FRAME_PCB_EDITOR, FRAME_SCH, FILEEXT::KiCadSchematicFileExtension, KIWAY_HOLDER::Kiway(), m_frame, KIWAY_PLAYER::OpenProjectFiles(), KIWAY::Player(), KIWAY::Prj(), and project.
Referenced by PANEL_JOB_OUTPUT::OnOutputRunClick(), OnRunAllJobsClick(), and openJobOptionsForListItem().
|
overrideprotectedvirtual |
Reimplemented from PANEL_NOTEBOOK_BASE.
Definition at line 584 of file panel_jobs.cpp.
References _, HandleUnsavedChanges(), and m_jobsFile.
|
inlineinherited |
Definition at line 44 of file panel_notebook_base.h.
References PANEL_NOTEBOOK_BASE::m_closable.
Referenced by KICAD_MANAGER_FRAME::onNotebookPageCloseRequest().
|
inlineinherited |
Definition at line 41 of file panel_notebook_base.h.
References PANEL_NOTEBOOK_BASE::m_projectTied.
Referenced by KICAD_MANAGER_FRAME::CloseProject().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBS_BASE.
Definition at line 499 of file panel_jobs.cpp.
References _, JOB_REGISTRY::GetRegistry(), EDA_LIST_DIALOG::GetTextSelection(), m_jobsFile, rebuildJobList(), EDA_LIST_DIALOG::SetListLabel(), and DIALOG_SHIM::ShowModal().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBS_BASE.
Definition at line 546 of file panel_jobs.cpp.
References _, addJobOutputPanel(), EDA_LIST_DIALOG::GetTextSelection(), EDA_LIST_DIALOG::HideFilter(), jobTypeInfos, PANEL_JOBS_BASE::m_buttonRunAllOutputs, m_jobsFile, EDA_LIST_DIALOG::SetListLabel(), and DIALOG_SHIM::ShowModal().
|
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().
|
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().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBS_BASE.
Definition at line 442 of file panel_jobs.cpp.
References openJobOptionsForListItem().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBS_BASE.
Definition at line 450 of file panel_jobs.cpp.
References _, and PANEL_JOBS_BASE::m_jobList.
|
private |
Definition at line 460 of file panel_jobs.cpp.
References PANEL_JOBS_BASE::m_jobList, m_jobsFile, openJobOptionsForListItem(), and rebuildJobList().
Referenced by PANEL_JOBS(), and ~PANEL_JOBS().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBS_BASE.
Definition at line 679 of file panel_jobs.cpp.
References _, DisplayError(), EnsurePcbSchFramesOpen(), KIWAY_HOLDER::Kiway(), m_frame, m_jobsFile, Prj(), project, and JOBS_RUNNER::RunJobsAllOutputs().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBS_BASE.
Definition at line 492 of file panel_jobs.cpp.
References m_jobsFile, and updateTitle().
|
private |
Definition at line 416 of file panel_jobs.cpp.
References EnsurePcbSchFramesOpen(), JOB_REGISTRY::GetKifaceType(), KIWAY_HOLDER::Kiway(), KIWAY::KIWAY_FACE_COUNT, m_frame, JOBSET_JOB::m_job, m_jobsFile, JOBSET_JOB::m_type, KIWAY::ProcessJobConfigDialog(), and DIALOG_SHIM::ShowModal().
Referenced by OnJobListDoubleClicked(), and onJobListMenu().
|
private |
Definition at line 360 of file panel_jobs.cpp.
References PANEL_JOBS_BASE::m_jobList, m_jobsFile, and updateTitle().
Referenced by OnAddJobClick(), OnJobButtonDown(), OnJobButtonUp(), onJobListMenu(), and PANEL_JOBS().
void PANEL_JOBS::RemoveOutput | ( | JOBSET_OUTPUT * | aOutput | ) |
Definition at line 338 of file panel_jobs.cpp.
References PANEL_JOBS_BASE::m_buttonRunAllOutputs, m_jobsFile, PANEL_JOBS_BASE::m_outputList, PANEL_JOBS_BASE::m_outputListSizer, and m_outputPanelMap.
Referenced by PANEL_JOB_OUTPUT::onMenu().
|
inlineinherited |
Definition at line 43 of file panel_notebook_base.h.
References PANEL_NOTEBOOK_BASE::m_closable.
Referenced by KICAD_MANAGER_FRAME::KICAD_MANAGER_FRAME(), and KICAD_MANAGER_FRAME::OpenJobsFile().
|
inlineinherited |
Definition at line 40 of file panel_notebook_base.h.
References PANEL_NOTEBOOK_BASE::m_projectTied.
Referenced by KICAD_MANAGER_FRAME::OpenJobsFile().
|
private |
Definition at line 376 of file panel_jobs.cpp.
References m_jobsFile, and m_parentBook.
Referenced by OnSaveButtonClick(), and rebuildJobList().
|
protectedinherited |
Definition at line 50 of file panel_jobs_base.h.
Referenced by PANEL_JOBS(), PANEL_JOBS_BASE::PANEL_JOBS_BASE(), and PANEL_JOBS_BASE::~PANEL_JOBS_BASE().
|
protectedinherited |
Definition at line 52 of file panel_jobs_base.h.
Referenced by PANEL_JOBS(), PANEL_JOBS_BASE::PANEL_JOBS_BASE(), and PANEL_JOBS_BASE::~PANEL_JOBS_BASE().
|
protectedinherited |
Definition at line 55 of file panel_jobs_base.h.
Referenced by PANEL_JOBS(), PANEL_JOBS_BASE::PANEL_JOBS_BASE(), and PANEL_JOBS_BASE::~PANEL_JOBS_BASE().
|
protectedinherited |
Definition at line 58 of file panel_jobs_base.h.
Referenced by OnAddOutputClick(), PANEL_JOBS(), PANEL_JOBS_BASE::PANEL_JOBS_BASE(), RemoveOutput(), and PANEL_JOBS_BASE::~PANEL_JOBS_BASE().
|
protectedinherited |
Definition at line 53 of file panel_jobs_base.h.
Referenced by PANEL_JOBS_BASE::PANEL_JOBS_BASE(), and PANEL_JOBS_BASE::~PANEL_JOBS_BASE().
|
protectedinherited |
Definition at line 51 of file panel_jobs_base.h.
Referenced by PANEL_JOBS(), PANEL_JOBS_BASE::PANEL_JOBS_BASE(), and PANEL_JOBS_BASE::~PANEL_JOBS_BASE().
|
privateinherited |
Definition at line 49 of file panel_notebook_base.h.
Referenced by PANEL_NOTEBOOK_BASE::GetClosable(), and PANEL_NOTEBOOK_BASE::SetClosable().
|
private |
Definition at line 65 of file panel_jobs.h.
Referenced by addJobOutputPanel(), EnsurePcbSchFramesOpen(), OnRunAllJobsClick(), and openJobOptionsForListItem().
|
protectedinherited |
Definition at line 49 of file panel_jobs_base.h.
Referenced by OnJobButtonDown(), OnJobButtonUp(), OnJobListItemRightClick(), onJobListMenu(), PANEL_JOBS(), PANEL_JOBS_BASE::PANEL_JOBS_BASE(), rebuildJobList(), ~PANEL_JOBS(), and PANEL_JOBS_BASE::~PANEL_JOBS_BASE().
|
private |
Definition at line 66 of file panel_jobs.h.
Referenced by addJobOutputPanel(), buildOutputList(), GetCanClose(), OnAddJobClick(), OnAddOutputClick(), OnJobButtonDown(), OnJobButtonUp(), onJobListMenu(), OnRunAllJobsClick(), OnSaveButtonClick(), openJobOptionsForListItem(), PANEL_JOBS(), rebuildJobList(), RemoveOutput(), and updateTitle().
|
protectedinherited |
Definition at line 56 of file panel_jobs_base.h.
Referenced by addJobOutputPanel(), PANEL_JOBS_BASE::PANEL_JOBS_BASE(), and RemoveOutput().
|
protectedinherited |
Definition at line 57 of file panel_jobs_base.h.
Referenced by addJobOutputPanel(), PANEL_JOBS_BASE::PANEL_JOBS_BASE(), and RemoveOutput().
|
private |
Definition at line 68 of file panel_jobs.h.
Referenced by addJobOutputPanel(), buildOutputList(), and RemoveOutput().
|
private |
Definition at line 64 of file panel_jobs.h.
Referenced by updateTitle().
|
privateinherited |
Definition at line 50 of file panel_notebook_base.h.
Referenced by PANEL_NOTEBOOK_BASE::GetProjectTied(), and PANEL_NOTEBOOK_BASE::SetProjectTied().
|
protectedinherited |
Definition at line 48 of file panel_jobs_base.h.
Referenced by PANEL_JOBS_BASE::PANEL_JOBS_BASE().
|
protectedinherited |
Definition at line 54 of file panel_jobs_base.h.
Referenced by PANEL_JOBS_BASE::PANEL_JOBS_BASE().