KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_SETUP_TUNING_PROFILES Class Referencefinal

#include <panel_setup_tuning_profiles.h>

Inheritance diagram for PANEL_SETUP_TUNING_PROFILES:
PANEL_SETUP_TUNING_PROFILES_BASE

Public Member Functions

 PANEL_SETUP_TUNING_PROFILES (wxWindow *aParentWindow, PCB_EDIT_FRAME *aFrame, BOARD *aBoard, std::shared_ptr< TUNING_PROFILES > aTimeDomainParameters)
 
 ~PANEL_SETUP_TUNING_PROFILES () override
 
void SyncCopperLayers (int aNumCopperLayers)
 Called when switching to this tab to make sure that any changes to the copper layer count made on the physical stackup page are reflected here.
 
bool TransferDataToWindow () override
 Load parameter data from the settings object.
 
bool TransferDataFromWindow () override
 Save parameter data to the settings object.
 
std::vector< wxString > GetDelayProfileNames () const
 Returns all configured tuning profile names. Used by the netclass setup panel.
 
void ImportSettingsFrom (const std::shared_ptr< TUNING_PROFILES > &aOtherParameters)
 Load configuration from the given settings object.
 
void OnAddTuningProfileClick (wxCommandEvent &event) override
 Adds a new tuning profile entry to the tuning profile grid.
 
void OnRemoveTuningProfileClick (wxCommandEvent &event) override
 Removes a tuning profile entry from the tuning profile grid.
 
bool Validate () override
 Validates all data.
 
void UpdateProfileName (PANEL_SETUP_TUNING_PROFILE_INFO *panel, wxString newName) const
 Update the notebook display of the name for a given panel.
 

Protected Attributes

wxNotebook * m_tuningProfiles
 
STD_BITMAP_BUTTONm_addTuningProfileButton
 
STD_BITMAP_BUTTONm_removeTuningProfileButton
 

Private Attributes

std::shared_ptr< TUNING_PROFILESm_tuningProfileParameters
 The parameters object to load / save data from / to.
 
DIALOG_SHIMm_dlg
 The parent dialog.
 
PCB_EDIT_FRAMEm_frame
 The active edit frame.
 
BOARDm_board
 The current board.
 
std::unique_ptr< UNITS_PROVIDERm_unitsProvider
 
std::map< PCB_LAYER_ID, int > m_copperLayerIdsToIndex
 
std::map< int, PCB_LAYER_IDm_copperIndexToLayerId
 
std::vector< wxString > m_layerNames
 
std::map< wxString, PCB_LAYER_IDm_layerNamesToIDs
 
std::map< wxString, PCB_LAYER_IDm_prevLayerNamesToIDs
 

Friends

class PANEL_SETUP_TUNING_PROFILE_INFO
 

Detailed Description

Definition at line 36 of file panel_setup_tuning_profiles.h.

Constructor & Destructor Documentation

◆ PANEL_SETUP_TUNING_PROFILES()

◆ ~PANEL_SETUP_TUNING_PROFILES()

PANEL_SETUP_TUNING_PROFILES::~PANEL_SETUP_TUNING_PROFILES ( )
override

Definition at line 56 of file panel_setup_tuning_profiles.cpp.

Member Function Documentation

◆ GetDelayProfileNames()

std::vector< wxString > PANEL_SETUP_TUNING_PROFILES::GetDelayProfileNames ( ) const

Returns all configured tuning profile names. Used by the netclass setup panel.

Definition at line 184 of file panel_setup_tuning_profiles.cpp.

References PANEL_SETUP_TUNING_PROFILES_BASE::m_tuningProfiles, name, and PANEL_SETUP_TUNING_PROFILE_INFO.

◆ ImportSettingsFrom()

void PANEL_SETUP_TUNING_PROFILES::ImportSettingsFrom ( const std::shared_ptr< TUNING_PROFILES > & aOtherParameters)

Load configuration from the given settings object.

Definition at line 173 of file panel_setup_tuning_profiles.cpp.

References m_tuningProfileParameters, and TransferDataToWindow().

◆ OnAddTuningProfileClick()

void PANEL_SETUP_TUNING_PROFILES::OnAddTuningProfileClick ( wxCommandEvent & event)
overridevirtual

Adds a new tuning profile entry to the tuning profile grid.

Reimplemented from PANEL_SETUP_TUNING_PROFILES_BASE.

Definition at line 130 of file panel_setup_tuning_profiles.cpp.

References PANEL_SETUP_TUNING_PROFILES_BASE::m_tuningProfiles, and PANEL_SETUP_TUNING_PROFILE_INFO.

◆ OnRemoveTuningProfileClick()

void PANEL_SETUP_TUNING_PROFILES::OnRemoveTuningProfileClick ( wxCommandEvent & event)
overridevirtual

Removes a tuning profile entry from the tuning profile grid.

Reimplemented from PANEL_SETUP_TUNING_PROFILES_BASE.

Definition at line 137 of file panel_setup_tuning_profiles.cpp.

References PANEL_SETUP_TUNING_PROFILES_BASE::m_tuningProfiles.

◆ SyncCopperLayers()

