14PANEL_DRC_RULE_EDITOR_BASE::PANEL_DRC_RULE_EDITOR_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
16 wxBoxSizer* mainSizer;
17 mainSizer =
new wxBoxSizer( wxHORIZONTAL );
23 wxFlexGridSizer* fgSizer2;
24 fgSizer2 =
new wxFlexGridSizer( 1, 4, 5, 0 );
25 fgSizer2->AddGrowableCol( 1 );
26 fgSizer2->AddGrowableCol( 3 );
27 fgSizer2->SetFlexibleDirection( wxBOTH );
28 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30 m_nameLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Name"), wxDefaultPosition, wxDefaultSize, 0 );
32 fgSizer2->Add(
m_nameLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
34 m_nameCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
35 fgSizer2->Add(
m_nameCtrl, 0, wxALL|wxEXPAND, 5 );
37 m_commentLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Comment"), wxDefaultPosition, wxDefaultSize, 0 );
39 fgSizer2->Add(
m_commentLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
41 m_commentCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
56 m_staticline3 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
67 wxBoxSizer* bConditionSizer;
68 bConditionSizer =
new wxBoxSizer( wxVERTICAL );
71 bSizer13 =
new wxBoxSizer( wxHORIZONTAL );
73 m_conditionHeaderTitle =
new wxStaticText(
this, wxID_ANY,
_(
"Conditions"), wxDefaultPosition, wxDefaultSize, 0 );
78 bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
80 m_syntaxHelp =
new wxHyperlinkCtrl(
this, wxID_ANY,
_(
"Syntax help"), wxT(
"http://www.wxformbuilder.org"), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
84 bConditionSizer->Add( bSizer13, 0, wxEXPAND, 5 );
86 m_staticline8 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
87 bConditionSizer->Add(
m_staticline8, 0, wxEXPAND | wxALL, 5 );
91 m_textConditionCtrl =
new wxStyledTextCtrl(
this, wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), 0, wxEmptyString );
106 m_textConditionCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDER, wxColour( wxT(
"BLACK") ) );
107 m_textConditionCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDER, wxColour( wxT(
"WHITE") ) );
109 m_textConditionCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT(
"BLACK") ) );
110 m_textConditionCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPEN, wxColour( wxT(
"WHITE") ) );
113 m_textConditionCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT(
"BLACK") ) );
114 m_textConditionCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEREND, wxColour( wxT(
"WHITE") ) );
116 m_textConditionCtrl->MarkerSetBackground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT(
"BLACK") ) );
117 m_textConditionCtrl->MarkerSetForeground( wxSTC_MARKNUM_FOLDEROPENMID, wxColour( wxT(
"WHITE") ) );
120 m_textConditionCtrl->SetSelBackground(
true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) );
121 m_textConditionCtrl->SetSelForeground(
true, wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
126 wxBoxSizer* bSizer16;
127 bSizer16 =
new wxBoxSizer( wxHORIZONTAL );
129 m_checkSyntaxBtnCtrl =
new wxBitmapButton(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
148 wxBoxSizer* bLayerSizer;
149 bLayerSizer =
new wxBoxSizer( wxVERTICAL );
151 m_staticText711 =
new wxStaticText(
this, wxID_ANY,
_(
"Layer"), wxDefaultPosition, wxDefaultSize, 0 );
153 bLayerSizer->Add(
m_staticText711, 0, wxALL|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
155 m_staticline111 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
170 this->SetSizer( mainSizer );
172 mainSizer->Fit(
this );