15PANEL_SETUP_RULES_BASE::PANEL_SETUP_RULES_BASE( wxWindow* parent, wxWindowID 
id, 
const wxPoint& pos, 
const wxSize& size, 
long style, 
const wxString& 
name ) : wxPanel( parent, id, pos, size, style, 
name )
 
   17    wxBoxSizer* bPanelSizer;
 
   18    bPanelSizer = 
new wxBoxSizer( wxVERTICAL );
 
   21    bSizer4 = 
new wxBoxSizer( wxHORIZONTAL );
 
   23    m_title = 
new wxStaticText( 
this, wxID_ANY, 
_(
"DRC Rules"), wxDefaultPosition, wxDefaultSize, 0 );
 
   25    bSizer4->Add( 
m_title, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT|wxTOP, 5 );
 
   28    bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
 
   30    m_syntaxHelp = 
new wxHyperlinkCtrl( 
this, wxID_ANY, 
_(
"Syntax help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
 
   33    bSizer4->Add( 
m_syntaxHelp, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
 
   36    bPanelSizer->Add( bSizer4, 0, wxEXPAND, 5 );
 
   40    m_textEditor = 
new wxStyledTextCtrl( 
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, wxEmptyString );
 
   54    m_textEditor->MarkerDefine( wxSTC_MARKNUM_FOLDER, wxSTC_MARK_BOXPLUS );
 
   55    m_textEditor->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT(
"BLACK") ) );
 
   56    m_textEditor->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT(
"WHITE") ) );
 
   57    m_textEditor->MarkerDefine( wxSTC_MARKNUM_FOLDEROPEN, wxSTC_MARK_BOXMINUS );
 
   58    m_textEditor->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT(
"BLACK") ) );
 
   59    m_textEditor->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT(
"WHITE") ) );
 
   60    m_textEditor->MarkerDefine( wxSTC_MARKNUM_FOLDERSUB, wxSTC_MARK_EMPTY );
 
   61    m_textEditor->MarkerDefine( wxSTC_MARKNUM_FOLDEREND, wxSTC_MARK_BOXPLUS );
 
   62    m_textEditor->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT(
"BLACK") ) );
 
   63    m_textEditor->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT(
"WHITE") ) );
 
   64    m_textEditor->MarkerDefine( wxSTC_MARKNUM_FOLDEROPENMID, wxSTC_MARK_BOXMINUS );
 
   65    m_textEditor->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT(
"BLACK") ) );
 
   66    m_textEditor->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT(
"WHITE") ) );
 
   67    m_textEditor->MarkerDefine( wxSTC_MARKNUM_FOLDERMIDTAIL, wxSTC_MARK_EMPTY );
 
   68    m_textEditor->MarkerDefine( wxSTC_MARKNUM_FOLDERTAIL, wxSTC_MARK_EMPTY );
 
   69    m_textEditor->SetSelBackground( 
true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
 
   70    m_textEditor->SetSelForeground( 
true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
 
   74    bSizer5 = 
new wxBoxSizer( wxHORIZONTAL );
 
   84    bSizer5->Add( 
m_errorsReport, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
 
   93    this->SetSizer( bPanelSizer );
 
   95    bPanelSizer->Fit( 
this );