25#ifndef PANEL_SETUP_TIME_DOMAIN_PARAMETERS_H
26#define PANEL_SETUP_TIME_DOMAIN_PARAMETERS_H
42 std::shared_ptr<TIME_DOMAIN_PARAMETERS> aTimeDomainParameters );
62 void ImportSettingsFrom(
const std::shared_ptr<TIME_DOMAIN_PARAMETERS>& aOtherParameters );
88 const wxString& aNewName = wxEmptyString )
const;
Information pertinent to a Pcbnew printed circuit board.
NET_SETTINGS stores various net-related settings in a project context.
Class PANEL_SETUP_TIME_DOMAIN_PARAMETERS_BASE.
wxString getProfileNameForProfileGridRow(int aRow) const
Gets the profile name for the given profile grid row.
std::map< wxString, PCB_LAYER_ID > m_prevLayerNamesToIDs
std::map< wxString, PCB_LAYER_ID > m_layerNamesToIDs
bool TransferDataFromWindow() override
Save parameter data to the settings object.
void updateViaGridColumns()
Update the dynamic (per-layer) columns in the via overrides grid.
void OnAddViaOverrideClick(wxCommandEvent &event) override
Adds a new via override profile entry to the via overrides grid.
PCB_EDIT_FRAME * m_frame
The active edit frame.
std::vector< wxString > m_layerNames
std::map< int, PCB_LAYER_ID > m_copperColumnsToLayerId
void OnRemoveViaOverrideClick(wxCommandEvent &event) override
Removes a via override profile entry from the via overrides grid.
void OnAddDelayProfileClick(wxCommandEvent &event) override
Adds a new tuning profile entry to the tuning profile grid.
void addProfileRow(const DELAY_PROFILE &aDelayProfile)
Adds a tuning profile row with the given persisted parameters.
bool Validate() override
Validates all data.
void setColumnWidths()
Optimise grid columns to fit titles and content.
void addViaRow(const wxString &aProfileName, const DELAY_PROFILE_VIA_OVERRIDE_ENTRY &aViaOverrideEntry) const
Adds a via override row with the given persisted parameters.
void ImportSettingsFrom(const std::shared_ptr< TIME_DOMAIN_PARAMETERS > &aOtherParameters)
Load configuration from the given settings object.
~PANEL_SETUP_TIME_DOMAIN_PARAMETERS() override
PROFILE_GRID_REQUIRED_COLS
@ PROFILE_GRID_PROFILE_NAME
@ PROFILE_GRID_NUM_REQUIRED_COLS
@ PROFILE_GRID_VIA_PROP_DELAY
@ VIA_GRID_VIA_LAYER_FROM
@ VIA_GRID_SIGNAL_LAYER_FROM
@ VIA_GRID_SIGNAL_LAYER_TO
bool validateDelayProfileName(int aRow, const wxString &aName, bool focusFirst=true)
Validates a tuning profile name (checks for not empty and not duplicated)
void updateProfileGridColumns()
Update the dynamic (per-layer) columns in the tuning profiles grid.
DELAY_PROFILE getProfileRow(int aRow)
Gets a tuning profile row as a set of persistable parameters.
BOARD * m_board
The current board.
std::shared_ptr< TIME_DOMAIN_PARAMETERS > m_timeDomainParameters
The parameters object to load / save data from / to.
void updateViaProfileNamesEditor(const wxString &aOldName=wxEmptyString, const wxString &aNewName=wxEmptyString) const
Updates the via override tuning profile name dropdown lists Updates entries if aOldName and aNewName ...
bool validateViaRows()
Validates all via override rows.
void OnDelayProfileGridCellChanging(wxGridEvent &event)
Validates a tuning profile row data.
DELAY_PROFILE_VIA_OVERRIDE_ENTRY getViaRow(int aRow)
Gets a via override row as a set of persistable parameters.
void OnRemoveDelayProfileClick(wxCommandEvent &event) override
Removes a tuning profile entry from the tuning profile grid.
bool TransferDataToWindow() override
Load parameter data from the settings object.
std::map< PCB_LAYER_ID, int > m_copperLayerIdsToColumns
void SyncCopperLayers(int aNumCopperLayers)
Called when switching to this tab to make sure that any changes to the copper layer count made on the...
std::unique_ptr< UNITS_PROVIDER > m_unitsProvider
std::vector< wxString > GetDelayProfileNames() const
Returns all configured tuning profile names. Used by the netclass setup panel.
The main frame for Pcbnew.
Represents a single line in the time domain configuration via overrides configuration grid.
Represents a single line in the time domain configuration net class configuration grid.