KiCad PCB EDA Suite
|
#include <panel_setup_buses.h>
Public Member Functions | |
PANEL_SETUP_BUSES (wxWindow *aWindow, SCH_EDIT_FRAME *aFrame) | |
~PANEL_SETUP_BUSES () | |
bool | TransferDataFromWindow () override |
bool | TransferDataToWindow () override |
void | ImportSettingsFrom (const SCHEMATIC &aOtherSchematic) |
Protected Member Functions | |
void | OnAddAlias (wxCommandEvent &aEvent) override |
void | OnDeleteAlias (wxCommandEvent &aEvent) override |
void | OnAddMember (wxCommandEvent &aEvent) override |
void | OnRemoveMember (wxCommandEvent &aEvent) override |
void | OnAliasesGridCellChanging (wxGridEvent &event) |
void | OnMemberGridCellChanging (wxGridEvent &event) |
void | OnSizeGrid (wxSizeEvent &event) override |
void | OnUpdateUI (wxUpdateUIEvent &event) override |
void | loadAliases (const SCHEMATIC &aSchematic) |
void | reloadMembersGridOnIdle (wxIdleEvent &aEvent) |
void | doReloadMembersGrid () |
void | updateAliasMembers (int aAliasIndex) |
When rows are created programmatically by pasting values from the clipboard, the cell change event may not be triggered. | |
Protected Attributes | |
wxBoxSizer * | bMargins |
wxBoxSizer * | bLeftCol |
wxStaticText * | m_busesLabel |
WX_GRID * | m_aliasesGrid |
STD_BITMAP_BUTTON * | m_addAlias |
STD_BITMAP_BUTTON * | m_deleteAlias |
wxStaticText * | m_source |
wxSimplebook * | m_membersBook |
wxPanel * | membersPanel |
wxStaticText * | m_membersLabel |
WX_GRID * | m_membersGrid |
STD_BITMAP_BUTTON * | m_addMember |
STD_BITMAP_BUTTON * | m_removeMember |
wxPanel * | emptyPanel |
Private Attributes | |
SCH_EDIT_FRAME * | m_frame |
wxString | m_membersLabelTemplate |
std::vector< std::shared_ptr< BUS_ALIAS > > | m_aliases |
int | m_lastAlias |
wxString | m_lastAliasName |
bool | m_membersGridDirty |
wxString | m_errorMsg |
WX_GRID * | m_errorGrid |
int | m_errorRow |
Definition at line 33 of file panel_setup_buses.h.
PANEL_SETUP_BUSES::PANEL_SETUP_BUSES | ( | wxWindow * | aWindow, |
SCH_EDIT_FRAME * | aFrame | ||
) |
Definition at line 31 of file panel_setup_buses.cpp.
References KIUI::GetInfoFont(), KiBitmapBundle(), PANEL_SETUP_BUSES_BASE::m_addAlias, PANEL_SETUP_BUSES_BASE::m_addMember, PANEL_SETUP_BUSES_BASE::m_aliasesGrid, PANEL_SETUP_BUSES_BASE::m_deleteAlias, PANEL_SETUP_BUSES_BASE::m_membersGrid, PANEL_SETUP_BUSES_BASE::m_membersLabel, m_membersLabelTemplate, PANEL_SETUP_BUSES_BASE::m_removeMember, PANEL_SETUP_BUSES_BASE::m_source, OnAddAlias(), OnAddMember(), OnAliasesGridCellChanging(), OnMemberGridCellChanging(), WX_GRID::OverrideMinSize(), and STD_BITMAP_BUTTON::SetBitmap().
PANEL_SETUP_BUSES::~PANEL_SETUP_BUSES | ( | ) |
Definition at line 80 of file panel_setup_buses.cpp.
References PANEL_SETUP_BUSES_BASE::m_aliasesGrid, PANEL_SETUP_BUSES_BASE::m_membersGrid, OnAliasesGridCellChanging(), and OnMemberGridCellChanging().
|
protected |
Definition at line 374 of file panel_setup_buses.cpp.
References WX_GRID::ClearRows(), m_aliases, m_lastAlias, m_lastAliasName, PANEL_SETUP_BUSES_BASE::m_membersGrid, m_membersGridDirty, PANEL_SETUP_BUSES_BASE::m_membersLabel, m_membersLabelTemplate, and PANEL_SETUP_BUSES_BASE::m_source.
Referenced by reloadMembersGridOnIdle().
void PANEL_SETUP_BUSES::ImportSettingsFrom | ( | const SCHEMATIC & | aOtherSchematic | ) |
Definition at line 508 of file panel_setup_buses.cpp.
References SCH_EDIT_FRAME::GetScreen(), loadAliases(), m_aliases, and m_frame.
|
protected |
Definition at line 95 of file panel_setup_buses.cpp.
References WX_GRID::ClearRows(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), m_aliases, PANEL_SETUP_BUSES_BASE::m_aliasesGrid, PANEL_SETUP_BUSES_BASE::m_membersBook, and SCHEMATIC::Root().
Referenced by ImportSettingsFrom(), and TransferDataToWindow().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SETUP_BUSES_BASE.
Definition at line 174 of file panel_setup_buses.cpp.
References WX_GRID::CommitPendingChanges(), SCH_EDIT_FRAME::GetScreen(), m_aliases, PANEL_SETUP_BUSES_BASE::m_aliasesGrid, m_frame, PANEL_SETUP_BUSES_BASE::m_membersGrid, and updateAliasMembers().
Referenced by PANEL_SETUP_BUSES().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SETUP_BUSES_BASE.
Definition at line 226 of file panel_setup_buses.cpp.
References WX_GRID::CommitPendingChanges(), and PANEL_SETUP_BUSES_BASE::m_membersGrid.
Referenced by PANEL_SETUP_BUSES().
|
protected |
Definition at line 297 of file panel_setup_buses.cpp.
References _, m_aliases, PANEL_SETUP_BUSES_BASE::m_aliasesGrid, m_errorGrid, m_errorMsg, m_errorRow, and name.
Referenced by PANEL_SETUP_BUSES(), and ~PANEL_SETUP_BUSES().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SETUP_BUSES_BASE.
Definition at line 199 of file panel_setup_buses.cpp.
References WX_GRID::ClearRows(), WX_GRID::CommitPendingChanges(), m_aliases, PANEL_SETUP_BUSES_BASE::m_aliasesGrid, m_lastAlias, m_lastAliasName, and PANEL_SETUP_BUSES_BASE::m_membersGrid.
|
protected |
Definition at line 327 of file panel_setup_buses.cpp.
References _, m_aliases, m_errorGrid, m_errorMsg, m_errorRow, m_lastAlias, PANEL_SETUP_BUSES_BASE::m_membersGrid, m_membersGridDirty, name, and reloadMembersGridOnIdle().
Referenced by PANEL_SETUP_BUSES(), and ~PANEL_SETUP_BUSES().
|
overrideprotectedvirtual |
Reimplemented from PANEL_SETUP_BUSES_BASE.
Definition at line 270 of file panel_setup_buses.cpp.
References WX_GRID::CommitPendingChanges(), m_aliases, m_lastAlias, and PANEL_SETUP_BUSES_BASE::m_membersGrid.
|
overrideprotectedvirtual |
Reimplemented from PANEL_SETUP_BUSES_BASE.
Definition at line 416 of file panel_setup_buses.cpp.
References grid, PANEL_SETUP_BUSES_BASE::m_aliasesGrid, and PANEL_SETUP_BUSES_BASE::m_membersGrid.
|
overrideprotectedvirtual |
Reimplemented from PANEL_SETUP_BUSES_BASE.
Definition at line 435 of file panel_setup_buses.cpp.
References DisplayErrorMessage(), m_aliases, PANEL_SETUP_BUSES_BASE::m_aliasesGrid, m_errorGrid, m_errorMsg, m_errorRow, m_lastAlias, m_lastAliasName, PANEL_SETUP_BUSES_BASE::m_membersBook, PANEL_SETUP_BUSES_BASE::m_membersGrid, m_membersGridDirty, and reloadMembersGridOnIdle().
|
protected |
Definition at line 406 of file panel_setup_buses.cpp.
References doReloadMembersGrid(), m_membersGridDirty, and reloadMembersGridOnIdle().
Referenced by OnMemberGridCellChanging(), OnUpdateUI(), and reloadMembersGridOnIdle().
|
override |
Definition at line 150 of file panel_setup_buses.cpp.
References WX_GRID::CommitPendingChanges(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), m_aliases, PANEL_SETUP_BUSES_BASE::m_aliasesGrid, m_frame, m_lastAlias, PANEL_SETUP_BUSES_BASE::m_membersGrid, SCHEMATIC::Root(), SCH_EDIT_FRAME::Schematic(), and updateAliasMembers().
|
override |
Definition at line 143 of file panel_setup_buses.cpp.
References loadAliases(), m_frame, and SCH_EDIT_FRAME::Schematic().
|
protected |
When rows are created programmatically by pasting values from the clipboard, the cell change event may not be triggered.
This can prevent members from being automatically added to the corresponding alias. To ensure that members are correctly associated with the alias, manually update the members for the needed alias.
Definition at line 518 of file panel_setup_buses.cpp.
References m_aliases, and PANEL_SETUP_BUSES_BASE::m_membersGrid.
Referenced by OnAddAlias(), and TransferDataFromWindow().
|
protectedinherited |
Definition at line 43 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 42 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 55 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 46 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES(), PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE(), and PANEL_SETUP_BUSES_BASE::~PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 53 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES(), PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE(), and PANEL_SETUP_BUSES_BASE::~PANEL_SETUP_BUSES_BASE().
|
private |
Definition at line 75 of file panel_setup_buses.h.
Referenced by doReloadMembersGrid(), ImportSettingsFrom(), loadAliases(), OnAddAlias(), OnAliasesGridCellChanging(), OnDeleteAlias(), OnMemberGridCellChanging(), OnRemoveMember(), OnUpdateUI(), TransferDataFromWindow(), and updateAliasMembers().
|
protectedinherited |
Definition at line 45 of file panel_setup_buses_base.h.
Referenced by loadAliases(), OnAddAlias(), OnAliasesGridCellChanging(), OnDeleteAlias(), OnSizeGrid(), OnUpdateUI(), PANEL_SETUP_BUSES(), PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE(), TransferDataFromWindow(), ~PANEL_SETUP_BUSES(), and PANEL_SETUP_BUSES_BASE::~PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 44 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 47 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES(), PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE(), and PANEL_SETUP_BUSES_BASE::~PANEL_SETUP_BUSES_BASE().
|
private |
Definition at line 81 of file panel_setup_buses.h.
Referenced by OnAliasesGridCellChanging(), OnMemberGridCellChanging(), and OnUpdateUI().
|
private |
Definition at line 80 of file panel_setup_buses.h.
Referenced by OnAliasesGridCellChanging(), OnMemberGridCellChanging(), and OnUpdateUI().
|
private |
Definition at line 82 of file panel_setup_buses.h.
Referenced by OnAliasesGridCellChanging(), OnMemberGridCellChanging(), and OnUpdateUI().
|
private |
Definition at line 72 of file panel_setup_buses.h.
Referenced by ImportSettingsFrom(), OnAddAlias(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 76 of file panel_setup_buses.h.
Referenced by doReloadMembersGrid(), OnDeleteAlias(), OnMemberGridCellChanging(), OnRemoveMember(), OnUpdateUI(), and TransferDataFromWindow().
|
private |
Definition at line 77 of file panel_setup_buses.h.
Referenced by doReloadMembersGrid(), OnDeleteAlias(), and OnUpdateUI().
|
protectedinherited |
Definition at line 49 of file panel_setup_buses_base.h.
Referenced by loadAliases(), OnUpdateUI(), and PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 52 of file panel_setup_buses_base.h.
Referenced by doReloadMembersGrid(), OnAddAlias(), OnAddMember(), OnDeleteAlias(), OnMemberGridCellChanging(), OnRemoveMember(), OnSizeGrid(), OnUpdateUI(), PANEL_SETUP_BUSES(), PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE(), TransferDataFromWindow(), updateAliasMembers(), ~PANEL_SETUP_BUSES(), and PANEL_SETUP_BUSES_BASE::~PANEL_SETUP_BUSES_BASE().
|
private |
Definition at line 78 of file panel_setup_buses.h.
Referenced by doReloadMembersGrid(), OnMemberGridCellChanging(), OnUpdateUI(), and reloadMembersGridOnIdle().
|
protectedinherited |
Definition at line 51 of file panel_setup_buses_base.h.
Referenced by doReloadMembersGrid(), PANEL_SETUP_BUSES(), and PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE().
|
private |
Definition at line 73 of file panel_setup_buses.h.
Referenced by doReloadMembersGrid(), and PANEL_SETUP_BUSES().
|
protectedinherited |
Definition at line 54 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES(), PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE(), and PANEL_SETUP_BUSES_BASE::~PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 48 of file panel_setup_buses_base.h.
Referenced by doReloadMembersGrid(), PANEL_SETUP_BUSES(), and PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE().
|
protectedinherited |
Definition at line 50 of file panel_setup_buses_base.h.
Referenced by PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_BASE().