41#include <wx/stc/stc.h>
43#include <wx/scrolwin.h>
44#include <wx/toplevel.h>
48#include <drc_rules_lexer.h>
87 switch( aConstraintType )
94 default:
return false;
100 std::shared_ptr<DRC_RE_BASE_CONSTRAINT_DATA> aConstraintData ) :
120 m_nameCtrl->SetToolTip(
_(
"Name of this rule, must be unique" ) );
121 m_commentCtrl->SetToolTip(
_(
"Optional comment stored with the rule" ) );
136 wxBoxSizer* buttonSizer =
new wxBoxSizer( wxHORIZONTAL );
138 new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_END );
140 buttonSizer->Add(
m_matchReport, 1, wxALIGN_CENTER_VERTICAL | wxLEFT | wxRIGHT, 5 );
166 [
this]( wxKeyEvent& aEvent )
171 [
this]( wxStyledTextEvent& aEvent )
219 [
this]( wxCommandEvent& aEvent )
259 bool transferred =
true;
291 return wxEmptyString;
295 return wxEmptyString;
301 case LAYER_SEL_OUTER:
return DRC_RULES_LEXER::TokenName( DRCRULE_T::T_outer );
302 case LAYER_SEL_INNER:
return DRC_RULES_LEXER::TokenName( DRCRULE_T::T_inner );
307 if( layerValue >= 0 )
310 return wxEmptyString;
351 for( wxWindow* win = GetParent(); win; win = win->GetParent() )
355 units = frame->GetUserUnits();
360 switch( aConstraintType )
365 dynamic_pointer_cast<DRC_RE_VIA_STYLE_CONSTRAINT_DATA>(
m_constraintData ).get(),
371 dynamic_pointer_cast<DRC_RE_MINIMUM_TEXT_HEIGHT_THICKNESS_CONSTRAINT_DATA>(
m_constraintData ).get(),
377 dynamic_pointer_cast<DRC_RE_ROUTING_DIFF_PAIR_CONSTRAINT_DATA>(
m_constraintData ).get(),
383 dynamic_pointer_cast<DRC_RE_ROUTING_WIDTH_CONSTRAINT_DATA>(
m_constraintData ).get(),
389 dynamic_pointer_cast<DRC_RE_PERMITTED_LAYERS_CONSTRAINT_DATA>(
m_constraintData ).get() );
394 dynamic_pointer_cast<DRC_RE_ALLOWED_ORIENTATION_CONSTRAINT_DATA>(
m_constraintData ).get() );
398 aParent, dynamic_pointer_cast<DRC_RE_VIAS_UNDER_SMD_CONSTRAINT_DATA>(
m_constraintData ).get() );
402 aParent, dynamic_pointer_cast<DRC_RE_CUSTOM_RULE_CONSTRAINT_DATA>(
m_constraintData ) );
407 dynamic_pointer_cast<DRC_RE_MATCHED_LENGTH_DIFF_PAIR_CONSTRAINT_DATA>(
m_constraintData ).get(),
413 dynamic_pointer_cast<DRC_RE_ABSOLUTE_LENGTH_TWO_CONSTRAINT_DATA>(
m_constraintData ).get(),
421 dynamic_pointer_cast<DRC_RE_NUMERIC_INPUT_CONSTRAINT_DATA>(
m_constraintData ).get(),
428 dynamic_pointer_cast<DRC_RE_BOOL_INPUT_CONSTRAINT_DATA>(
m_constraintData ).get() );
511 if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKey() ==
' ' )
526 if( beginning.StartsWith( wxT(
"(condition " ) ) )
528 startPos = lineStart;
533 enum class EXPR_CONTEXT_T :
int
543 std::stack<wxString> sexprs;
546 EXPR_CONTEXT_T context = EXPR_CONTEXT_T::NONE;
547 EXPR_CONTEXT_T expr_context = EXPR_CONTEXT_T::NONE;
549 for(
int i = startPos; i < currentPos; ++i )
557 else if( context == EXPR_CONTEXT_T::STRING )
561 context = EXPR_CONTEXT_T::NONE;
565 if( expr_context == EXPR_CONTEXT_T::STRING )
568 expr_context = EXPR_CONTEXT_T::NONE;
575 partial = wxEmptyString;
576 expr_context = EXPR_CONTEXT_T::STRING;
580 partial = wxEmptyString;
581 expr_context = EXPR_CONTEXT_T::STRUCT_REF;
592 partial = wxEmptyString;
593 context = EXPR_CONTEXT_T::STRING;
597 if( context == EXPR_CONTEXT_T::SEXPR_OPEN && !partial.IsEmpty() )
600 sexprs.push( partial );
603 partial = wxEmptyString;
604 context = EXPR_CONTEXT_T::SEXPR_OPEN;
608 context = EXPR_CONTEXT_T::NONE;
612 if( context == EXPR_CONTEXT_T::SEXPR_OPEN && !partial.IsEmpty() )
615 sexprs.push( partial );
617 if( partial == wxT(
"condition" ) )
619 context = EXPR_CONTEXT_T::SEXPR_STRING;
623 context = EXPR_CONTEXT_T::NONE;
626 partial = wxEmptyString;
630 context = EXPR_CONTEXT_T::NONE;
640 if( context == EXPR_CONTEXT_T::SEXPR_OPEN )
644 tokens = wxT(
"condition" );
647 else if( context == EXPR_CONTEXT_T::SEXPR_TOKEN )
654 else if( context == EXPR_CONTEXT_T::SEXPR_STRING && !sexprs.empty() && sexprs.top() == wxT(
"condition" ) )
658 else if( context == EXPR_CONTEXT_T::STRING && !sexprs.empty() && sexprs.top() == wxT(
"condition" ) )
660 if( expr_context == EXPR_CONTEXT_T::STRUCT_REF )
663 std::set<wxString> propNames;
667 const std::vector<PROPERTY_BASE*>& props = propMgr.
GetProperties( cls.type );
674 if( prop->IsHiddenFromRulesEditor() )
677 wxString ref( prop->Name() );
678 ref.Replace( wxT(
" " ), wxT(
"_" ) );
679 propNames.insert( ref );
683 for(
const wxString& propName : propNames )
684 tokens += wxT(
"|" ) + propName;
690 if( !funcSig.Contains(
"DEPRECATED" ) )
691 tokens += wxT(
"|" ) + funcSig;
694 else if( expr_context == EXPR_CONTEXT_T::STRING )
696 static wxRegEx netClassRegex( wxS(
"^NetClass\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
697 static wxRegEx netNameRegex( wxS(
"^NetName\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
698 static wxRegEx typeRegex( wxS(
"^Type\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
699 static wxRegEx viaTypeRegex( wxS(
"^Via_Type\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
700 static wxRegEx padTypeRegex( wxS(
"^Pad_Type\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
701 static wxRegEx pinTypeRegex( wxS(
"^Pin_Type\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
702 static wxRegEx fabPropRegex( wxS(
"^Fabrication_Property\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
703 static wxRegEx shapeRegex( wxS(
"^Shape\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
704 static wxRegEx padShapeRegex( wxS(
"^Pad_Shape\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
705 static wxRegEx padConnectionsRegex( wxS(
"^Pad_Connections\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
706 static wxRegEx zoneConnStyleRegex( wxS(
"^Zone_Connection_Style\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
707 static wxRegEx lineStyleRegex( wxS(
"^Line_Style\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
708 static wxRegEx hJustRegex( wxS(
"^Horizontal_Justification\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
709 static wxRegEx vJustRegex( wxS(
"^Vertical_Justification\\s*[!=]=\\s*$" ), wxRE_ADVANCED );
711 if( netClassRegex.Matches( last ) )
714 std::shared_ptr<NET_SETTINGS>& netSettings = bds.
m_NetSettings;
716 for(
const auto& [
name, netclass] : netSettings->GetNetclasses() )
717 tokens += wxT(
"|" ) +
name;
719 else if( netNameRegex.Matches( last ) )
721 for(
const wxString& netnameCandidate :
m_board->GetNetClassAssignmentCandidates() )
722 tokens += wxT(
"|" ) + netnameCandidate;
724 else if( typeRegex.Matches( last ) )
726 tokens = wxT(
"Bitmap|"
740 else if( viaTypeRegex.Matches( last ) )
742 tokens = wxT(
"Through|"
746 else if( padTypeRegex.Matches( last ) )
748 tokens = wxT(
"Through-hole|"
751 "NPTH, mechanical" );
753 else if( pinTypeRegex.Matches( last ) )
755 tokens = wxT(
"Input|"
768 else if( fabPropRegex.Matches( last ) )
770 tokens = wxT(
"None|"
772 "Fiducial, global to board|"
773 "Fiducial, local to footprint|"
778 else if( shapeRegex.Matches( last ) )
780 tokens = wxT(
"Segment|"
787 else if( padShapeRegex.Matches( last ) )
789 tokens = wxT(
"Circle|"
794 "Chamfered rectangle|"
797 else if( padConnectionsRegex.Matches( last ) )
799 tokens = wxT(
"Inherited|"
803 "Thermal reliefs for PTH" );
805 else if( zoneConnStyleRegex.Matches( last ) )
807 tokens = wxT(
"Inherited|"
812 else if( lineStyleRegex.Matches( last ) )
814 tokens = wxT(
"Default|"
821 else if( hJustRegex.Matches( last ) )
823 tokens = wxT(
"Left|"
827 else if( vJustRegex.Matches( last ) )
836 if( !tokens.IsEmpty() )
849 std::vector<wxString> msg;
855 msg.emplace_back( t );
860 msg.emplace_back( t );
865 msg.emplace_back( t );
870 msg.emplace_back( t );
875 msg.emplace_back( t );
880 msg.emplace_back( t );
885 msg.emplace_back( t );
890 msg.emplace_back( t );
893 wxString msg_txt = wxEmptyString;
895 for( wxString i : msg )
896 msg_txt << wxGetTranslation( i );
899 msg_txt.Replace( wxT(
"Ctrl+" ), wxT(
"Cmd+" ) );
901 const wxString& msGg_txt = msg_txt;
906 wxString html_txt = wxEmptyString;
909 html_txt.Replace( wxS(
"<td" ), wxS(
"<td valign=top" ) );
923 if( condition.IsEmpty() )
925 wxString msg =
_(
"ERROR: No condition text provided for validation." );
933 std::vector<std::shared_ptr<DRC_RULE>> dummyRules;
934 wxString ruleTemplate =
L"(version 2)\n(rule default\n (condition \"%s\")\n)";
935 wxString formattedRule = wxString::Format( ruleTemplate, condition );
941 wxString msg = wxString::Format( wxT(
"%s <a href='%d:%d'>%s</a>" ),
954 wxString
link =
event.GetLinkInfo().GetHref();
956 long line = 0, offset = 0;
960 if( parts.size() > 1 )
962 parts[0].ToLong( &line );
963 parts[1].ToLong( &offset );
978 menu.Append( wxID_UNDO,
_(
"Undo" ) );
979 menu.Append( wxID_REDO,
_(
"Redo" ) );
981 menu.AppendSeparator();
983 menu.Append( 1,
_(
"Cut" ) );
984 menu.Append( 2,
_(
"Copy" ) );
985 menu.Append( 3,
_(
"Paste" ) );
986 menu.Append( 4,
_(
"Delete" ) );
988 menu.AppendSeparator();
990 menu.Append( 5,
_(
"Select All" ) );
992 menu.AppendSeparator();
994 menu.Append( wxID_ZOOM_IN,
_(
"Zoom In" ) );
995 menu.Append( wxID_ZOOM_OUT,
_(
"Zoom Out" ) );
998 switch( GetPopupMenuSelectionFromUser( menu ) )
1034 wxS(
"Show Matches clicked: nodeId=%d, rule='%s', code='%s'" ),
1042 if( matchCount < 0 )
1044 else if( matchCount == 0 )
1048 wxPLURAL(
"%d board item matches.",
"%d board items match.", matchCount ), matchCount ) );
1085 m_layerIDs.push_back(
static_cast<int>(
id ) );
1127 m_layerIDs.push_back(
static_cast<int>(
id ) );
1144 return wxEmptyString;
1148 if( selection <= 0 )
1149 return wxEmptyString;
1151 size_t index =
static_cast<size_t>( selection - 1 );
1154 return wxEmptyString;
1159 if( layerValue < 0 )
1161 switch( layerValue )
1164 return wxString::Format( wxS(
"(layer %s)" ), DRC_RULES_LEXER::TokenName( DRCRULE_T::T_outer ) );
1167 return wxString::Format( wxS(
"(layer %s)" ), DRC_RULES_LEXER::TokenName( DRCRULE_T::T_inner ) );
1176 return wxEmptyString;
1182 wxString clause = wxString::Format( wxS(
"(layer \"%s\")" ),
LSET::Name( layerId ) );
1202 if( layerValue < 0 )
1204 switch( layerValue )
1222 const wxString& aLayerSource )
1225 if( aLayerSource == DRC_RULES_LEXER::TokenName( DRCRULE_T::T_outer ) )
1227 for(
size_t i = 0; i <
m_layerIDs.size(); ++i )
1237 if( aLayerSource == DRC_RULES_LEXER::TokenName( DRCRULE_T::T_inner ) )
1239 for(
size_t i = 0; i <
m_layerIDs.size(); ++i )
1250 if( !aLayers.empty() )
1256 if( isFront || isBack )
1260 for(
size_t i = 0; i <
m_layerIDs.size(); ++i )
1272 if( aLayers.empty() )
1279 int target =
static_cast<int>( aLayers.front() );
1281 for(
size_t i = 0; i <
m_layerIDs.size(); ++i )
1296 for( wxWindow* window = aChild; window; window = window->GetParent() )
1308 if( aText.IsEmpty() )
1319 new wxStaticText(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_END );
1358 wxSizer* columns = item->GetSizer();
1363 for( wxSizerItem* column : columns->GetChildren() )
1369 wxFAIL_MSG( wxS(
"Constraint column not found; the generated layout has changed." ) );
1375 for( wxWindow* window = aWindow->GetParent(); window; window = window->GetParent() )
1379 if( wxScrolledWindow* scrolled =
dynamic_cast<wxScrolledWindow*
>( window ) )
1381 scrolled->FitInside();
1385 wxSize virtualSize = scrolled->GetVirtualSize();
1386 virtualSize.x = scrolled->GetClientSize().x;
1387 scrolled->SetVirtualSize( virtualSize );
1392 if(
dynamic_cast<wxTopLevelWindow*
>( window ) )
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
Container for design settings for a BOARD object.
std::shared_ptr< NET_SETTINGS > m_NetSettings
Information pertinent to a Pcbnew printed circuit board.
Overlay panel for absolute length constraints showing min, opt, and max length fields positioned over...
Overlay panel for allowed orientation constraints showing checkboxes for each orientation angle posit...
Container panel that manages multiple condition rows with boolean operators.
Simple panel used for editing custom rule text.
void UpdateRuleName(const wxString &aName)
Overlay panel for minimum text height and thickness constraints showing text dimension fields positio...
Overlay panel for permitted layers constraints showing checkboxes for top and bottom layer selection ...
Overlay panel for differential pair routing constraints showing gap, width, and uncoupled length fiel...
Overlay panel for routing width constraints showing min/preferred/max width fields positioned over a ...
Overlay panel for via style constraints showing via diameter and hole size fields positioned over a d...
void Parse(std::vector< std::shared_ptr< DRC_RULE > > &aRules, REPORTER *aReporter)
static bool IsNumericInputType(const DRC_RULE_EDITOR_CONSTRAINT_NAME &aConstraintType)
static wxString FormatErrorMessage(int aErrorCount, const wxString &aErrorMessage)
static wxString TranslateTopBottomLayer(DRC_RULE_EDITOR_CONSTRAINT_NAME aConstraintType, bool aIsTop)
Translate a top/bottom selection to the appropriate layer clause or condition.
static DRC_LAYER_CATEGORY GetLayerCategoryForConstraint(DRC_RULE_EDITOR_CONSTRAINT_NAME aConstraintType)
Get the layer category for a constraint type.
static PCB_LAYER_ID TopBottomLayerId(DRC_RULE_EDITOR_CONSTRAINT_NAME aConstraintType, bool aIsTop)
The layer a side of the board means for a constraint, which is not copper for every one.
static bool IsBoolInputType(const DRC_RULE_EDITOR_CONSTRAINT_NAME &aConstraintType)
The base frame for deriving all KiCad main window classes.
static wxString Name(PCB_LAYER_ID aLayerId)
Return the fixed name association with aLayerId.
static PAGED_DIALOG * GetDialog(wxWindow *aWindow)
wxStaticLine * m_staticline3
wxBoxSizer * m_conditionControlsSizer
wxBoxSizer * bContentSizer
wxBoxSizer * m_constraintSizer
wxHyperlinkCtrl * m_syntaxHelp
wxStaticText * m_conditionHeaderTitle
wxStaticText * m_staticText711
wxStaticText * m_constraintHeaderTitle
wxTextCtrl * m_commentCtrl
wxBoxSizer * m_LayersComboBoxSizer
wxStaticLine * m_staticline111
WX_HTML_REPORT_BOX * m_syntaxErrorReport
wxBoxSizer * m_constraintContentSizer
wxBitmapButton * m_checkSyntaxBtnCtrl
wxStaticLine * m_staticline8
PANEL_DRC_RULE_EDITOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxBORDER_NONE|wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxStyledTextCtrl * m_textConditionCtrl
std::shared_ptr< DRC_RE_BASE_CONSTRAINT_DATA > m_constraintData
wxString GenerateRule(const RULE_GENERATION_CONTEXT &aContext) override
void onScintillaCharAdded(wxStyledTextEvent &aEvent)
Handles character addition in the Scintilla text control, performing auto-complete and context-sensit...
static void LayoutAncestors(wxWindow *aWindow)
Lays out aWindow's parents, out to the page it scrolls in.
void onShowMatchesButtonClicked(wxCommandEvent &aEvent)
void onFieldChanged(wxEvent &aEvent)
void onCheckSyntax(wxCommandEvent &aEvent) override
Checks the syntax of the DRC rule condition and reports any errors.
std::function< void(int aNodeId)> m_callBackSave
wxString m_validationMessage
HTML_MESSAGE_BOX * m_helpWindow
static PANEL_DRC_RULE_EDITOR * FindEditor(wxWindow *aChild)
The rule editor that hosts aChild, or nullptr when it is not inside one.
void stretchConstraintColumn()
wxString getSelectedLayerSource() const
void onContextMenu(wxMouseEvent &aEvent) override
Handles right-click context menu actions for text editing (undo, redo, cut, copy, paste,...
PANEL_DRC_RULE_EDITOR(wxWindow *aParent, BOARD *aBoard, DRC_RULE_EDITOR_CONSTRAINT_NAME aConstraintType, std::shared_ptr< DRC_RE_BASE_CONSTRAINT_DATA > aConstraintData)
bool TransferDataFromWindow() override
wxString GetCondition() const
The condition the form currently describes, which is not yet the one the rule applies.
std::function< void()> m_callBackFieldChanged
void setSelectedLayers(const std::vector< PCB_LAYER_ID > &aLayers, const wxString &aLayerSource=wxEmptyString)
DRC_LAYER_CATEGORY m_layerCategory
wxButton * m_btnShowMatches
void onSyntaxHelp(wxHyperlinkEvent &aEvent) override
Displays a modeless help window with syntax and rule documentation.
std::vector< int > m_layerIDs
wxStaticText * m_matchReport
~PANEL_DRC_RULE_EDITOR() override
wxChoice * m_layerListChoiceCtrl
void populateLayerSelector(DRC_LAYER_CATEGORY aCategory)
DRC_RULE_EDITOR_CONSTRAINT_NAME m_constraintType
void SetOverrideNote(const wxString &aText)
Shows a line above the constraint saying what this rule displaces, or clears it when empty.
wxStaticText * m_overrideNote
bool m_validationSucceeded
void RelayoutHost()
Lays out the editor's parents, out to the page it scrolls in.
void onErrorLinkClicked(wxHtmlLinkEvent &aEvent) override
Handles clicks on error links in the syntax error report and navigates to the error location.
void OnEnterKey(wxCommandEvent &aEvent) override
std::function< int(int aNodeId)> m_callBackShowMatches
std::function< bool(int aNodeId, const wxString &aRuleName)> m_callBackRuleNameValidation
bool TransferDataToWindow() override
DRC_RE_CONDITION_GROUP_PANEL * m_conditionGroupPanel
std::unique_ptr< SCINTILLA_TRICKS > m_scintillaTricks
void Save(wxCommandEvent &aEvent)
void onSaveButtonClicked(wxCommandEvent &aEvent)
Handles the save button click event, validating inputs and invoking the save callback if valid.
DRC_RULE_EDITOR_CONTENT_PANEL_BASE * getConstraintPanel(wxWindow *aParent, const DRC_RULE_EDITOR_CONSTRAINT_NAME &aConstraintType)
std::vector< PCB_LAYER_ID > getSelectedLayers()
bool ValidateRule()
Runs the rule's validators and keeps the outcome, without applying anything.
wxString buildLayerClause() const
bool ValidateInputs(int *aErrorCount, wxString *aValidationMessage) override
DRC_RULE_EDITOR_CONTENT_PANEL_BASE * m_constraintPanel
const wxArrayString GetSignatures() const
static PCBEXPR_BUILTIN_FUNCTIONS & Instance()
const std::vector< PROPERTY_BASE * > & GetProperties(TYPE_ID aType) const
Return all properties for a specific type.
static PROPERTY_MANAGER & Instance()
std::vector< CLASS_INFO > GetAllClasses()
void SetBorders(bool aLeft, bool aRight, bool aTop, bool aBottom)
This file is part of the common library.
DRC_RULE_EDITOR_CONSTRAINT_NAME
@ MINIMUM_TEXT_HEIGHT_AND_THICKNESS
@ COPPER_TO_HOLE_CLEARANCE
@ MATCHED_LENGTH_DIFF_PAIR
DRC_LAYER_CATEGORY
Layer categories for filtering the layer selector dropdown.
@ NO_LAYER_SELECTOR
Hide layer selector entirely.
@ TOP_BOTTOM_ANY
Simplified top/bottom/any selector with custom translation.
@ SOLDERMASK_ONLY
F_Mask, B_Mask.
@ GENERAL_ANY_LAYER
All layers + inner/outer synthetic.
@ SOLDERPASTE_ONLY
F_Paste, B_Paste.
@ COPPER_ONLY
Copper layers + inner/outer synthetic.
@ SILKSCREEN_ONLY
F_SilkS, B_SilkS.
@ LAYER_SEL_BOTTOM
Context-dependent back/bottom layer.
@ LAYER_SEL_OUTER
External copper layers (F_Cu + B_Cu)
@ LAYER_SEL_TOP
Context-dependent front/top layer.
@ LAYER_SEL_INNER
Internal copper layers (In1_Cu through In30_Cu)
bool IsFrontLayer(PCB_LAYER_ID aLayerId)
Layer classification: check if it's a front layer.
bool IsBackLayer(PCB_LAYER_ID aLayerId)
Layer classification: check if it's a back layer.
PCB_LAYER_ID
A quick note on layer IDs:
KICOMMON_API wxFont GetInfoFont(wxWindow *aWindow)
static bool constraintNeedsTwoObjects(DRC_RULE_EDITOR_CONSTRAINT_NAME aConstraintType)
static constexpr const wxChar * KI_TRACE_DRC_RULE_EDITOR
void wxStringSplit(const wxString &aText, wxArrayString &aStrings, wxChar aSplitter)
Split aString to a string list separated at aSplitter.
void ConvertMarkdown2Html(const wxString &aMarkdownInput, wxString &aHtmlOutput)
A filename or source description, a problem input line, a line number, a byte offset,...
int lineNumber
at which line number, 1 based index.
const wxString ParseProblem()
int byteIndex
at which byte offset within the line, 1 based index
wxString conditionExpression