KiCad PCB EDA Suite
|
#include <panel_jobset.h>
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 () |
JOBSET * | GetJobsFile () |
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_GRID * | m_jobsGrid |
STD_BITMAP_BUTTON * | m_buttonAddJob |
STD_BITMAP_BUTTON * | m_buttonUp |
STD_BITMAP_BUTTON * | m_buttonDown |
STD_BITMAP_BUTTON * | m_buttonDelete |
wxScrolledWindow * | m_destinationList |
wxBoxSizer * | m_destinationListSizer |
STD_BITMAP_BUTTON * | m_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_FRAME * | m_frame |
std::unique_ptr< JOBSET > | m_jobsFile |
bool | m_closable = false |
bool | m_projectTied = false |
Definition at line 68 of file panel_jobset.h.
PANEL_JOBSET::PANEL_JOBSET | ( | wxAuiNotebook * | aParent, |
KICAD_MANAGER_FRAME * | aFrame, | ||
std::unique_ptr< JOBSET > | aJobsFile | ||
) |
Definition at line 466 of file panel_jobset.cpp.
References buildDestinationList(), COL_NUMBER, COL_SOURCE, KiBitmapBundle(), PANEL_JOBSET_BASE::m_buttonAddDestination, PANEL_JOBSET_BASE::m_buttonAddJob, PANEL_JOBSET_BASE::m_buttonDelete, PANEL_JOBSET_BASE::m_buttonDown, PANEL_JOBSET_BASE::m_buttonUp, PANEL_JOBSET_BASE::m_jobsGrid, WX_GRID::OverrideMinSize(), rebuildJobList(), and STD_BITMAP_BUTTON::SetBitmap().
PANEL_JOBSET::~PANEL_JOBSET | ( | ) |
Definition at line 494 of file panel_jobset.cpp.
References PANEL_JOBSET_BASE::m_jobsGrid.
|
private |
Definition at line 570 of file panel_jobset.cpp.
References PANEL_JOBSET_BASE::m_destinationList, PANEL_JOBSET_BASE::m_destinationListSizer, m_frame, and m_jobsFile.
Referenced by buildDestinationList(), and OnAddDestinationClick().
|
private |
Definition at line 599 of file panel_jobset.cpp.
References addDestinationPanel(), and m_jobsFile.
Referenced by PANEL_JOBSET().
|
inlinevirtualinherited |
Definition at line 37 of file panel_notebook_base.h.
|
inlinevirtualinherited |
Definition at line 38 of file panel_notebook_base.h.
void PANEL_JOBSET::EnsurePcbSchFramesOpen | ( | ) |
Definition at line 843 of file panel_jobset.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_DESTINATION::OnGenerate(), OnGenerateAllDestinationsClick(), and OpenJobOptionsForListItem().
|
overrideprotectedvirtual |
Reimplemented from PANEL_NOTEBOOK_BASE.
Definition at line 822 of file panel_jobset.cpp.
References _, HandleUnsavedChanges(), and m_jobsFile.
|
inlineinherited |
Definition at line 44 of file panel_notebook_base.h.
References PANEL_NOTEBOOK_BASE::m_closable.
std::vector< PANEL_DESTINATION * > PANEL_JOBSET::GetDestinationPanels | ( | ) |
Definition at line 585 of file panel_jobset.cpp.
References PANEL_JOBSET_BASE::m_destinationListSizer.
Referenced by OnGenerateAllDestinationsClick(), and rebuildJobList().
wxString PANEL_JOBSET::GetFilePath | ( | ) | const |
Definition at line 895 of file panel_jobset.cpp.
References m_jobsFile.
|
inline |
Definition at line 83 of file panel_jobset.h.
References m_jobsFile.
Referenced by JOBS_GRID_TRICKS::handleDoubleClick().
|
inlineinherited |
Definition at line 41 of file panel_notebook_base.h.
References PANEL_NOTEBOOK_BASE::m_projectTied.
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBSET_BASE.
Definition at line 775 of file panel_jobset.cpp.
References _, addDestinationPanel(), EDA_LIST_DIALOG::GetTextSelection(), EDA_LIST_DIALOG::HideFilter(), JobsetDestinationTypeInfos, m_frame, m_jobsFile, EDA_LIST_DIALOG::SetListLabel(), and DIALOG_SHIM::ShowModal().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBSET_BASE.
Definition at line 679 of file panel_jobset.cpp.
References _, WX_GRID::CommitPendingChanges(), JOB_REGISTRY::GetRegistry(), EDA_LIST_DIALOG::GetTextSelection(), m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, OpenJobOptionsForListItem(), rebuildJobList(), EDA_LIST_DIALOG::SetListLabel(), and DIALOG_SHIM::ShowModal().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBSET_BASE.
Definition at line 947 of file panel_jobset.cpp.
References _, WX_GRID::CommitPendingChanges(), DisplayError(), EnsurePcbSchFramesOpen(), GetDestinationPanels(), KIWAY_HOLDER::Kiway(), m_frame, m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, Prj(), project, Refresh(), and JOBS_RUNNER::RunJobsAllDestinations().
|
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.
|
overridevirtual |
Reimplemented from PANEL_JOBSET_BASE.
Definition at line 744 of file panel_jobset.cpp.
References WX_GRID::CommitPendingChanges(), m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, and rebuildJobList().
Referenced by JOBS_GRID_TRICKS::doPopupSelection().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBSET_BASE.
Definition at line 924 of file panel_jobset.cpp.
References WX_GRID::CommitPendingChanges(), m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, and rebuildJobList().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBSET_BASE.
Definition at line 901 of file panel_jobset.cpp.
References WX_GRID::CommitPendingChanges(), m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, and rebuildJobList().
|
overrideprotectedvirtual |
Reimplemented from PANEL_JOBSET_BASE.
Definition at line 669 of file panel_jobset.cpp.
References WX_GRID::CommitPendingChanges(), m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, and UpdateTitle().
|
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.
bool PANEL_JOBSET::OpenJobOptionsForListItem | ( | size_t | aItemIndex | ) |
Definition at line 612 of file panel_jobset.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(), DIALOG_SHIM::ShowModal(), DIALOG_SHIM::ShowQuasiModal(), and UpdateTitle().
Referenced by JOBS_GRID_TRICKS::doPopupSelection(), JOBS_GRID_TRICKS::handleDoubleClick(), and OnAddJobClick().
|
private |
Definition at line 516 of file panel_jobset.cpp.
References COL_DESCR, COL_NUMBER, COL_SOURCE, KIWAY::FACE_PCB, KIWAY::FACE_SCH, GetDestinationPanels(), JOB_REGISTRY::GetKifaceType(), KIWAY::KIWAY_FACE_COUNT, m_jobsFile, PANEL_JOBSET_BASE::m_jobsGrid, and UpdateTitle().
Referenced by OnAddJobClick(), OnJobButtonDelete(), OnJobButtonDown(), OnJobButtonUp(), and PANEL_JOBSET().
void PANEL_JOBSET::RemoveDestination | ( | PANEL_DESTINATION * | aPanel | ) |
Definition at line 501 of file panel_jobset.cpp.
References PANEL_DESTINATION::GetDestination(), PANEL_JOBSET_BASE::m_destinationList, PANEL_JOBSET_BASE::m_destinationListSizer, and m_jobsFile.
Referenced by PANEL_DESTINATION::OnDelete().
|
inlineinherited |
Definition at line 43 of file panel_notebook_base.h.
References PANEL_NOTEBOOK_BASE::m_closable.
Referenced by 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().
void PANEL_JOBSET::UpdateTitle | ( | ) |
Definition at line 558 of file panel_jobset.cpp.
References m_jobsFile, and m_parentBook.
Referenced by PANEL_DESTINATION::OnProperties(), OnSaveButtonClick(), OpenJobOptionsForListItem(), and rebuildJobList().
|
protectedinherited |
Definition at line 56 of file panel_jobset_base.h.
Referenced by PANEL_JOBSET(), PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and PANEL_JOBSET_BASE::~PANEL_JOBSET_BASE().
|
protectedinherited |
Definition at line 50 of file panel_jobset_base.h.
Referenced by PANEL_JOBSET(), PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and PANEL_JOBSET_BASE::~PANEL_JOBSET_BASE().
|
protectedinherited |
Definition at line 53 of file panel_jobset_base.h.
Referenced by PANEL_JOBSET(), PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and PANEL_JOBSET_BASE::~PANEL_JOBSET_BASE().
|
protectedinherited |
Definition at line 52 of file panel_jobset_base.h.
Referenced by PANEL_JOBSET(), PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and PANEL_JOBSET_BASE::~PANEL_JOBSET_BASE().
|
protectedinherited |
Definition at line 58 of file panel_jobset_base.h.
Referenced by PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and PANEL_JOBSET_BASE::~PANEL_JOBSET_BASE().
|
protectedinherited |
Definition at line 57 of file panel_jobset_base.h.
Referenced by PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and PANEL_JOBSET_BASE::~PANEL_JOBSET_BASE().
|
protectedinherited |
Definition at line 51 of file panel_jobset_base.h.
Referenced by PANEL_JOBSET(), PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and PANEL_JOBSET_BASE::~PANEL_JOBSET_BASE().
|
privateinherited |
Definition at line 49 of file panel_notebook_base.h.
Referenced by PANEL_NOTEBOOK_BASE::GetClosable(), and PANEL_NOTEBOOK_BASE::SetClosable().
|
protectedinherited |
Definition at line 54 of file panel_jobset_base.h.
Referenced by addDestinationPanel(), PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and RemoveDestination().
|
protectedinherited |
Definition at line 55 of file panel_jobset_base.h.
Referenced by addDestinationPanel(), GetDestinationPanels(), PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), and RemoveDestination().
|
private |
Definition at line 109 of file panel_jobset.h.
Referenced by addDestinationPanel(), EnsurePcbSchFramesOpen(), OnAddDestinationClick(), OnGenerateAllDestinationsClick(), and OpenJobOptionsForListItem().
|
private |
Definition at line 110 of file panel_jobset.h.
Referenced by addDestinationPanel(), buildDestinationList(), GetCanClose(), GetFilePath(), GetJobsFile(), OnAddDestinationClick(), OnAddJobClick(), OnGenerateAllDestinationsClick(), OnGridCellChange(), OnJobButtonDelete(), OnJobButtonDown(), OnJobButtonUp(), OnSaveButtonClick(), OpenJobOptionsForListItem(), rebuildJobList(), RemoveDestination(), and UpdateTitle().
|
protectedinherited |
Definition at line 49 of file panel_jobset_base.h.
Referenced by OnAddJobClick(), OnGenerateAllDestinationsClick(), OnGridCellChange(), OnJobButtonDelete(), OnJobButtonDown(), OnJobButtonUp(), OnSaveButtonClick(), OnSizeGrid(), PANEL_JOBSET(), PANEL_JOBSET_BASE::PANEL_JOBSET_BASE(), rebuildJobList(), ~PANEL_JOBSET(), and PANEL_JOBSET_BASE::~PANEL_JOBSET_BASE().
|
private |
Definition at line 108 of file panel_jobset.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().