void PANEL_SETUP_TUNING_PROFILES::SyncCopperLayers ( int aNumCopperLayers)

Called when switching to this tab to make sure that any changes to the copper layer count made on the physical stackup page are reflected here.

Parameters
aNumCopperLayersis the number of copper layers in the board

Definition at line 98 of file panel_setup_tuning_profiles.cpp.

References LSET::AllCuMask(), m_board, m_copperIndexToLayerId, m_copperLayerIdsToIndex, m_layerNames, m_layerNamesToIDs, m_prevLayerNamesToIDs, PANEL_SETUP_TUNING_PROFILES_BASE::m_tuningProfiles, PANEL_SETUP_TUNING_PROFILE_INFO, and PANEL_SETUP_TUNING_PROFILE_INFO::UpdateLayerNames().

Referenced by TransferDataToWindow().

◆ TransferDataFromWindow()

bool PANEL_SETUP_TUNING_PROFILES::TransferDataFromWindow ( )
override

◆ TransferDataToWindow()

bool PANEL_SETUP_TUNING_PROFILES::TransferDataToWindow ( )
override

◆ UpdateProfileName()

void PANEL_SETUP_TUNING_PROFILES::UpdateProfileName ( PANEL_SETUP_TUNING_PROFILE_INFO * panel,
wxString newName ) const

Update the notebook display of the name for a given panel.

Definition at line 162 of file panel_setup_tuning_profiles.cpp.

References PANEL_SETUP_TUNING_PROFILES_BASE::m_tuningProfiles, and PANEL_SETUP_TUNING_PROFILE_INFO.

◆ Validate()

bool PANEL_SETUP_TUNING_PROFILES::Validate ( )
override

Friends And Related Symbol Documentation

◆ PANEL_SETUP_TUNING_PROFILE_INFO

Member Data Documentation

◆ m_addTuningProfileButton

STD_BITMAP_BUTTON* PANEL_SETUP_TUNING_PROFILES_BASE::m_addTuningProfileButton
protectedinherited

◆ m_board

BOARD* PANEL_SETUP_TUNING_PROFILES::m_board
private

The current board.

Definition at line 87 of file panel_setup_tuning_profiles.h.

Referenced by PANEL_SETUP_TUNING_PROFILES(), SyncCopperLayers(), and TransferDataToWindow().

◆ m_copperIndexToLayerId

std::map<int, PCB_LAYER_ID> PANEL_SETUP_TUNING_PROFILES::m_copperIndexToLayerId
private

Definition at line 93 of file panel_setup_tuning_profiles.h.

Referenced by SyncCopperLayers().

◆ m_copperLayerIdsToIndex

std::map<PCB_LAYER_ID, int> PANEL_SETUP_TUNING_PROFILES::m_copperLayerIdsToIndex
private

Definition at line 92 of file panel_setup_tuning_profiles.h.

Referenced by SyncCopperLayers().

◆ m_dlg

DIALOG_SHIM* PANEL_SETUP_TUNING_PROFILES::m_dlg
private

The parent dialog.

Definition at line 81 of file panel_setup_tuning_profiles.h.

Referenced by PANEL_SETUP_TUNING_PROFILES().

◆ m_frame

PCB_EDIT_FRAME* PANEL_SETUP_TUNING_PROFILES::m_frame
private

The active edit frame.

Definition at line 84 of file panel_setup_tuning_profiles.h.

Referenced by PANEL_SETUP_TUNING_PROFILES().

◆ m_layerNames

std::vector<wxString> PANEL_SETUP_TUNING_PROFILES::m_layerNames
private

Definition at line 94 of file panel_setup_tuning_profiles.h.

Referenced by SyncCopperLayers().

◆ m_layerNamesToIDs

std::map<wxString, PCB_LAYER_ID> PANEL_SETUP_TUNING_PROFILES::m_layerNamesToIDs
private

Definition at line 97 of file panel_setup_tuning_profiles.h.

Referenced by SyncCopperLayers().

◆ m_prevLayerNamesToIDs

std::map<wxString, PCB_LAYER_ID> PANEL_SETUP_TUNING_PROFILES::m_prevLayerNamesToIDs
private

Definition at line 98 of file panel_setup_tuning_profiles.h.

Referenced by SyncCopperLayers().

◆ m_removeTuningProfileButton

STD_BITMAP_BUTTON* PANEL_SETUP_TUNING_PROFILES_BASE::m_removeTuningProfileButton
protectedinherited

◆ m_tuningProfileParameters

std::shared_ptr<TUNING_PROFILES> PANEL_SETUP_TUNING_PROFILES::m_tuningProfileParameters
private

The parameters object to load / save data from / to.

Definition at line 78 of file panel_setup_tuning_profiles.h.

Referenced by ImportSettingsFrom(), PANEL_SETUP_TUNING_PROFILES(), TransferDataFromWindow(), and TransferDataToWindow().

◆ m_tuningProfiles

◆ m_unitsProvider

std::unique_ptr<UNITS_PROVIDER> PANEL_SETUP_TUNING_PROFILES::m_unitsProvider
private

Definition at line 89 of file panel_setup_tuning_profiles.h.

Referenced by PANEL_SETUP_TUNING_PROFILES().


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