15PANEL_DESIGN_BLOCK_LIB_TABLE_BASE::PANEL_DESIGN_BLOCK_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_migrate_libs_button =
new wxButton(
this, wxID_ANY,
_(
"Migrate Libraries"), wxDefaultPosition, wxDefaultSize, 0 );
160 bMainSizer->Add( bButtonsSizer, 0, wxEXPAND|wxALL, 8 );
162 wxStaticText* stPathsLabel;
163 stPathsLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Available path substitutions:"), wxDefaultPosition, wxDefaultSize, 0 );
164 stPathsLabel->Wrap( -1 );
165 bMainSizer->Add( stPathsLabel, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 8 );
168 bMainSizer->Add( 0, 2, 0, wxEXPAND, 5 );
197 m_path_subs_grid->SetToolTip(
_(
"This is a read-only table which shows pertinent environment variables.") );
199 bMainSizer->Add(
m_path_subs_grid, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
202 this->SetSizer( bMainSizer );
204 bMainSizer->Fit(
this );
wxPanel * m_project_panel
WX_GRID * m_path_subs_grid
virtual void moveDownHandler(wxCommandEvent &event)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void deleteRowHandler(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_move_up_button
STD_BITMAP_BUTTON * m_delete_button
virtual void onMigrateLibraries(wxCommandEvent &event)
virtual void appendRowHandler(wxCommandEvent &event)
virtual void onSizeGrid(wxSizeEvent &event)
wxButton * m_migrate_libs_button
SPLIT_BUTTON * m_browseButton
~PANEL_DESIGN_BLOCK_LIB_TABLE_BASE()
STD_BITMAP_BUTTON * m_append_button
PANEL_DESIGN_BLOCK_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 moveUpHandler(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_move_down_button
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...