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
 
STD_BITMAP_BUTTONm_moveUpButton
 
STD_BITMAP_BUTTONm_moveDownButton
 
wxStaticText * m_colorDefaultHelpText
 
wxButton * m_importColorsButton
 
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 OnMoveNetclassUpClick (wxCommandEvent &event) override
 
void OnMoveNetclassDownClick (wxCommandEvent &event) override
 
void OnImportColorsClick (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 ()
 
void setNetclassRowNullableEditors (int aRowId, bool aIsDefault)
 

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
 
std::bitset< 64 > m_shownColumns
 
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 78 of file panel_setup_netclasses.cpp.

References _, COMMON_SETTINGS::NETCLASS_PANEL::eeschema_visible_columns, WX_GRID::EnsureColLabelsVisible(), g_lineStyleIcons, g_lineStyleNames, PGM_BASE::GetCommonSettings(), PAGED_DIALOG::GetDialog(), KIUI::GetInfoFont(), PROJECT::GetNetclassesTicker(), WX_GRID::GetShownColumns(), UNITS_PROVIDER::GetUserUnits(), WX_GRID::GetVisibleWidth(), GRID_BUSWIDTH, GRID_CLEARANCE, GRID_DIFF_PAIR_GAP, GRID_DIFF_PAIR_WIDTH, GRID_END, GRID_FIRST_EESCHEMA, GRID_LINESTYLE, GRID_PCB_COLOR, 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, PANEL_SETUP_NETCLASSES_BASE::m_importColorsButton, m_isEEschema, m_lastCheckedTicker, PANEL_SETUP_NETCLASSES_BASE::m_matchingNets, PANEL_SETUP_NETCLASSES_BASE::m_membershipPane, PANEL_SETUP_NETCLASSES_BASE::m_moveDownButton, PANEL_SETUP_NETCLASSES_BASE::m_moveUpButton, 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, m_shownColumns, PANEL_SETUP_NETCLASSES_BASE::m_splitter, OnNetclassGridCellChanging(), OnNetclassGridMouseEvent(), onUnitsChanged(), pcbIUScale, COMMON_SETTINGS::NETCLASS_PANEL::pcbnew_visible_columns, Pgm(), KIWAY_HOLDER::Prj(), COMMON_SETTINGS::NETCLASS_PANEL::sash_pos, schIUScale, WX_GRID::SetAutoEvalCols(), STD_BITMAP_BUTTON::SetBitmap(), WX_PANEL::SetBorders(), WX_GRID::SetUnitsProvider(), and WX_GRID::ShowHideColumns().

◆ ~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()

◆ OnImportColorsClick()

void PANEL_SETUP_NETCLASSES::OnImportColorsClick ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onmembershipPanelSize()

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

◆ OnMoveNetclassDownClick()

void PANEL_SETUP_NETCLASSES::OnMoveNetclassDownClick ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnMoveNetclassUpClick()

void PANEL_SETUP_NETCLASSES::OnMoveNetclassUpClick ( wxCommandEvent &  event)
overrideprivatevirtual

◆ 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 827 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 752 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

◆ setNetclassRowNullableEditors()

void PANEL_SETUP_NETCLASSES::setNetclassRowNullableEditors ( int  aRowId,
bool  aIsDefault 
)
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 93 of file panel_setup_netclasses.h.

Referenced by OnNetclassGridMouseEvent().

◆ m_importColorsButton

wxButton* PANEL_SETUP_NETCLASSES_BASE::m_importColorsButton
protectedinherited

◆ m_isEEschema

bool PANEL_SETUP_NETCLASSES::m_isEEschema
private

Definition at line 81 of file panel_setup_netclasses.h.

Referenced by PANEL_SETUP_NETCLASSES(), and ~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 88 of file panel_setup_netclasses.h.

Referenced by checkReload(), and TransferDataToWindow().

◆ m_lastNetclassGridWidth

int PANEL_SETUP_NETCLASSES::m_lastNetclassGridWidth
private

Definition at line 97 of file panel_setup_netclasses.h.

Referenced by AdjustNetclassGridColumns().

◆ m_lastPattern

wxString PANEL_SETUP_NETCLASSES::m_lastPattern
private

Definition at line 94 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_moveDownButton

◆ m_moveUpButton

◆ m_netclassesDirty

◆ 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 83 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 91 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 86 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 85 of file panel_setup_netclasses.h.

Referenced by onUnitsChanged(), and PANEL_SETUP_NETCLASSES().

◆ m_shownColumns

std::bitset<64> PANEL_SETUP_NETCLASSES::m_shownColumns
private

Definition at line 96 of file panel_setup_netclasses.h.

Referenced by OnUpdateUI(), 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: