KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_SETUP_BUSES Class Reference

#include <panel_setup_buses.h>

Inheritance diagram for PANEL_SETUP_BUSES:
PANEL_SETUP_BUSES_BASE

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)
 

Protected Attributes

wxBoxSizer * bMargins
 
wxBoxSizer * bLeftCol
 
wxStaticText * m_busesLabel
 
WX_GRIDm_aliasesGrid
 
STD_BITMAP_BUTTONm_addAlias
 
STD_BITMAP_BUTTONm_deleteAlias
 
wxStaticText * m_source
 
wxSimplebook * m_membersBook
 
wxPanel * membersPanel
 
wxStaticText * m_membersLabel
 
WX_GRIDm_membersGrid
 
STD_BITMAP_BUTTONm_addMember
 
STD_BITMAP_BUTTONm_removeMember
 
wxPanel * emptyPanel
 

Private Attributes

SCH_EDIT_FRAMEm_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_GRIDm_errorGrid
 
int m_errorRow
 

Detailed Description

Definition at line 33 of file panel_setup_buses.h.

Constructor & Destructor Documentation

◆ PANEL_SETUP_BUSES()

◆ ~PANEL_SETUP_BUSES()

Member Function Documentation

◆ doReloadMembersGrid()

◆ ImportSettingsFrom()

void PANEL_SETUP_BUSES::ImportSettingsFrom ( const SCHEMATIC aOtherSchematic)

Definition at line 505 of file panel_setup_buses.cpp.

References SCH_EDIT_FRAME::GetScreen(), loadAliases(), m_aliases, and m_frame.

◆ loadAliases()

◆ OnAddAlias()

void PANEL_SETUP_BUSES::OnAddAlias ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnAddMember()

void PANEL_SETUP_BUSES::OnAddMember ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnAliasesGridCellChanging()

void PANEL_SETUP_BUSES::OnAliasesGridCellChanging ( wxGridEvent &  event)
protected

◆ OnDeleteAlias()

void PANEL_SETUP_BUSES::OnDeleteAlias ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnMemberGridCellChanging()

void PANEL_SETUP_BUSES::OnMemberGridCellChanging ( wxGridEvent &  event)
protected

◆ OnRemoveMember()

void PANEL_SETUP_BUSES::OnRemoveMember ( wxCommandEvent &  aEvent)
overrideprotectedvirtual

◆ OnSizeGrid()

void PANEL_SETUP_BUSES::OnSizeGrid ( wxSizeEvent &  event)
overrideprotectedvirtual

◆ OnUpdateUI()

◆ reloadMembersGridOnIdle()

void PANEL_SETUP_BUSES::reloadMembersGridOnIdle ( wxIdleEvent &  aEvent)
protected

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_SETUP_BUSES::TransferDataToWindow ( )
override

Definition at line 141 of file panel_setup_buses.cpp.

References loadAliases(), m_frame, and SCH_EDIT_FRAME::Schematic().

◆ updateAliasMembers()

void PANEL_SETUP_BUSES::updateAliasMembers ( int  aAliasIndex)
protected

Definition at line 515 of file panel_setup_buses.cpp.

References m_aliases, and PANEL_SETUP_BUSES_BASE::m_membersGrid.

Referenced by OnAddAlias(), and TransferDataFromWindow().

Member Data Documentation

◆ bLeftCol

wxBoxSizer* PANEL_SETUP_BUSES_BASE::bLeftCol
protectedinherited

◆ bMargins

wxBoxSizer* PANEL_SETUP_BUSES_BASE::bMargins
protectedinherited

◆ emptyPanel

wxPanel* PANEL_SETUP_BUSES_BASE::emptyPanel
protectedinherited

◆ m_addAlias

STD_BITMAP_BUTTON* PANEL_SETUP_BUSES_BASE::m_addAlias
protectedinherited

◆ m_addMember

STD_BITMAP_BUTTON* PANEL_SETUP_BUSES_BASE::m_addMember
protectedinherited

◆ m_aliases

◆ m_aliasesGrid

◆ m_busesLabel

wxStaticText* PANEL_SETUP_BUSES_BASE::m_busesLabel
protectedinherited

◆ m_deleteAlias

STD_BITMAP_BUTTON* PANEL_SETUP_BUSES_BASE::m_deleteAlias
protectedinherited

◆ m_errorGrid

WX_GRID* PANEL_SETUP_BUSES::m_errorGrid
private

◆ m_errorMsg

wxString PANEL_SETUP_BUSES::m_errorMsg
private

◆ m_errorRow

int PANEL_SETUP_BUSES::m_errorRow
private

◆ m_frame

SCH_EDIT_FRAME* PANEL_SETUP_BUSES::m_frame
private

◆ m_lastAlias

int PANEL_SETUP_BUSES::m_lastAlias
private

◆ m_lastAliasName

wxString PANEL_SETUP_BUSES::m_lastAliasName
private

Definition at line 77 of file panel_setup_buses.h.

Referenced by doReloadMembersGrid(), OnDeleteAlias(), and OnUpdateUI().

◆ m_membersBook

wxSimplebook* PANEL_SETUP_BUSES_BASE::m_membersBook
protectedinherited

◆ m_membersGrid

◆ m_membersGridDirty

bool PANEL_SETUP_BUSES::m_membersGridDirty
private

◆ m_membersLabel

wxStaticText* PANEL_SETUP_BUSES_BASE::m_membersLabel
protectedinherited

◆ m_membersLabelTemplate

wxString PANEL_SETUP_BUSES::m_membersLabelTemplate
private

Definition at line 73 of file panel_setup_buses.h.

Referenced by doReloadMembersGrid(), and PANEL_SETUP_BUSES().

◆ m_removeMember

STD_BITMAP_BUTTON* PANEL_SETUP_BUSES_BASE::m_removeMember
protectedinherited

◆ m_source

wxStaticText* PANEL_SETUP_BUSES_BASE::m_source
protectedinherited

◆ membersPanel

wxPanel* PANEL_SETUP_BUSES_BASE::membersPanel
protectedinherited

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