40 std::vector<DRC_RE_FIELD_POSITION> positions =
m_data->GetFieldPositions();
42 wxWindow* eventSource =
nullptr;
44 for( wxWindow* win = aParent; win; win = win->GetParent() )
54 wxArrayString choices;
55 choices.Add(
_(
"Any" ) );
56 choices.Add(
_(
"Through" ) );
57 choices.Add(
_(
"Micro" ) );
58 choices.Add(
_(
"Blind" ) );
59 choices.Add(
_(
"Buried" ) );
61 m_viaTypeChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, choices );
67 auto* minViaDiameterField =
68 AddField<wxTextCtrl>( wxS(
"min_via_diameter" ), positions[0], wxTE_PROCESS_ENTER | wxTE_CENTRE );
70 std::make_unique<UNIT_BINDER>( &
m_unitsProvider, eventSource,
nullptr, minViaDiameterField->GetControl(),
71 minViaDiameterField->GetLabel(),
false,
false );
74 auto* maxViaDiameterField =
75 AddField<wxTextCtrl>( wxS(
"max_via_diameter" ), positions[1], wxTE_PROCESS_ENTER | wxTE_CENTRE );
77 std::make_unique<UNIT_BINDER>( &
m_unitsProvider, eventSource,
nullptr, maxViaDiameterField->GetControl(),
78 maxViaDiameterField->GetLabel(),
false,
false );
82 auto* minViaHoleField =
85 std::make_unique<UNIT_BINDER>( &
m_unitsProvider, eventSource,
nullptr, minViaHoleField->GetControl(),
86 minViaHoleField->GetLabel(),
false,
false );
89 auto* maxViaHoleField =
92 std::make_unique<UNIT_BINDER>( &
m_unitsProvider, eventSource,
nullptr, maxViaHoleField->GetControl(),
93 maxViaHoleField->GetLabel(),
false,
false );
wxString result
Test unit parsing edge cases and error handling.