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 m_listPanel =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
23 wxBoxSizer* listPanelSizer;
24 listPanelSizer =
new wxBoxSizer( wxVERTICAL );
26 wxBoxSizer* m_leftColumn;
27 m_leftColumn =
new wxBoxSizer( wxVERTICAL );
29 wxBoxSizer* searchSizer;
30 searchSizer =
new wxBoxSizer( wxHORIZONTAL );
32 m_filterCtrl =
new wxSearchCtrl(
m_listPanel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
37 searchSizer->Add(
m_filterCtrl, 1, wxALIGN_CENTER_VERTICAL, 1 );
40 searchSizer->Add( 10, 0, 0, wxEXPAND, 5 );
44 searchSizer->Add(
m_checkName, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
48 searchSizer->Add(
m_checkNet, 0, wxALIGN_CENTER_VERTICAL, 5 );
51 m_leftColumn->Add( searchSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
53 wxBoxSizer* layerFilterSizer;
54 layerFilterSizer =
new wxBoxSizer( wxHORIZONTAL );
60 wxArrayString m_layerFilterChoices;
63 layerFilterSizer->Add(
m_layerFilter, 1, wxALIGN_CENTER_VERTICAL, 0 );
66 m_leftColumn->Add( layerFilterSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
68 m_viewZonesOverview =
new wxDataViewCtrl(
m_listPanel, wxID_ANY, wxDefaultPosition, wxSize( -1,240 ), wxDV_HORIZ_RULES|wxDV_SINGLE|wxDV_VERT_RULES );
76 m_btnMoveTop->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.") );
81 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.") );
86 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.") );
91 m_btnMoveBottom->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.") );
99 m_btnAutoAssign->SetToolTip(
_(
"Automatically assign zone priorities based on connectivity analysis of overlapping regions.") );
104 m_leftColumn->Add(
m_sizerZoneOP, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
107 listPanelSizer->Add( m_leftColumn, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
115 m_zonePanel =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
116 wxBoxSizer* zonePanelSizer;
117 zonePanelSizer =
new wxBoxSizer( wxVERTICAL );
132 zonePanelSizer->Add(
m_rightColumn, 0, wxBOTTOM|wxEXPAND, 5 );
143 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
148 m_checkRepour =
new wxCheckBox(
this, wxID_ANY,
_(
"Refill zones"), wxDefaultPosition, wxDefaultSize, 0 );
149 m_checkRepour->SetToolTip(
_(
"Refill zones after changes made on board") );
156 m_updateDisplayedZones =
new wxButton(
this, wxID_ANY,
_(
"Update Displayed Zones"), wxDefaultPosition, wxDefaultSize, 0 );
157 m_updateDisplayedZones->SetToolTip(
_(
"Update filled areas shown in dialog, according to the new current settings") );