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 )
17 wxBoxSizer* bPanelSizer;
18 bPanelSizer =
new wxBoxSizer( wxVERTICAL );
20 wxBoxSizer* bGridSizer;
21 bGridSizer =
new wxBoxSizer( wxVERTICAL );
23 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
26 m_grid->CreateGrid( 3, 6 );
27 m_grid->EnableEditing(
false );
28 m_grid->EnableGridLines(
true );
29 m_grid->EnableDragGridSize(
false );
30 m_grid->SetMargins( 0, 0 );
34 m_grid->EnableDragColMove(
false );
35 m_grid->EnableDragColSize(
true );
36 m_grid->SetColLabelValue( 0,
_(
"Icon") );
37 m_grid->SetColLabelValue( 1,
_(
"Show Button") );
38 m_grid->SetColLabelValue( 2,
_(
"Name") );
39 m_grid->SetColLabelValue( 3,
_(
"Category") );
40 m_grid->SetColLabelValue( 4,
_(
"Description") );
41 m_grid->SetColLabelValue( 5,
_(
"Path") );
43 m_grid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
46 m_grid->EnableDragRowSize(
true );
47 m_grid->SetRowLabelSize( 0 );
48 m_grid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
53 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
54 bGridSizer->Add(
m_grid, 1, wxBOTTOM|wxEXPAND|wxLEFT, 5 );
57 bPanelSizer->Add( bGridSizer, 1, wxEXPAND, 0 );
59 wxBoxSizer* bButtonsSizer;
60 bButtonsSizer =
new wxBoxSizer( wxHORIZONTAL );
65 bButtonsSizer->Add(
m_moveUpButton, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
73 bButtonsSizer->Add( 15, 0, 0, wxEXPAND, 5 );
91 bPanelSizer->Add( bButtonsSizer, 0, wxEXPAND|wxLEFT|wxTOP, 5 );
94 this->SetSizer( bPanelSizer );
96 bPanelSizer->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...