14DIALOG_ZONE_MANAGER_BASE::DIALOG_ZONE_MANAGER_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
22 wxBoxSizer* leftColumn;
23 leftColumn =
new wxBoxSizer( wxVERTICAL );
25 wxBoxSizer* searchSizer;
26 searchSizer =
new wxBoxSizer( wxHORIZONTAL );
28 m_filterCtrl =
new wxSearchCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
33 searchSizer->Add(
m_filterCtrl, 1, wxALIGN_CENTER_VERTICAL, 1 );
36 searchSizer->Add( 10, 0, 0, wxEXPAND, 5 );
38 m_checkName =
new wxCheckBox(
this, wxID_ANY,
_(
"Name"), wxDefaultPosition, wxDefaultSize, 0 );
40 searchSizer->Add(
m_checkName, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
42 m_checkNet =
new wxCheckBox(
this, wxID_ANY,
_(
"Net"), wxDefaultPosition, wxDefaultSize, 0 );
44 searchSizer->Add(
m_checkNet, 0, wxALIGN_CENTER_VERTICAL, 5 );
47 leftColumn->Add( searchSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
49 m_viewZonesOverview =
new wxDataViewCtrl(
this, wxID_ANY, wxDefaultPosition, wxSize( -1,240 ), wxDV_HORIZ_RULES|wxDV_SINGLE|wxDV_VERT_RULES );
57 m_btnMoveUp->SetToolTip(
_(
"Top zone has the highest priority. When a zone is inside another zone, if its priority is higher, its outlines are removed from the other zone.") );
62 m_btnMoveDown->SetToolTip(
_(
"Top zone has the highest priority. When a zone is inside another zone, if its priority is higher, its outlines are removed from the other zone.") );
70 m_sizerTop->Add( leftColumn, 1, wxEXPAND|wxRIGHT|wxLEFT, 10 );
82 m_checkRepour =
new wxCheckBox(
this, wxID_ANY,
_(
"Refill zones"), wxDefaultPosition, wxDefaultSize, 0 );
83 m_checkRepour->SetToolTip(
_(
"Refill zones after changes made on board") );
90 m_updateDisplayedZones =
new wxButton(
this, wxID_ANY,
_(
"Update Displayed Zones"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_updateDisplayedZones->SetToolTip(
_(
"Update filled areas shown in dialog, according to the new current settings") );