15DIALOG_CONFIG_EQUFILES_BASE::DIALOG_CONFIG_EQUFILES_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
19 wxBoxSizer* bMainSizer;
20 bMainSizer =
new wxBoxSizer( wxVERTICAL );
22 wxBoxSizer* bUpperSizer;
23 bUpperSizer =
new wxBoxSizer( wxVERTICAL );
25 wxStaticText* listLabel;
26 listLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Footprint association files:"), wxDefaultPosition, wxDefaultSize, 0 );
27 listLabel->Wrap( -1 );
28 bUpperSizer->Add( listLabel, 0, wxBOTTOM, 2 );
30 m_filesListBox =
new wxListBox(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, wxLB_EXTENDED|wxLB_HSCROLL|wxLB_NEEDED_SB|wxLB_SINGLE );
38 m_bpAdd->SetToolTip(
_(
"Add association file") );
53 m_bpEdit->SetToolTip(
_(
"Edit association file") );
61 m_bpDelete->SetToolTip(
_(
"Remove association file") );
69 bUpperSizer->Add( 0, 25, 0, wxEXPAND, 5 );
71 wxStaticText* envVarsLabel;
72 envVarsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Available path substitutions:"), wxDefaultPosition, wxDefaultSize, 0 );
73 envVarsLabel->Wrap( -1 );
74 bUpperSizer->Add( envVarsLabel, 0, wxBOTTOM, 2 );
91 m_gridEnvVars->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
97 m_gridEnvVars->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
102 m_gridEnvVars->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
106 bMainSizer->Add( bUpperSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
115 bMainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
118 this->SetSizer( bMainSizer );
120 bMainSizer->Fit(
this );
122 this->Centre( wxBOTH );
STD_BITMAP_BUTTON * m_bpMoveUp
virtual void OnOkClick(wxCommandEvent &event)
virtual void OnAddFiles(wxCommandEvent &event)
~DIALOG_CONFIG_EQUFILES_BASE()
wxBoxSizer * bButtonsSizer
STD_BITMAP_BUTTON * m_bpAdd
virtual void OnButtonMoveDown(wxCommandEvent &event)
virtual void OnCloseWindow(wxCloseEvent &event)
virtual void OnEditEquFile(wxCommandEvent &event)
wxButton * m_sdbSizerCancel
STD_BITMAP_BUTTON * m_bpMoveDown
virtual void OnRemoveFiles(wxCommandEvent &event)
DIALOG_CONFIG_EQUFILES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxListBox * m_filesListBox
STD_BITMAP_BUTTON * m_bpEdit
wxStdDialogButtonSizer * m_sdbSizer
STD_BITMAP_BUTTON * m_bpDelete
virtual void OnButtonMoveUp(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...