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, wxEXPAND|wxBOTTOM, 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, wxEXPAND|wxTOP|wxBOTTOM, 3 );
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|wxTOP|wxRIGHT, 5 );
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") );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
virtual void OnMoveUpClick(wxCommandEvent &event)
virtual void onDialogResize(wxSizeEvent &event)
wxCheckBox * m_checkRepour
STD_BITMAP_BUTTON * m_btnMoveUp
virtual void OnUpdateDisplayedZonesClick(wxCommandEvent &event)
wxBoxSizer * m_sizerBottom
virtual void OnFilterCtrlCancel(wxCommandEvent &event)
virtual void OnViewZonesOverviewOnLeftUp(wxMouseEvent &event)
virtual void OnOk(wxCommandEvent &event)
virtual void OnTableCharHook(wxKeyEvent &event)
~DIALOG_ZONE_MANAGER_BASE()
virtual void OnTableChar(wxKeyEvent &event)
wxButton * m_updateDisplayedZones
wxStdDialogButtonSizer * m_sdbSizer
wxBoxSizer * m_sizerProperties
DIALOG_ZONE_MANAGER_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Zone Manager"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(556, 369), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnMoveDownClick(wxCommandEvent &event)
virtual void OnRepourCheck(wxCommandEvent &event)
virtual void OnFilterCtrlTextChange(wxCommandEvent &event)
virtual void OnDataViewCtrlSelectionChanged(wxDataViewEvent &event)
wxButton * m_sdbSizerCancel
wxBoxSizer * m_sizerZoneOP
wxBoxSizer * m_MainBoxSizer
wxSearchCtrl * m_filterCtrl
wxDataViewCtrl * m_viewZonesOverview
virtual void OnFilterCtrlSearch(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_btnMoveDown
virtual void OnFilterCtrlEnter(wxCommandEvent &event)