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

#include <panel_setup_netclasses.h>

Inheritance diagram for PANEL_SETUP_NETCLASSES:
PANEL_SETUP_NETCLASSES_BASE

Public Member Functions

 PANEL_SETUP_NETCLASSES (wxWindow *aParentWindow, EDA_DRAW_FRAME *aFrame, std::shared_ptr< NET_SETTINGS > aSettings, const std::set< wxString > &aNetNames, bool isEEschema)
 
 ~PANEL_SETUP_NETCLASSES () override
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
bool Validate () override
 
void ImportSettingsFrom (const std::shared_ptr< NET_SETTINGS > &aNetSettings)
 

Protected Member Functions

virtual void onmembershipPanelSize (wxSizeEvent &event)
 

Protected Attributes

wxSplitterWindow * m_splitter
 
WX_PANELm_netclassesPane
 
wxStaticText * m_staticText3
 
WX_GRIDm_netclassGrid
 
STD_BITMAP_BUTTONm_addButton
 
STD_BITMAP_BUTTONm_removeButton
 
wxStaticText * m_colorDefaultHelpText
 
WX_PANELm_membershipPane
 
wxStaticText * m_staticText5
 
WX_GRIDm_assignmentGrid
 
WX_HTML_REPORT_BOXm_matchingNets
 
STD_BITMAP_BUTTONm_addAssignmentButton
 
STD_BITMAP_BUTTONm_removeAssignmentButton
 

Private Member Functions

void OnAddNetclassClick (wxCommandEvent &event) override
 
void OnRemoveNetclassClick (wxCommandEvent &event) override
 
void OnSizeNetclassGrid (wxSizeEvent &event) override
 
void OnSizeAssignmentGrid (wxSizeEvent &event) override
 
void OnAddAssignmentClick (wxCommandEvent &event) override
 
void OnRemoveAssignmentClick (wxCommandEvent &event) override
 
void OnUpdateUI (wxUpdateUIEvent &event) override
 
void OnNetclassGridCellChanging (wxGridEvent &event)
 
void OnNetclassGridMouseEvent (wxMouseEvent &event)
 
void onUnitsChanged (wxCommandEvent &aEvent)
 
bool validateNetclassName (int aRow, const wxString &aName, bool focusFirst=true)
 
void rebuildNetclassDropdowns ()
 
void AdjustNetclassGridColumns (int aWidth)
 
void AdjustAssignmentGridColumns (int aWidth)
 
void loadNetclasses ()
 
void checkReload ()
 

Private Attributes

EDA_DRAW_FRAMEm_frame
 
bool m_isEEschema
 
std::shared_ptr< NET_SETTINGSm_netSettings
 
std::set< wxString > m_netNames
 
std::unique_ptr< UNITS_PROVIDERm_schUnitsProvider
 
std::unique_ptr< UNITS_PROVIDERm_pcbUnitsProvider
 
std::map< wxString, std::shared_ptr< NETCLASS > > m_lastLoaded
 
int m_lastCheckedTicker
 
std::map< int, int > m_originalColWidths
 
bool m_netclassesDirty
 
int m_hoveredCol
 
wxString m_lastPattern
 
int m_lastNetclassGridWidth
 

Detailed Description

Definition at line 36 of file panel_setup_netclasses.h.

Constructor & Destructor Documentation

◆ PANEL_SETUP_NETCLASSES()

PANEL_SETUP_NETCLASSES::PANEL_SETUP_NETCLASSES ( wxWindow *  aParentWindow,
EDA_DRAW_FRAME aFrame,
std::shared_ptr< NET_SETTINGS aSettings,
const std::set< wxString > &  aNetNames,
bool  isEEschema 
)

Definition at line 72 of file panel_setup_netclasses.cpp.

