12DIALOG_IMPORTED_LAYERS_BASE::DIALOG_IMPORTED_LAYERS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18 wxBoxSizer* bSizerTop;
19 bSizerTop =
new wxBoxSizer( wxHORIZONTAL );
21 wxStaticBoxSizer* sbSizer1;
22 sbSizer1 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Unmatched Layers") ), wxHORIZONTAL );
24 wxFlexGridSizer* fgSizer1;
25 fgSizer1 =
new wxFlexGridSizer( 0, 2, 0, 0 );
26 fgSizer1->AddGrowableCol( 0 );
27 fgSizer1->AddGrowableCol( 1 );
28 fgSizer1->AddGrowableRow( 1 );
29 fgSizer1->SetFlexibleDirection( wxVERTICAL );
30 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
32 m_lblImportedLayers =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"Imported Layers"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_lblKicadLayers =
new wxStaticText( sbSizer1->GetStaticBox(), wxID_ANY,
_(
"KiCad Layers"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_unmatched_layers_list =
new wxListCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_NO_HEADER|wxLC_REPORT );
45 m_kicad_layers_list =
new wxListCtrl( sbSizer1->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_NO_HEADER|wxLC_REPORT|wxLC_SINGLE_SEL );
51 sbSizer1->Add( fgSizer1, 1, wxEXPAND, 5 );
54 bSizerTop->Add( sbSizer1, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
57 bSizer6 =
new wxBoxSizer( wxVERTICAL );
59 m_button_add =
new wxButton(
this, wxID_ANY,
_(
">"), wxDefaultPosition, wxSize( 36,100 ), 0 );
60 m_button_add->SetToolTip(
_(
"Add selected layers to matched layers list.") );
64 m_button_remove =
new wxButton(
this, wxID_ANY,
_(
"<"), wxDefaultPosition, wxSize( 36,100 ), 0 );
65 m_button_remove->SetToolTip(
_(
"Remove selected layers from matched layers list.") );
69 m_button_removeall =
new wxButton(
this, wxID_ANY,
_(
"<<"), wxDefaultPosition, wxSize( 36,50 ), 0 );
75 bSizerTop->Add( bSizer6, 0, wxEXPAND|wxTOP, 10 );
77 wxStaticBoxSizer* sbSizer3;
78 sbSizer3 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Matched Layers") ), wxHORIZONTAL );
80 m_matched_layers_list =
new wxListCtrl( sbSizer3->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxSize( -1,-1 ), wxLC_REPORT );
86 bSizerTop->Add( sbSizer3, 1, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
89 bSizerMain->Add( bSizerTop, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
91 wxBoxSizer* bSizerBottom;
92 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
94 m_button_automatch =
new wxButton(
this, wxID_ANY,
_(
"Auto-Match Layers"), wxDefaultPosition, wxDefaultSize, 0 );
95 m_button_automatch->SetToolTip(
_(
"Automatically match any unmatched layers to their KiCad equivalent.") );
104 bSizerBottom->Add(
m_sdbSizer, 1, wxEXPAND, 5 );
107 bSizerMain->Add( bSizerBottom, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxTOP, 5 );
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void OnMatchedDoubleClick(wxListEvent &event)
virtual void OnAutoMatchLayersClicked(wxCommandEvent &event)
wxListCtrl * m_matched_layers_list
virtual void OnAddClicked(wxCommandEvent &event)
virtual void OnUnMatchedDoubleClick(wxListEvent &event)
~DIALOG_IMPORTED_LAYERS_BASE()
wxButton * m_button_automatch
virtual void OnRemoveClicked(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnRemoveAllClicked(wxCommandEvent &event)
DIALOG_IMPORTED_LAYERS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Edit Mapping of Imported Layers"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnClose(wxCloseEvent &event)
wxStaticText * m_lblImportedLayers
wxStaticText * m_lblKicadLayers
wxListCtrl * m_unmatched_layers_list
wxListCtrl * m_kicad_layers_list
wxButton * m_button_remove
wxButton * m_button_removeall
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...