KiCad PCB EDA Suite
|
#include <panel_setup_tuning_profiles.h>
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_BUTTON * | m_addTuningProfileButton |
STD_BITMAP_BUTTON * | m_removeTuningProfileButton |
Private Attributes | |
std::shared_ptr< TUNING_PROFILES > | m_tuningProfileParameters |
The parameters object to load / save data from / to. | |
DIALOG_SHIM * | m_dlg |
The parent dialog. | |
PCB_EDIT_FRAME * | m_frame |
The active edit frame. | |
BOARD * | m_board |
The current board. | |
std::unique_ptr< UNITS_PROVIDER > | m_unitsProvider |
std::map< PCB_LAYER_ID, int > | m_copperLayerIdsToIndex |
std::map< int, PCB_LAYER_ID > | m_copperIndexToLayerId |
std::vector< wxString > | m_layerNames |
std::map< wxString, PCB_LAYER_ID > | m_layerNamesToIDs |
std::map< wxString, PCB_LAYER_ID > | m_prevLayerNamesToIDs |
Friends | |
class | PANEL_SETUP_TUNING_PROFILE_INFO |
Definition at line 36 of file panel_setup_tuning_profiles.h.
PANEL_SETUP_TUNING_PROFILES::PANEL_SETUP_TUNING_PROFILES | ( | wxWindow * | aParentWindow, |
PCB_EDIT_FRAME * | aFrame, | ||
BOARD * | aBoard, | ||
std::shared_ptr< TUNING_PROFILES > | aTimeDomainParameters ) |
Definition at line 37 of file panel_setup_tuning_profiles.cpp.
References GetBoard(), GetUserUnits(), KiBitmapBundle(), PANEL_SETUP_TUNING_PROFILES_BASE::m_addTuningProfileButton, m_board, m_dlg, m_frame, PANEL_SETUP_TUNING_PROFILES_BASE::m_removeTuningProfileButton, m_tuningProfileParameters, m_unitsProvider, move, PANEL_SETUP_TUNING_PROFILES_BASE::PANEL_SETUP_TUNING_PROFILES_BASE(), pcbIUScale, small_plus, and small_trash.
|
override |
Definition at line 56 of file panel_setup_tuning_profiles.cpp.
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.
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().
|
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.
|
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.
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.
aNumCopperLayers | is 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().
|
override |
Save parameter data to the settings object.
Definition at line 79 of file panel_setup_tuning_profiles.cpp.
References PANEL_SETUP_TUNING_PROFILE_INFO::GetProfile(), m_tuningProfileParameters, PANEL_SETUP_TUNING_PROFILES_BASE::m_tuningProfiles, PANEL_SETUP_TUNING_PROFILE_INFO, and Validate().
|
override |
Load parameter data from the settings object.
Definition at line 61 of file panel_setup_tuning_profiles.cpp.
References PANEL_SETUP_TUNING_PROFILE_INFO::LoadProfile(), m_board, m_tuningProfileParameters, PANEL_SETUP_TUNING_PROFILES_BASE::m_tuningProfiles, PANEL_SETUP_TUNING_PROFILE_INFO, and SyncCopperLayers().
Referenced by ImportSettingsFrom().
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.
|
override |
Validates all data.
Definition at line 147 of file panel_setup_tuning_profiles.cpp.
References PANEL_SETUP_TUNING_PROFILES_BASE::m_tuningProfiles, PANEL_SETUP_TUNING_PROFILE_INFO, and PANEL_SETUP_TUNING_PROFILE_INFO::ValidateProfile().
Referenced by TransferDataFromWindow().
|
friend |
Definition at line 39 of file panel_setup_tuning_profiles.h.
References PANEL_SETUP_TUNING_PROFILE_INFO.
Referenced by GetDelayProfileNames(), OnAddTuningProfileClick(), PANEL_SETUP_TUNING_PROFILE_INFO, SyncCopperLayers(), TransferDataFromWindow(), TransferDataToWindow(), UpdateProfileName(), and Validate().
|
protectedinherited |
Definition at line 40 of file panel_setup_tuning_profiles_base.h.
Referenced by PANEL_SETUP_TUNING_PROFILES::PANEL_SETUP_TUNING_PROFILES(), and PANEL_SETUP_TUNING_PROFILES_BASE().
|
private |
The current board.
Definition at line 87 of file panel_setup_tuning_profiles.h.
Referenced by PANEL_SETUP_TUNING_PROFILES(), SyncCopperLayers(), and TransferDataToWindow().
|
private |
Definition at line 93 of file panel_setup_tuning_profiles.h.
Referenced by SyncCopperLayers().
|
private |
Definition at line 92 of file panel_setup_tuning_profiles.h.
Referenced by SyncCopperLayers().
|
private |
The parent dialog.
Definition at line 81 of file panel_setup_tuning_profiles.h.
Referenced by PANEL_SETUP_TUNING_PROFILES().
|
private |
The active edit frame.
Definition at line 84 of file panel_setup_tuning_profiles.h.
Referenced by PANEL_SETUP_TUNING_PROFILES().
|
private |
Definition at line 94 of file panel_setup_tuning_profiles.h.
Referenced by SyncCopperLayers().
|
private |
Definition at line 97 of file panel_setup_tuning_profiles.h.
Referenced by SyncCopperLayers().
|
private |
Definition at line 98 of file panel_setup_tuning_profiles.h.
Referenced by SyncCopperLayers().
|
protectedinherited |
Definition at line 41 of file panel_setup_tuning_profiles_base.h.
Referenced by PANEL_SETUP_TUNING_PROFILES::PANEL_SETUP_TUNING_PROFILES(), and PANEL_SETUP_TUNING_PROFILES_BASE().
|
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().
|
protectedinherited |
Definition at line 39 of file panel_setup_tuning_profiles_base.h.
Referenced by PANEL_SETUP_TUNING_PROFILES::GetDelayProfileNames(), PANEL_SETUP_TUNING_PROFILES::OnAddTuningProfileClick(), PANEL_SETUP_TUNING_PROFILES::OnRemoveTuningProfileClick(), PANEL_SETUP_TUNING_PROFILES_BASE(), PANEL_SETUP_TUNING_PROFILES::SyncCopperLayers(), PANEL_SETUP_TUNING_PROFILES::TransferDataFromWindow(), PANEL_SETUP_TUNING_PROFILES::TransferDataToWindow(), PANEL_SETUP_TUNING_PROFILES::UpdateProfileName(), and PANEL_SETUP_TUNING_PROFILES::Validate().
|
private |
Definition at line 89 of file panel_setup_tuning_profiles.h.
Referenced by PANEL_SETUP_TUNING_PROFILES().