References _, WX_GRID::EnsureColLabelsVisible(), g_lineStyleIcons, g_lineStyleNames, PAGED_DIALOG::GetDialog(), KIUI::GetInfoFont(), PROJECT::GetNetclassesTicker(), UNITS_PROVIDER::GetUserUnits(), WX_GRID::GetVisibleWidth(), GRID_BUSWIDTH, GRID_CLEARANCE, GRID_DIFF_PAIR_GAP, GRID_DIFF_PAIR_WIDTH, GRID_END, GRID_FIRST_EESCHEMA, GRID_FIRST_PCBNEW, GRID_LINESTYLE, GRID_SCHEMATIC_COLOR, GRID_TRACKSIZE, GRID_uVIADRILL, GRID_uVIASIZE, GRID_VIADRILL, GRID_VIASIZE, GRID_WIREWIDTH, KiBitmapBundle(), PANEL_SETUP_NETCLASSES_BASE::m_addAssignmentButton, PANEL_SETUP_NETCLASSES_BASE::m_addButton, PANEL_SETUP_NETCLASSES_BASE::m_assignmentGrid, PANEL_SETUP_NETCLASSES_BASE::m_colorDefaultHelpText, m_frame, m_isEEschema, m_lastCheckedTicker, PANEL_SETUP_NETCLASSES_BASE::m_matchingNets, PANEL_SETUP_NETCLASSES_BASE::m_membershipPane, m_netclassesDirty, PANEL_SETUP_NETCLASSES_BASE::m_netclassesPane, PANEL_SETUP_NETCLASSES_BASE::m_netclassGrid, COMMON_SETTINGS::m_NetclassPanel, m_originalColWidths, m_pcbUnitsProvider, PANEL_SETUP_NETCLASSES_BASE::m_removeAssignmentButton, PANEL_SETUP_NETCLASSES_BASE::m_removeButton, m_schUnitsProvider, PANEL_SETUP_NETCLASSES_BASE::m_splitter, OnNetclassGridCellChanging(), OnNetclassGridMouseEvent(), onUnitsChanged(), pcbIUScale, Pgm(), KIWAY_HOLDER::Prj(), COMMON_SETTINGS::NETCLASS_PANEL::sash_pos, schIUScale, WX_GRID::SetAutoEvalCols(), STD_BITMAP_BUTTON::SetBitmap(), WX_PANEL::SetBorders(), and WX_GRID::SetUnitsProvider().

◆ ~PANEL_SETUP_NETCLASSES()

Member Function Documentation

◆ AdjustAssignmentGridColumns()

void PANEL_SETUP_NETCLASSES::AdjustAssignmentGridColumns ( int  aWidth)
private

◆ AdjustNetclassGridColumns()

void PANEL_SETUP_NETCLASSES::AdjustNetclassGridColumns ( int  aWidth)
private

◆ checkReload()

void PANEL_SETUP_NETCLASSES::checkReload ( )
private

◆ ImportSettingsFrom()

void PANEL_SETUP_NETCLASSES::ImportSettingsFrom ( const std::shared_ptr< NET_SETTINGS > &  aNetSettings)

◆ loadNetclasses()

◆ OnAddAssignmentClick()

void PANEL_SETUP_NETCLASSES::OnAddAssignmentClick ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnAddNetclassClick()

void PANEL_SETUP_NETCLASSES::OnAddNetclassClick ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onmembershipPanelSize()

virtual void PANEL_SETUP_NETCLASSES_BASE::onmembershipPanelSize ( wxSizeEvent &  event)
inlineprotectedvirtualinherited

◆ OnNetclassGridCellChanging()

void PANEL_SETUP_NETCLASSES::OnNetclassGridCellChanging ( wxGridEvent &  event)
private

◆ OnNetclassGridMouseEvent()

◆ OnRemoveAssignmentClick()

void PANEL_SETUP_NETCLASSES::OnRemoveAssignmentClick ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnRemoveNetclassClick()

void PANEL_SETUP_NETCLASSES::OnRemoveNetclassClick ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnSizeAssignmentGrid()

void PANEL_SETUP_NETCLASSES::OnSizeAssignmentGrid ( wxSizeEvent &  event)
overrideprivatevirtual

Reimplemented from PANEL_SETUP_NETCLASSES_BASE.

Definition at line 701 of file panel_setup_netclasses.cpp.

References AdjustAssignmentGridColumns().

◆ OnSizeNetclassGrid()

void PANEL_SETUP_NETCLASSES::OnSizeNetclassGrid ( wxSizeEvent &  event)
overrideprivatevirtual

Reimplemented from PANEL_SETUP_NETCLASSES_BASE.

Definition at line 644 of file panel_setup_netclasses.cpp.

References AdjustNetclassGridColumns().

◆ onUnitsChanged()

void PANEL_SETUP_NETCLASSES::onUnitsChanged ( wxCommandEvent &  aEvent)
private

◆ OnUpdateUI()

◆ rebuildNetclassDropdowns()

void PANEL_SETUP_NETCLASSES::rebuildNetclassDropdowns ( )
private

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_SETUP_NETCLASSES::TransferDataToWindow ( )
override

◆ Validate()

◆ validateNetclassName()

