103 std::vector<std::pair<BOOL_OPERATOR, wxString>>& aParts );
Information pertinent to a Pcbnew printed circuit board.
std::vector< CONDITION_ENTRY > m_conditions
bool HasCustomQuerySelected() const
wxStaticText * m_labelText
std::function< void()> m_changeCallback
void onAddClicked(wxCommandEvent &aEvent)
bool tokenizeCondition(const wxString &aExpr, std::vector< std::pair< BOOL_OPERATOR, wxString > > &aParts)
Tokenize a condition expression by boolean operators.
void ParseCondition(const wxString &aConditionExpr)
Parse a condition string and populate the UI.
DRC_RE_CONDITION_GROUP_PANEL(wxWindow *aParent, BOARD *aBoard, bool aTwoObjectConstraint)
wxBitmapButton * m_addBtn
void addConditionRow(BOOL_OPERATOR aOp=BOOL_OPERATOR::AND)
void removeConditionRow(int aIndex)
wxString BuildCondition() const
Build a condition string from the current UI state.
bool m_twoObjectConstraint
void SetChangeCallback(std::function< void()> aCallback)
Set a callback to be invoked when any condition changes.
void updateDeleteButtonVisibility()
A single condition row in the condition group panel.
DRC_RE_CONDITION_ROW_PANEL * panel
wxChoice * operatorChoice