15PANEL_FP_LIB_TABLE_BASE::PANEL_FP_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 );
57 m_global_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
62 m_global_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
71 wxBoxSizer* m_project_sizer;
72 m_project_sizer =
new wxBoxSizer( wxVERTICAL );
101 m_project_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
106 m_project_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
111 m_project_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
120 bMainSizer->Add(
m_notebook, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
122 wxBoxSizer* bButtonsSizer;
123 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
133 bButtonsSizer->Add(
m_browseButton, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
146 bButtonsSizer->Add( 20, 0, 0, wxEXPAND, 5 );
154 bButtonsSizer->Add( 20, 0, 1, wxEXPAND, 5 );
156 m_resetGlobal =
new wxButton(
this, wxID_ANY,
_(
"Reset Libraries"), wxDefaultPosition, wxDefaultSize, 0 );
160 bButtonsSizer->Add( 0, 0, 0, wxEXPAND, 5 );
162 m_migrate_libs_button =
new wxButton(
this, wxID_ANY,
_(
"Migrate Libraries"), wxDefaultPosition, wxDefaultSize, 0 );
166 bMainSizer->Add( bButtonsSizer, 0, wxEXPAND|wxALL, 8 );
168 wxStaticText* stPathsLabel;
169 stPathsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Available path substitutions:"), wxDefaultPosition, wxDefaultSize, 0 );
170 stPathsLabel->Wrap( -1 );
171 bMainSizer->Add( stPathsLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 8 );
174 bMainSizer->Add( 0, 2, 0, wxEXPAND, 5 );
203 m_path_subs_grid->SetToolTip(
_(
"This is a read-only table which shows pertinent environment variables.") );
205 bMainSizer->Add(
m_path_subs_grid, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
208 this->SetSizer( bMainSizer );
210 bMainSizer->Fit(
this );
STD_BITMAP_BUTTON * m_move_up_button
WX_GRID * m_path_subs_grid
~PANEL_FP_LIB_TABLE_BASE()
virtual void deleteRowHandler(wxCommandEvent &event)
virtual void appendRowHandler(wxCommandEvent &event)
wxButton * m_migrate_libs_button
virtual void onSizeGrid(wxSizeEvent &event)
STD_BITMAP_BUTTON * m_append_button
virtual void onPageChange(wxNotebookEvent &event)
wxPanel * m_project_panel
STD_BITMAP_BUTTON * m_move_down_button
STD_BITMAP_BUTTON * m_delete_button
SPLIT_BUTTON * m_browseButton
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void moveUpHandler(wxCommandEvent &event)
virtual void onMigrateLibraries(wxCommandEvent &event)
PANEL_FP_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)
virtual void onReset(wxCommandEvent &event)
virtual void moveDownHandler(wxCommandEvent &event)
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...