KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_setup_rules.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright (C) 2020-2023 KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, you may find one here:
18 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
19 * or you may search the http://www.gnu.org website for the version 2 license,
20 * or you may write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
22 */
23
24#include <bitmaps.h>
25#include <confirm.h>
27#include <pcb_edit_frame.h>
28#include <pcb_expr_evaluator.h>
29#include <board.h>
31#include <project.h>
32#include <string_utils.h>
33#include <tool/tool_manager.h>
34#include <panel_setup_rules.h>
37#include <scintilla_tricks.h>
38#include <drc/drc_rule_parser.h>
39#include <tools/drc_tool.h>
40#include <pgm_base.h>
41
42PANEL_SETUP_RULES::PANEL_SETUP_RULES( wxWindow* aParentWindow, PCB_EDIT_FRAME* aFrame ) :
43 PANEL_SETUP_RULES_BASE( aParentWindow ),
44 m_frame( aFrame ),
45 m_scintillaTricks( nullptr ),
46 m_helpWindow( nullptr )
47{
48 m_scintillaTricks = new SCINTILLA_TRICKS( m_textEditor, wxT( "()" ), false,
49 [this]()
50 {
51 wxPostEvent( PAGED_DIALOG::GetDialog( this ),
52 wxCommandEvent( wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK ) );
53 } );
54
55 m_textEditor->AutoCompSetSeparator( '|' );
56
57 m_netClassRegex.Compile( "^NetClass\\s*[!=]=\\s*$", wxRE_ADVANCED );
58 m_netNameRegex.Compile( "^NetName\\s*[!=]=\\s*$", wxRE_ADVANCED );
59 m_typeRegex.Compile( "^Type\\s*[!=]=\\s*$", wxRE_ADVANCED );
60 m_viaTypeRegex.Compile( "^Via_Type\\s*[!=]=\\s*$", wxRE_ADVANCED );
61 m_padTypeRegex.Compile( "^Pad_Type\\s*[!=]=\\s*$", wxRE_ADVANCED );
62 m_pinTypeRegex.Compile( "^Pin_Type\\s*[!=]=\\s*$", wxRE_ADVANCED );
63 m_fabPropRegex.Compile( "^Fabrication_Property\\s*[!=]=\\s*$", wxRE_ADVANCED );
64 m_shapeRegex.Compile( "^Shape\\s*[!=]=\\s*$", wxRE_ADVANCED );
65
66 m_compileButton->SetBitmap( KiBitmap( BITMAPS::drc ) );
67
68 m_textEditor->SetZoom( Pgm().GetCommonSettings()->m_Appearance.text_editor_zoom );
69
70 m_textEditor->UsePopUp( 0 );
71 m_textEditor->Bind( wxEVT_STC_CHARADDED, &PANEL_SETUP_RULES::onScintillaCharAdded, this );
72 m_textEditor->Bind( wxEVT_STC_AUTOCOMP_CHAR_DELETED, &PANEL_SETUP_RULES::onScintillaCharAdded, this );
73 m_textEditor->Bind( wxEVT_CHAR_HOOK, &PANEL_SETUP_RULES::onCharHook, this );
74}
75
76
78{
79 Pgm().GetCommonSettings()->m_Appearance.text_editor_zoom = m_textEditor->GetZoom();
80
81 delete m_scintillaTricks;
82
83 if( m_helpWindow )
84 m_helpWindow->Destroy();
85};
86
87
88void PANEL_SETUP_RULES::onCharHook( wxKeyEvent& aEvent )
89{
90 if( aEvent.GetKeyCode() == WXK_ESCAPE && !m_textEditor->AutoCompActive() )
91 {
92 if( m_originalText != m_textEditor->GetText() )
93 {
94 if( !IsOK( this, _( "Cancel Changes?" ) ) )
95 return;
96 }
97 }
98
99 aEvent.Skip();
100}
101
102
103void PANEL_SETUP_RULES::OnContextMenu(wxMouseEvent &event)
104{
105 wxMenu menu;
106
107 menu.Append( wxID_UNDO, _( "Undo" ) );
108 menu.Append( wxID_REDO, _( "Redo" ) );
109
110 menu.AppendSeparator();
111
112 menu.Append( 1, _( "Cut" ) ); // Don't use wxID_CUT, wxID_COPY, etc. On Mac (at least),
113 menu.Append( 2, _( "Copy" ) ); // wxWidgets never delivers them to us.
114 menu.Append( 3, _( "Paste" ) );
115 menu.Append( 4, _( "Delete" ) );
116
117 menu.AppendSeparator();
118
119 menu.Append( 5, _( "Select All" ) );
120
121 menu.AppendSeparator();
122
123 menu.Append( wxID_ZOOM_IN, _( "Zoom In" ) );
124 menu.Append( wxID_ZOOM_OUT, _( "Zoom Out" ) );
125
126
127 switch( GetPopupMenuSelectionFromUser( menu ) )
128 {
129 case wxID_UNDO:
130 m_textEditor->Undo();
131 break;
132 case wxID_REDO:
133 m_textEditor->Redo();
134 break;
135
136 case 1:
137 m_textEditor->Cut();
138 break;
139 case 2:
140 m_textEditor->Copy();
141 break;
142 case 3:
143 m_textEditor->Paste();
144 break;
145 case 4:
146 {
147 long from, to;
148 m_textEditor->GetSelection( &from, &to );
149
150 if( to > from )
151 m_textEditor->DeleteRange( from, to );
152
153 break;
154 }
155
156 case 5:
157 m_textEditor->SelectAll();
158 break;
159
160 case wxID_ZOOM_IN:
161 m_textEditor->ZoomIn();
162 break;
163 case wxID_ZOOM_OUT:
164 m_textEditor->ZoomOut();
165 break;
166 }
167}
168
169
170void PANEL_SETUP_RULES::onScintillaCharAdded( wxStyledTextEvent &aEvent )
171{
173 m_textEditor->SearchAnchor();
174
175 wxString rules = m_textEditor->GetText();
176 int currentPos = m_textEditor->GetCurrentPos();
177 int startPos = 0;
178
179 for( int line = m_textEditor->LineFromPosition( currentPos ); line > 0; line-- )
180 {
181 int lineStart = m_textEditor->PositionFromLine( line );
182 wxString beginning = m_textEditor->GetTextRange( lineStart, lineStart + 10 );
183
184 if( beginning.StartsWith( wxT( "(rule " ) ) )
185 {
186 startPos = lineStart;
187 break;
188 }
189 }
190
191 enum
192 {
193 NONE,
194 STRING,
195 SEXPR_OPEN,
196 SEXPR_TOKEN,
197 SEXPR_STRING,
198 STRUCT_REF
199 };
200
201 auto isDisallowToken =
202 []( const wxString& token ) -> bool
203 {
204 return token == wxT( "buried_via" )
205 || token == wxT( "graphic" )
206 || token == wxT( "hole" )
207 || token == wxT( "micro_via" )
208 || token == wxT( "pad" )
209 || token == wxT( "text" )
210 || token == wxT( "track" )
211 || token == wxT( "via" )
212 || token == wxT( "zone" );
213 };
214
215 std::stack<wxString> sexprs;
216 wxString partial;
217 wxString last;
218 int context = NONE;
219 int expr_context = NONE;
220
221 for( int i = startPos; i < currentPos; ++i )
222 {
223 wxChar c = m_textEditor->GetCharAt( i );
224
225 if( c == '\\' )
226 {
227 i++; // skip escaped char
228 }
229 else if( context == STRING )
230 {
231 if( c == '"' )
232 {
233 context = NONE;
234 }
235 else
236 {
237 if( expr_context == STRING )
238 {
239 if( c == '\'' )
240 expr_context = NONE;
241 else
242 partial += c;
243 }
244 else if( c == '\'' )
245 {
246 last = partial;
247 partial = wxEmptyString;
248 expr_context = STRING;
249 }
250 else if( c == '.' )
251 {
252 partial = wxEmptyString;
253 expr_context = STRUCT_REF;
254 }
255 else
256 {
257 partial += c;
258 }
259 }
260 }
261 else if( c == '"' )
262 {
263 last = partial;
264 partial = wxEmptyString;
265 context = STRING;
266 }
267 else if( c == '(' )
268 {
269 if( context == SEXPR_OPEN && !partial.IsEmpty() )
270 {
271 m_textEditor->AutoCompCancel();
272 sexprs.push( partial );
273 }
274
275 partial = wxEmptyString;
276 context = SEXPR_OPEN;
277 }
278 else if( c == ')' )
279 {
280 while( !sexprs.empty() && ( sexprs.top() == wxT( "assertion" )
281 || sexprs.top() == wxT( "disallow" )
282 || isDisallowToken( sexprs.top() )
283 || sexprs.top() == wxT( "min_resolved_spokes" )
284 || sexprs.top() == wxT( "zone_connection" ) ) )
285 {
286 sexprs.pop();
287 }
288
289 if( !sexprs.empty() )
290 sexprs.pop();
291
292 context = NONE;
293 }
294 else if( c == ' ' )
295 {
296 if( context == SEXPR_OPEN && ( partial == wxT( "constraint" )
297 || partial == wxT( "disallow" )
298 || partial == wxT( "layer" )
299 || partial == wxT( "severity" ) ) )
300 {
301 m_textEditor->AutoCompCancel();
302 sexprs.push( partial );
303
304 partial = wxEmptyString;
305 context = SEXPR_TOKEN;
306 continue;
307 }
308 else if( partial == wxT( "disallow" )
309 || isDisallowToken( partial )
310 || partial == wxT( "min_resolved_spokes" )
311 || partial == wxT( "zone_connection" ) )
312 {
313 m_textEditor->AutoCompCancel();
314 sexprs.push( partial );
315
316 partial = wxEmptyString;
317 context = SEXPR_TOKEN;
318 continue;
319 }
320 else if( partial == wxT( "rule" )
321 || partial == wxT( "assertion" )
322 || partial == wxT( "condition" ) )
323 {
324 m_textEditor->AutoCompCancel();
325 sexprs.push( partial );
326
327 partial = wxEmptyString;
328 context = SEXPR_STRING;
329 continue;
330 }
331
332 context = NONE;
333 }
334 else
335 {
336 partial += c;
337 }
338 }
339
340 wxString tokens;
341
342 if( context == SEXPR_OPEN )
343 {
344 if( sexprs.empty() )
345 {
346 tokens = wxT( "rule|"
347 "version" );
348 }
349 else if( sexprs.top() == wxT( "rule" ) )
350 {
351 tokens = wxT( "condition|"
352 "constraint|"
353 "layer|"
354 "severity" );
355 }
356 else if( sexprs.top() == wxT( "constraint" ) )
357 {
358 tokens = wxT( "max|min|opt" );
359 }
360 }
361 else if( context == SEXPR_TOKEN )
362 {
363 if( sexprs.empty() )
364 {
365 /* badly formed grammar */
366 }
367 else if( sexprs.top() == wxT( "constraint" ) )
368 {
369 tokens = wxT( "annular_width|"
370 "assertion|"
371 "clearance|"
372 "connection_width|"
373 "courtyard_clearance|"
374 "diff_pair_gap|"
375 "diff_pair_uncoupled|"
376 "disallow|"
377 "edge_clearance|"
378 "length|"
379 "hole_clearance|"
380 "hole_size|"
381 "hole_to_hole|"
382 "min_resolved_spokes|"
383 "physical_clearance|"
384 "physical_hole_clearance|"
385 "silk_clearance|"
386 "skew|"
387 "text_height|"
388 "text_thickness|"
389 "thermal_relief_gap|"
390 "thermal_spoke_width|"
391 "track_width|"
392 "via_count|"
393 "via_diameter|"
394 "zone_connection" );
395 }
396 else if( sexprs.top() == wxT( "disallow" ) || isDisallowToken( sexprs.top() ) )
397 {
398 tokens = wxT( "buried_via|"
399 "graphic|"
400 "hole|"
401 "micro_via|"
402 "pad|"
403 "text|"
404 "track|"
405 "via|"
406 "zone" );
407 }
408 else if( sexprs.top() == wxT( "zone_connection" ) )
409 {
410 tokens = wxT( "none|solid|thermal_reliefs" );
411 }
412 else if( sexprs.top() == wxT( "min_resolved_spokes" ) )
413 {
414 tokens = wxT( "0|1|2|3|4" );
415 }
416 else if( sexprs.top() == wxT( "layer" ) )
417 {
418 tokens = wxT( "inner|outer|\"x\"" );
419 }
420 else if( sexprs.top() == wxT( "severity" ) )
421 {
422 tokens = wxT( "warning|error|ignore|exclusion" );
423 }
424 }
425 else if( context == SEXPR_STRING && !sexprs.empty()
426 && ( sexprs.top() == wxT( "condition" ) || sexprs.top() == wxT( "assertion" ) ) )
427 {
428 m_textEditor->AddText( wxT( "\"" ) );
429 }
430 else if( context == STRING && !sexprs.empty()
431 && ( sexprs.top() == wxT( "condition" ) || sexprs.top() == wxT( "assertion" ) ) )
432 {
433 if( expr_context == STRUCT_REF )
434 {
436 std::set<wxString> propNames;
437
438 for( const PROPERTY_MANAGER::CLASS_INFO& cls : propMgr.GetAllClasses() )
439 {
440 const PROPERTY_LIST& props = propMgr.GetProperties( cls.type );
441
442 for( PROPERTY_BASE* prop : props )
443 {
444 // TODO: It would be nice to replace IsHiddenFromRulesEditor with a nickname
445 // system, so that two different properies don't need to be created. This is
446 // a bigger change than I want to make right now, though.
447 if( prop->IsHiddenFromRulesEditor() )
448 continue;
449
450 wxString ref( prop->Name() );
451 ref.Replace( wxT( " " ), wxT( "_" ) );
452 propNames.insert( ref );
453 }
454 }
455
456 for( const wxString& propName : propNames )
457 tokens += wxT( "|" ) + propName;
458
460
461 for( const wxString& funcSig : functions.GetSignatures() )
462 {
463 if( !funcSig.Contains( "DEPRECATED" ) )
464 tokens += wxT( "|" ) + funcSig;
465 }
466 }
467 else if( expr_context == STRING )
468 {
469 if( m_netClassRegex.Matches( last ) )
470 {
472 std::shared_ptr<NET_SETTINGS>& netSettings = bds.m_NetSettings;
473
474 for( const auto& [ name, netclass ] : netSettings->m_NetClasses )
475 tokens += wxT( "|" ) + name;
476 }
477 else if( m_netNameRegex.Matches( last ) )
478 {
479 BOARD* board = m_frame->GetBoard();
480
481 for( const wxString& netnameCandidate : board->GetNetClassAssignmentCandidates() )
482 tokens += wxT( "|" ) + netnameCandidate;
483 }
484 else if( m_typeRegex.Matches( last ) )
485 {
486 tokens = wxT( "Bitmap|"
487 "Dimension|"
488 "Footprint|"
489 "Graphic|"
490 "Group|"
491 "Leader|"
492 "Pad|"
493 "Target|"
494 "Text|"
495 "Text Box|"
496 "Track|"
497 "Via|"
498 "Zone" );
499 }
500 else if( m_viaTypeRegex.Matches( last ) )
501 {
502 tokens = wxT( "Through|"
503 "Blind/buried|"
504 "Micro" );
505 }
506 else if( m_padTypeRegex.Matches( last ) )
507 {
508 tokens = wxT( "Through-hole|"
509 "SMD|"
510 "Edge connector|"
511 "NPTH, mechanical" );
512 }
513 else if( m_pinTypeRegex.Matches( last ) )
514 {
515 tokens = wxT( "Input|"
516 "Output|"
517 "Bidirectional|"
518 "Tri-state|"
519 "Passive|"
520 "Free|"
521 "Unspecified|"
522 "Power input|"
523 "Power output|"
524 "Open collector|"
525 "Open emitter|"
526 "Unconnected" );
527 }
528 else if( m_fabPropRegex.Matches( last ) )
529 {
530 tokens = wxT( "None|"
531 "BGA pad|"
532 "Fiducial, global to board|"
533 "Fiducial, local to footprint|"
534 "Test point pad|"
535 "Heatsink pad|"
536 "Castellated pad" );
537 }
538 else if( m_shapeRegex.Matches( last ) )
539 {
540 tokens = wxT( "Segment|"
541 "Rectangle|"
542 "Arc|"
543 "Circle|"
544 "Polygon|"
545 "Bezier" );
546 }
547 }
548 }
549
550 if( !tokens.IsEmpty() )
551 m_scintillaTricks->DoAutocomplete( partial, wxSplit( tokens, '|' ) );
552}
553
554
555void PANEL_SETUP_RULES::OnCompile( wxCommandEvent& event )
556{
558
559 try
560 {
561 std::vector<std::shared_ptr<DRC_RULE>> dummyRules;
562
563 DRC_RULES_PARSER parser( m_textEditor->GetText(), _( "DRC rules" ) );
564
565 parser.Parse( dummyRules, m_errorsReport );
566 }
567 catch( PARSE_ERROR& pe )
568 {
569 wxString msg = wxString::Format( wxT( "%s <a href='%d:%d'>%s</a>%s" ),
570 _( "ERROR:" ),
571 pe.lineNumber,
572 pe.byteIndex,
573 pe.ParseProblem(),
574 wxEmptyString );
575
577 }
578
580}
581
582
583void PANEL_SETUP_RULES::OnErrorLinkClicked( wxHtmlLinkEvent& event )
584{
585 wxString link = event.GetLinkInfo().GetHref();
586 wxArrayString parts;
587 long line = 0, offset = 0;
588
589 wxStringSplit( link, parts, ':' );
590
591 if( parts.size() > 1 )
592 {
593 parts[0].ToLong( &line );
594 parts[1].ToLong( &offset );
595 }
596
597 int pos = m_textEditor->PositionFromLine( line - 1 ) + ( offset - 1 );
598
599 m_textEditor->GotoPos( pos );
600
601 m_textEditor->SetFocus();
602}
603
604
606{
607 wxFileName rulesFile( m_frame->GetDesignRulesPath() );
608
609 if( rulesFile.FileExists() )
610 {
611 wxTextFile file( rulesFile.GetFullPath() );
612
613 if( file.Open() )
614 {
615 for ( wxString str = file.GetFirstLine(); !file.Eof(); str = file.GetNextLine() )
616 {
618 m_textEditor->AddText( str << '\n' );
619 }
620
621 m_textEditor->EmptyUndoBuffer();
622
623 wxCommandEvent dummy;
624 OnCompile( dummy );
625 }
626 }
627
628 m_originalText = m_textEditor->GetText();
629
630 if( m_frame->Prj().IsNullProject() )
631 {
632 m_textEditor->ClearAll();
633 m_textEditor->AddText( _( "Design rules cannot be added without a project" ) );
634 m_textEditor->Disable();
635 }
636
637 return true;
638}
639
640
642{
643 if( m_originalText == m_textEditor->GetText() )
644 return true;
645
646 if( m_frame->Prj().IsNullProject() )
647 return true;
648
649 wxString rulesFilepath = m_frame->GetDesignRulesPath();
650
651 try
652 {
653 if( m_textEditor->SaveFile( rulesFilepath ) )
654 {
655 m_frame->GetBoard()->GetDesignSettings().m_DRCEngine->InitEngine( rulesFilepath );
656 return true;
657 }
658 }
659 catch( PARSE_ERROR& )
660 {
661 // Don't lock them in to the Setup dialog if they have bad rules. They've already
662 // saved them so we can allow an exit.
663 return true;
664 }
665
666 return false;
667}
668
669
670void PANEL_SETUP_RULES::OnSyntaxHelp( wxHyperlinkEvent& aEvent )
671{
672 if( m_helpWindow )
673 {
675 return;
676 }
677
678 wxString msg =
680 ;
681
682#ifdef __WXMAC__
683 msg.Replace( wxT( "Ctrl+" ), wxT( "Cmd+" ) );
684#endif
685
686 m_helpWindow = new HTML_MESSAGE_BOX( nullptr, _( "Syntax Help" ) );
687 m_helpWindow->SetDialogSizeInDU( 320, 320 );
688
689 wxString html_txt;
690 ConvertMarkdown2Html( wxGetTranslation( msg ), html_txt );
691 m_helpWindow->AddHTML_Text( html_txt );
692
694}
const char * name
Definition: DXF_plotter.cpp:56
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
Definition: bitmap.cpp:106
Container for design settings for a BOARD object.
std::shared_ptr< NET_SETTINGS > m_NetSettings
std::shared_ptr< DRC_ENGINE > m_DRCEngine
Information pertinent to a Pcbnew printed circuit board.
Definition: board.h:270
std::set< wxString > GetNetClassAssignmentCandidates() const
Return the set of netname candidates for netclass assignment.
Definition: board.cpp:1578
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
Definition: board.cpp:728
void Parse(std::vector< std::shared_ptr< DRC_RULE > > &aRules, REPORTER *aReporter)
void SetDialogSizeInDU(int aWidth, int aHeight)
Set the dialog size, using a "logical" value.
void AddHTML_Text(const wxString &message)
Add HTML text (without any change) to message list.
void ShowModeless()
Show a modeless version of the dialog (without an OK button).
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
void SetModified()
Definition: paged_dialog.h:42
static PAGED_DIALOG * GetDialog(wxWindow *aWindow)
Class PANEL_SETUP_RULES_BASE.
wxStyledTextCtrl * m_textEditor
WX_HTML_REPORT_BOX * m_errorsReport
wxBitmapButton * m_compileButton
bool TransferDataToWindow() override
void OnErrorLinkClicked(wxHtmlLinkEvent &event) override
void onScintillaCharAdded(wxStyledTextEvent &aEvent)
PCB_EDIT_FRAME * m_frame
void OnContextMenu(wxMouseEvent &event) override
~PANEL_SETUP_RULES() override
HTML_MESSAGE_BOX * m_helpWindow
void OnCompile(wxCommandEvent &event) override
bool TransferDataFromWindow() override
void OnSyntaxHelp(wxHyperlinkEvent &aEvent) override
PANEL_SETUP_RULES(wxWindow *aParentWindow, PCB_EDIT_FRAME *aFrame)
void onCharHook(wxKeyEvent &aEvent)
SCINTILLA_TRICKS * m_scintillaTricks
wxString GetDesignRulesPath()
Return the absolute path to the design rules file for the currently-loaded board.
BOARD * GetBoard() const
The main frame for Pcbnew.
const wxArrayString GetSignatures() const
static PCB_EXPR_BUILTIN_FUNCTIONS & Instance()
virtual bool IsNullProject() const
Check if this project is a null project (i.e.
Definition: project.cpp:138
Provide class metadata.Helper macro to map type hashes to names.
Definition: property_mgr.h:74
CLASSES_INFO GetAllClasses()
const PROPERTY_LIST & GetProperties(TYPE_ID aType) const
Return all properties for a specific type.
static PROPERTY_MANAGER & Instance()
Definition: property_mgr.h:76
Add cut/copy/paste, dark theme, autocomplete and brace highlighting to a wxStyleTextCtrl instance.
void DoAutocomplete(const wxString &aPartial, const wxArrayString &aTokens)
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.
bool IsOK(wxWindow *aParent, const wxString &aMessage)
Display a yes/no dialog with aMessage and returns the user response.
Definition: confirm.cpp:363
This file is part of the common library.
#define _(s)
@ NONE
Definition: kibis.h:53
see class PGM_BASE
std::vector< PROPERTY_BASE * > PROPERTY_LIST
Definition: property_mgr.h:48
@ RPT_SEVERITY_ERROR
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
Definition: single_top.cpp:115
std::vector< FAB_LAYER_COLOR > dummy
bool ConvertSmartQuotesAndDashes(wxString *aString)
Convert curly quotes and em/en dashes to straight quotes and dashes.
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,...
Definition: ki_exception.h:119
int lineNumber
at which line number, 1 based index.
Definition: ki_exception.h:120
const wxString ParseProblem()
Definition: ki_exception.h:150
int byteIndex
at which byte offset within the line, 1 based index
Definition: ki_exception.h:121