33 const std::set<wxString> aCandidateNetNames,
34 const std::function<
void(
const std::vector<wxString>& )>& aPreviewer ) :
37 m_netCandidates( aCandidateNetNames ),
38 m_previewer( aPreviewer )
44 for(
const auto& [
name, netclass] : netSettings->GetNetclasses() )
57 m_info->SetLabel( wxT(
"Note: complete netclass assignments can be edited in Board Setup > Project." ) );
72 netSettings->SetNetclassPatternAssignment(
m_patternCtrl->GetValue(),
87 std::vector<wxString> matchingNetNames;
89 if( !pattern.IsEmpty() )
100 matchingNetNames.push_back( net );
Class DIALOG_ASSIGN_NETCLASS_BASE.
WX_HTML_REPORT_BOX * m_matchingNets
wxComboBox * m_netclassCtrl
wxTextCtrl * m_patternCtrl
void onPatternText(wxCommandEvent &aEvent) override
std::function< void(const std::vector< wxString > &)> m_previewer
DIALOG_ASSIGN_NETCLASS(EDA_BASE_FRAME *aParent, const wxString aNetName, const std::set< wxString > aCandidateNetNames, const std::function< void(const std::vector< wxString > &)> &aPreviewer)
bool TransferDataFromWindow() override
std::set< wxString > m_netCandidates
void SetupStandardButtons(std::map< int, wxString > aLabels={})
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
The base frame for deriving all KiCad main window classes.
FRAME_T GetFrameType() const
bool StartsWith(const wxString &aTerm)
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
static const char Default[]
the name of the default NETCLASS
std::shared_ptr< NET_SETTINGS > m_NetSettings
Net settings for this project (owned here)
virtual PROJECT_FILE & GetProjectFile() const
void Clear()
Delete the stored messages.
REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED) override
Report a string with a given severity.
void Flush()
Build the HTML messages page.
Base window classes and related definitions.
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)