15PANEL_PCBNEW_ACTION_PLUGINS_BASE::PANEL_PCBNEW_ACTION_PLUGINS_BASE( wxWindow* parent, wxWindowID
id,
const wxPoint& pos,
const wxSize& size,
long style,
const wxString&
name ) : wxPanel( parent, id, pos, size, style,
name )
18 bSizer4 =
new wxBoxSizer( wxHORIZONTAL );
20 wxBoxSizer* bPanelSizer;
21 bPanelSizer =
new wxBoxSizer( wxVERTICAL );
23 wxBoxSizer* bGridSizer;
24 bGridSizer =
new wxBoxSizer( wxVERTICAL );
26 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
29 m_grid->CreateGrid( 3, 5 );
30 m_grid->EnableEditing(
false );
31 m_grid->EnableGridLines(
true );
32 m_grid->EnableDragGridSize(
false );
33 m_grid->SetMargins( 0, 0 );
37 m_grid->EnableDragColMove(
false );
38 m_grid->EnableDragColSize(
true );
39 m_grid->SetColLabelValue( 0,
_(
"Action") );
40 m_grid->SetColLabelValue( 1,
_(
"Show Button") );
41 m_grid->SetColLabelValue( 2,
_(
"Plugin") );
42 m_grid->SetColLabelValue( 3,
_(
"Description") );
43 m_grid->SetColLabelValue( 4, wxEmptyString );
45 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
48 m_grid->EnableDragRowSize(
true );
49 m_grid->SetRowLabelSize( 0 );
50 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
55 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
56 bGridSizer->Add(
m_grid, 1, wxBOTTOM|wxEXPAND|wxLEFT, 5 );
59 bPanelSizer->Add( bGridSizer, 1, wxEXPAND, 0 );
61 wxBoxSizer* bButtonsSizer;
62 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
67 bButtonsSizer->Add(
m_moveUpButton, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
75 bButtonsSizer->Add( 15, 0, 0, wxEXPAND, 5 );
93 bPanelSizer->Add( bButtonsSizer, 0, wxEXPAND|wxLEFT|wxTOP, 5 );
96 bSizer4->Add( bPanelSizer, 1, wxEXPAND, 5 );
99 this->SetSizer( bSizer4 );
101 bSizer4->Fit(
this );
virtual void OnMoveUpButtonClick(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_openDirectoryButton
virtual void OnMoveDownButtonClick(wxCommandEvent &event)
~PANEL_PCBNEW_ACTION_PLUGINS_BASE()
STD_BITMAP_BUTTON * m_moveUpButton
virtual void OnShowErrorsButtonClick(wxCommandEvent &event)
PANEL_PCBNEW_ACTION_PLUGINS_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 OnReloadButtonClick(wxCommandEvent &event)
virtual void OnOpenDirectoryButtonClick(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_moveDownButton
STD_BITMAP_BUTTON * m_showErrorsButton
virtual void OnGridCellClick(wxGridEvent &event)
STD_BITMAP_BUTTON * m_reloadButton
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...