bool PANEL_SETUP_NETCLASSES::validateNetclassName ( int  aRow,
const wxString &  aName,
bool  focusFirst = true 
)
private

Member Data Documentation

◆ m_addAssignmentButton

STD_BITMAP_BUTTON* PANEL_SETUP_NETCLASSES_BASE::m_addAssignmentButton
protectedinherited

◆ m_addButton

◆ m_assignmentGrid

◆ m_colorDefaultHelpText

wxStaticText* PANEL_SETUP_NETCLASSES_BASE::m_colorDefaultHelpText
protectedinherited

◆ m_frame

EDA_DRAW_FRAME* PANEL_SETUP_NETCLASSES::m_frame
private

◆ m_hoveredCol

int PANEL_SETUP_NETCLASSES::m_hoveredCol
private

Definition at line 88 of file panel_setup_netclasses.h.

Referenced by OnNetclassGridMouseEvent().

◆ m_isEEschema

bool PANEL_SETUP_NETCLASSES::m_isEEschema
private

Definition at line 76 of file panel_setup_netclasses.h.

Referenced by PANEL_SETUP_NETCLASSES().

◆ m_lastCheckedTicker

int PANEL_SETUP_NETCLASSES::m_lastCheckedTicker
private

◆ m_lastLoaded

std::map<wxString, std::shared_ptr<NETCLASS> > PANEL_SETUP_NETCLASSES::m_lastLoaded
private

Definition at line 83 of file panel_setup_netclasses.h.

Referenced by checkReload(), and TransferDataToWindow().

◆ m_lastNetclassGridWidth

int PANEL_SETUP_NETCLASSES::m_lastNetclassGridWidth
private

Definition at line 91 of file panel_setup_netclasses.h.

Referenced by AdjustNetclassGridColumns().

◆ m_lastPattern

wxString PANEL_SETUP_NETCLASSES::m_lastPattern
private

Definition at line 89 of file panel_setup_netclasses.h.

Referenced by OnUpdateUI().

◆ m_matchingNets

WX_HTML_REPORT_BOX* PANEL_SETUP_NETCLASSES_BASE::m_matchingNets
protectedinherited

◆ m_membershipPane

WX_PANEL* PANEL_SETUP_NETCLASSES_BASE::m_membershipPane
protectedinherited

◆ m_netclassesDirty

bool PANEL_SETUP_NETCLASSES::m_netclassesDirty
private

◆ m_netclassesPane

WX_PANEL* PANEL_SETUP_NETCLASSES_BASE::m_netclassesPane
protectedinherited

◆ m_netclassGrid

◆ m_netNames

std::set<wxString> PANEL_SETUP_NETCLASSES::m_netNames
private

Definition at line 78 of file panel_setup_netclasses.h.

Referenced by OnUpdateUI().

◆ m_netSettings

std::shared_ptr<NET_SETTINGS> PANEL_SETUP_NETCLASSES::m_netSettings
private

◆ m_originalColWidths

std::map<int, int> PANEL_SETUP_NETCLASSES::m_originalColWidths
private

Definition at line 86 of file panel_setup_netclasses.h.

Referenced by AdjustNetclassGridColumns(), and PANEL_SETUP_NETCLASSES().

◆ m_pcbUnitsProvider

std::unique_ptr<UNITS_PROVIDER> PANEL_SETUP_NETCLASSES::m_pcbUnitsProvider
private

Definition at line 81 of file panel_setup_netclasses.h.

Referenced by onUnitsChanged(), and PANEL_SETUP_NETCLASSES().

◆ m_removeAssignmentButton

STD_BITMAP_BUTTON* PANEL_SETUP_NETCLASSES_BASE::m_removeAssignmentButton
protectedinherited

◆ m_removeButton

◆ m_schUnitsProvider

std::unique_ptr<UNITS_PROVIDER> PANEL_SETUP_NETCLASSES::m_schUnitsProvider
private

Definition at line 80 of file panel_setup_netclasses.h.

Referenced by onUnitsChanged(), and PANEL_SETUP_NETCLASSES().

◆ m_splitter

wxSplitterWindow* PANEL_SETUP_NETCLASSES_BASE::m_splitter
protectedinherited

◆ m_staticText3

wxStaticText* PANEL_SETUP_NETCLASSES_BASE::m_staticText3
protectedinherited

◆ m_staticText5

wxStaticText* PANEL_SETUP_NETCLASSES_BASE::m_staticText5
protectedinherited

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