KiCad PCB EDA Suite
|
#include <panel_sync_sheet_pins.h>
Public Types | |
enum class | SYNC_DIRECTION { USE_LABEL_AS_TEMPLATE , USE_PIN_AS_TEMPLATE } |
Public Member Functions | |
PANEL_SYNC_SHEET_PINS (wxWindow *aParent, SCH_SHEET *aSheet, wxNotebook *aNoteBook, int aIndex, SHEET_SYNCHRONIZATION_AGENT &aAgent, const SCH_SHEET_PATH &aPath) | |
~PANEL_SYNC_SHEET_PINS () override | |
bool | HasUndefinedSheetPing () const |
void | UpdateForms () |
SHEET_SYNCHRONIZATION_MODEL_PTR | GetModel (int aKind) const |
const wxString & | GetSheetFileName () const |
SCH_SHEET_PATH const & | GetSheetPath () const |
Protected Member Functions | |
void | OnViewSheetPinCellClicked (wxDataViewEvent &event) override |
void | OnBtnAddSheetPinsClicked (wxCommandEvent &event) override |
void | OnBtnRmPinsClicked (wxCommandEvent &event) override |
void | OnBtnUsePinAsTemplateClicked (wxCommandEvent &event) override |
void | OnBtnUseLabelAsTemplateClicked (wxCommandEvent &event) override |
void | OnBtnUndoClicked (wxCommandEvent &event) override |
void | OnViewSheetLabelCellClicked (wxDataViewEvent &event) override |
void | OnBtnAddLabelsClicked (wxCommandEvent &event) override |
void | OnBtnRmLabelsClicked (wxCommandEvent &event) override |
void | OnViewMatchedCellClicked (wxDataViewEvent &event) override |
void | PostProcessModelSelection (int aIdex, wxDataViewItem const &aItem) |
void | GenericSync (SYNC_DIRECTION direction) |
void | UpdatePageImage () const |
Protected Attributes | |
wxPanel * | m_panel11 |
wxStaticText * | m_labelSymName |
wxDataViewCtrl * | m_viewSheetPins |
wxButton * | m_btnAddLabels |
wxButton * | m_btnRmPins |
wxPanel * | m_panel1 |
wxStaticText * | m_labelSheetName |
wxDataViewCtrl * | m_viewSheetLabels |
wxButton * | m_btnAddSheetPins |
wxButton * | m_btnRmLabels |
wxPanel * | m_panel3 |
wxPanel * | m_panel8 |
wxBitmapButton * | m_btnUseLabelAsTemplate |
wxBitmapButton * | m_btnUsePinAsTemplate |
wxBitmapButton * | m_btnUndo |
wxPanel * | m_panel4 |
wxDataViewCtrl * | m_viewAssociated |
Private Attributes | |
SCH_SHEET * | m_sheet |
wxNotebook * | m_noteBook |
int | m_index |
wxString | m_sheetFileName |
SYNC_SHEET_PINT_MODELS | m_models |
SHEET_SYNCHRONIZATION_AGENT & | m_agent |
SCH_SHEET_PATH | m_path |
Definition at line 45 of file panel_sync_sheet_pins.h.
|
strong |
Enumerator | |
---|---|
USE_LABEL_AS_TEMPLATE | |
USE_PIN_AS_TEMPLATE |
Definition at line 48 of file panel_sync_sheet_pins.h.
PANEL_SYNC_SHEET_PINS::PANEL_SYNC_SHEET_PINS | ( | wxWindow * | aParent, |
SCH_SHEET * | aSheet, | ||
wxNotebook * | aNoteBook, | ||
int | aIndex, | ||
SHEET_SYNCHRONIZATION_AGENT & | aAgent, | ||
const SCH_SHEET_PATH & | aPath | ||
) |
Definition at line 42 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::ASSOCIATED, SHEET_SYNCHRONIZATION_MODEL::GetColName(), SCH_SHEET::GetFileName(), SCH_SHEET::GetShownName(), SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, KiBitmapBundle(), m_agent, PANEL_SYNC_SHEET_PINS_BASE::m_btnUndo, PANEL_SYNC_SHEET_PINS_BASE::m_btnUseLabelAsTemplate, PANEL_SYNC_SHEET_PINS_BASE::m_btnUsePinAsTemplate, PANEL_SYNC_SHEET_PINS_BASE::m_labelSheetName, PANEL_SYNC_SHEET_PINS_BASE::m_labelSymName, m_models, m_path, m_sheet, PANEL_SYNC_SHEET_PINS_BASE::m_viewAssociated, PANEL_SYNC_SHEET_PINS_BASE::m_viewSheetLabels, PANEL_SYNC_SHEET_PINS_BASE::m_viewSheetPins, SHEET_SYNCHRONIZATION_MODEL::NAME, PostProcessModelSelection(), SHEET_SYNCHRONIZATION_MODEL::SHAPE, and SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN.
|
override |
Definition at line 164 of file panel_sync_sheet_pins.cpp.
|
protected |
Definition at line 212 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::ASSOCIATED, SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, m_agent, m_models, m_path, PANEL_SYNC_SHEET_PINS_BASE::m_viewSheetLabels, PANEL_SYNC_SHEET_PINS_BASE::m_viewSheetPins, SHEET_SYNCHRONIZATION_AGENT::ModifyItem(), PostProcessModelSelection(), SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN, UpdatePageImage(), USE_LABEL_AS_TEMPLATE, and USE_PIN_AS_TEMPLATE.
Referenced by OnBtnUseLabelAsTemplateClicked(), and OnBtnUsePinAsTemplateClicked().
SHEET_SYNCHRONIZATION_MODEL_PTR PANEL_SYNC_SHEET_PINS::GetModel | ( | int | aKind | ) | const |
Definition at line 152 of file panel_sync_sheet_pins.cpp.
References m_models.
const wxString & PANEL_SYNC_SHEET_PINS::GetSheetFileName | ( | ) | const |
Definition at line 158 of file panel_sync_sheet_pins.cpp.
References m_sheetFileName.
|
inline |
Definition at line 68 of file panel_sync_sheet_pins.h.
References m_path.
bool PANEL_SYNC_SHEET_PINS::HasUndefinedSheetPing | ( | ) | const |
Definition at line 169 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, m_models, and SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN.
Referenced by DIALOG_SYNC_SHEET_PINS::DIALOG_SYNC_SHEET_PINS(), and UpdatePageImage().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 176 of file panel_sync_sheet_pins.cpp.
References m_agent, m_models, m_path, m_sheet, SHEET_SYNCHRONIZATION_AGENT::PlaceHieraLable(), and SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN.
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 194 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, m_agent, m_models, m_path, m_sheet, and SHEET_SYNCHRONIZATION_AGENT::PlaceSheetPin().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 310 of file panel_sync_sheet_pins.cpp.
References array, SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, m_models, PANEL_SYNC_SHEET_PINS_BASE::m_viewSheetLabels, PostProcessModelSelection(), and UpdatePageImage().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 299 of file panel_sync_sheet_pins.cpp.
References array, m_models, PANEL_SYNC_SHEET_PINS_BASE::m_viewSheetPins, PostProcessModelSelection(), SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN, and UpdatePageImage().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 321 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::ASSOCIATED, SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, m_models, m_sheet, PANEL_SYNC_SHEET_PINS_BASE::m_viewAssociated, PostProcessModelSelection(), SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN, and UpdatePageImage().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 292 of file panel_sync_sheet_pins.cpp.
References GenericSync(), and USE_LABEL_AS_TEMPLATE.
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 285 of file panel_sync_sheet_pins.cpp.
References GenericSync(), and USE_PIN_AS_TEMPLATE.
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 402 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::ASSOCIATED, and PostProcessModelSelection().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 390 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, and PostProcessModelSelection().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SYNC_SHEET_PINS_BASE.
Definition at line 396 of file panel_sync_sheet_pins.cpp.
References PostProcessModelSelection(), and SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN.
|
protected |
Definition at line 347 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::ASSOCIATED, SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, PANEL_SYNC_SHEET_PINS_BASE::m_btnAddLabels, PANEL_SYNC_SHEET_PINS_BASE::m_btnAddSheetPins, PANEL_SYNC_SHEET_PINS_BASE::m_btnRmLabels, PANEL_SYNC_SHEET_PINS_BASE::m_btnRmPins, PANEL_SYNC_SHEET_PINS_BASE::m_btnUndo, PANEL_SYNC_SHEET_PINS_BASE::m_btnUseLabelAsTemplate, PANEL_SYNC_SHEET_PINS_BASE::m_btnUsePinAsTemplate, m_models, and SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN.
Referenced by GenericSync(), OnBtnRmLabelsClicked(), OnBtnRmPinsClicked(), OnBtnUndoClicked(), OnViewMatchedCellClicked(), OnViewSheetLabelCellClicked(), OnViewSheetPinCellClicked(), and PANEL_SYNC_SHEET_PINS().
void PANEL_SYNC_SHEET_PINS::UpdateForms | ( | ) |
Definition at line 97 of file panel_sync_sheet_pins.cpp.
References SHEET_SYNCHRONIZATION_MODEL::ASSOCIATED, SCH_SHEET::GetPins(), SCH_SHEET::GetScreen(), SCH_LABEL_BASE::GetShape(), EDA_TEXT::GetText(), SHEET_SYNCHRONIZATION_MODEL::HIRE_LABEL, SCH_SCREEN::Items(), m_models, m_sheet, EE_RTREE::OfType(), pin, SCH_HIER_LABEL_T, SHEET_SYNCHRONIZATION_MODEL::SHEET_PIN, and UpdatePageImage().
Referenced by DIALOG_SYNC_SHEET_PINS::DIALOG_SYNC_SHEET_PINS(), and SHEET_FILE_CHANGE_NOTIFIER::Sync().
|
protected |
Definition at line 277 of file panel_sync_sheet_pins.cpp.
References SYNC_SHEET_PIN_PREFERENCE::ALL_MATCHED, SYNC_SHEET_PIN_PREFERENCE::HAS_UNMATCHED, HasUndefinedSheetPing(), m_index, and m_noteBook.
Referenced by GenericSync(), OnBtnRmLabelsClicked(), OnBtnRmPinsClicked(), OnBtnUndoClicked(), and UpdateForms().
|
private |
Definition at line 104 of file panel_sync_sheet_pins.h.
Referenced by GenericSync(), OnBtnAddLabelsClicked(), OnBtnAddSheetPinsClicked(), and PANEL_SYNC_SHEET_PINS().
|
protectedinherited |
Definition at line 42 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), PostProcessModelSelection(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 47 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), PostProcessModelSelection(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 48 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), PostProcessModelSelection(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 43 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), PostProcessModelSelection(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 53 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS(), PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), PostProcessModelSelection(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 51 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS(), PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), PostProcessModelSelection(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 52 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS(), PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), PostProcessModelSelection(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
private |
Definition at line 101 of file panel_sync_sheet_pins.h.
Referenced by UpdatePageImage().
|
protectedinherited |
Definition at line 45 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS(), and PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 40 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS(), and PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE().
|
private |
Definition at line 103 of file panel_sync_sheet_pins.h.
Referenced by GenericSync(), GetModel(), HasUndefinedSheetPing(), OnBtnAddLabelsClicked(), OnBtnAddSheetPinsClicked(), OnBtnRmLabelsClicked(), OnBtnRmPinsClicked(), OnBtnUndoClicked(), PANEL_SYNC_SHEET_PINS(), PostProcessModelSelection(), and UpdateForms().
|
private |
Definition at line 100 of file panel_sync_sheet_pins.h.
Referenced by UpdatePageImage().
|
protectedinherited |
Definition at line 44 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 39 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 49 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 54 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 50 of file panel_sync_sheet_pins_base.h.
Referenced by PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE().
|
private |
Definition at line 105 of file panel_sync_sheet_pins.h.
Referenced by GenericSync(), GetSheetPath(), OnBtnAddLabelsClicked(), OnBtnAddSheetPinsClicked(), and PANEL_SYNC_SHEET_PINS().
|
private |
Definition at line 99 of file panel_sync_sheet_pins.h.
Referenced by OnBtnAddLabelsClicked(), OnBtnAddSheetPinsClicked(), OnBtnUndoClicked(), PANEL_SYNC_SHEET_PINS(), and UpdateForms().
|
private |
Definition at line 102 of file panel_sync_sheet_pins.h.
Referenced by GetSheetFileName().
|
protectedinherited |
Definition at line 55 of file panel_sync_sheet_pins_base.h.
Referenced by OnBtnUndoClicked(), PANEL_SYNC_SHEET_PINS(), PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 46 of file panel_sync_sheet_pins_base.h.
Referenced by GenericSync(), OnBtnRmLabelsClicked(), PANEL_SYNC_SHEET_PINS(), PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().
|
protectedinherited |
Definition at line 41 of file panel_sync_sheet_pins_base.h.
Referenced by GenericSync(), OnBtnRmPinsClicked(), PANEL_SYNC_SHEET_PINS(), PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE(), and PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE().