15PANEL_SETUP_BUSES_BASE::PANEL_SETUP_BUSES_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( wxHORIZONTAL );
20 bMargins =
new wxBoxSizer( wxHORIZONTAL );
22 bLeftCol =
new wxBoxSizer( wxVERTICAL );
24 m_busesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Bus definitions:"), wxDefaultPosition, wxDefaultSize, 0 );
29 bLeftCol->Add( 0, 3, 0, wxEXPAND, 5 );
46 m_aliasesGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
51 m_aliasesGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
56 m_aliasesGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
62 bSizer10 =
new wxBoxSizer( wxHORIZONTAL );
65 bSizer10->Add(
m_addAlias, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
68 bSizer10->Add( 20, 0, 0, wxEXPAND, 5 );
74 bSizer10->Add( 15, 0, 0, 0, 5 );
76 m_source =
new wxStaticText(
this, wxID_ANY,
_(
"(source)"), wxDefaultPosition, wxDefaultSize, 0 );
78 bSizer10->Add(
m_source, 1, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
81 bLeftCol->Add( bSizer10, 0, wxEXPAND, 10 );
86 wxBoxSizer* bRightColumn;
87 bRightColumn =
new wxBoxSizer( wxVERTICAL );
89 m_membersBook =
new wxSimplebook(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
92 bSizer7 =
new wxBoxSizer( wxVERTICAL );
96 bSizer7->Add(
m_membersLabel, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 8 );
99 bSizer7->Add( 0, 3, 0, wxEXPAND, 5 );
116 m_membersGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
121 m_membersGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
126 m_membersGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
131 wxBoxSizer* bSizer101;
132 bSizer101 =
new wxBoxSizer( wxHORIZONTAL );
135 bSizer101->Add(
m_addMember, 0, wxTOP|wxBOTTOM|wxLEFT, 5 );
138 bSizer101->Add( 20, 0, 0, wxEXPAND, 5 );
144 bSizer7->Add( bSizer101, 0, wxEXPAND, 5 );
159 bMargins->Add( bRightColumn, 1, wxEXPAND|wxLEFT, 5 );
162 bPanelSizer->Add(
bMargins, 1, wxEXPAND, 5 );
165 this->SetSizer( bPanelSizer );
167 bPanelSizer->Fit(
this );
wxStaticText * m_busesLabel
virtual void OnRemoveMember(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_addAlias
virtual void OnDeleteAlias(wxCommandEvent &event)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void OnAddMember(wxCommandEvent &event)
wxSimplebook * m_membersBook
STD_BITMAP_BUTTON * m_addMember
~PANEL_SETUP_BUSES_BASE()
virtual void OnSizeGrid(wxSizeEvent &event)
PANEL_SETUP_BUSES_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 OnAddAlias(wxCommandEvent &event)
STD_BITMAP_BUTTON * m_deleteAlias
wxStaticText * m_membersLabel
STD_BITMAP_BUTTON * m_removeMember
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...