15PANEL_SYM_LIB_TABLE_BASE::PANEL_SYM_LIB_TABLE_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
17 wxBoxSizer* bMainSizer;
18 bMainSizer =
new wxBoxSizer( wxVERTICAL );
20 m_notebook =
new wxNotebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
22 wxBoxSizer* m_global_sizer;
23 m_global_sizer =
new wxBoxSizer( wxVERTICAL );
52 m_global_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
58 m_global_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
63 m_global_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
72 wxBoxSizer* m_project_sizer;
73 m_project_sizer =
new wxBoxSizer( wxVERTICAL );
102 m_project_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
107 m_project_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
112 m_project_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
123 bMainSizer->Add(
m_notebook, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
125 wxBoxSizer* bButtonsSizer;
126 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
149 bButtonsSizer->Add( 20, 0, 0, wxEXPAND, 5 );
157 bButtonsSizer->Add( 0, 0, 1, wxEXPAND, 5 );
159 m_resetGlobal =
new wxButton(
this, wxID_ANY,
_(
"Reset Libraries"), wxDefaultPosition, wxDefaultSize, 0 );
163 bButtonsSizer->Add( 0, 0, 0, wxEXPAND, 5 );
165 m_convertLegacy =
new wxButton(
this, wxID_ANY,
_(
"Migrate Libraries"), wxDefaultPosition, wxDefaultSize, 0 );
166 bButtonsSizer->Add(
m_convertLegacy, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
169 bMainSizer->Add( bButtonsSizer, 0, wxEXPAND|wxALL, 3 );
172 bMainSizer->Add( 0, 5, 0, wxEXPAND, 5 );
174 wxStaticText* stPathsLabel;
175 stPathsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Available path substitutions:"), wxDefaultPosition, wxDefaultSize, 0 );
176 stPathsLabel->Wrap( -1 );
177 bMainSizer->Add( stPathsLabel, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 8 );
180 bMainSizer->Add( 0, 2, 0, wxEXPAND, 5 );
209 m_path_subs_grid->SetToolTip(
_(
"This is a read-only table which shows pertinent environment variables.") );
211 bMainSizer->Add(
m_path_subs_grid, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
214 this->SetSizer( bMainSizer );
216 bMainSizer->Fit(
this );
PANEL_SYM_LIB_TABLE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
STD_BITMAP_BUTTON * m_browse_button
~PANEL_SYM_LIB_TABLE_BASE()
virtual void onSizeGrid(wxSizeEvent &event)
STD_BITMAP_BUTTON * m_move_up_button
virtual void appendRowHandler(wxCommandEvent &event)
wxButton * m_convertLegacy
virtual void browseLibrariesHandler(wxCommandEvent &event)
wxPanel * m_project_panel
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void onPageChange(wxNotebookEvent &event)
STD_BITMAP_BUTTON * m_delete_button
virtual void moveUpHandler(wxCommandEvent &event)
virtual void moveDownHandler(wxCommandEvent &event)
virtual void onConvertLegacyLibraries(wxCommandEvent &event)
virtual void deleteRowHandler(wxCommandEvent &event)
virtual void onReset(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_move_down_button
STD_BITMAP_BUTTON * m_append_button
WX_GRID * m_path_subs_grid
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...