43 bool aShowObjectSelector ) :
47 wxLogTrace(
TRACE_COND, wxS(
"[DRC_RE_CONDITION_ROW_PANEL] ctor START" ) );
57 wxArrayString objectChoices;
58 objectChoices.Add(
_(
"Object A" ) );
59 objectChoices.Add(
_(
"Object B" ) );
61 m_objectChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, objectChoices );
63 m_objectChoice->SetToolTip(
_(
"Which of the two compared objects this condition applies to" ) );
68 for(
const wxString& choice : objectChoices )
76 if( !aShowObjectSelector )
80 wxArrayString conditionChoices;
81 conditionChoices.Add(
_(
"Any" ) );
82 conditionChoices.Add(
_(
"Net" ) );
83 conditionChoices.Add(
_(
"Netclass" ) );
84 conditionChoices.Add(
_(
"Within Area" ) );
85 conditionChoices.Add(
_(
"Custom Query" ) );
87 m_conditionChoice =
new wxChoice(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, conditionChoices );
116 m_customQueryCtrl =
new wxStyledTextCtrl(
this, wxID_ANY, wxDefaultPosition, wxSize( -1, 60 ) );
117 m_customQueryCtrl->SetToolTip(
_(
"Custom match expression in the DRC rule language" ) );
132 []( wxKeyEvent& aEvent )
136 []( wxStyledTextEvent& aEvent )
147 m_deleteBtn->SetToolTip(
_(
"Remove this condition" ) );
150 wxLogTrace(
TRACE_COND, wxS(
"[DRC_RE_CONDITION_ROW_PANEL] setting sizer" ) );
162 wxLogTrace(
TRACE_COND, wxS(
"[DRC_RE_CONDITION_ROW_PANEL] ctor END" ) );
KICOMMON_API wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...