15PANEL_TEXT_VARIABLES_BASE::PANEL_TEXT_VARIABLES_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 );
21 bSizer3 =
new wxBoxSizer( wxVERTICAL );
37 m_TextVars->SetColLabelValue( 0,
_(
"Variable Name") );
38 m_TextVars->SetColLabelValue( 1,
_(
"Text Substitution") );
40 m_TextVars->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
45 m_TextVars->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
50 m_TextVars->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
53 bSizer3->Add(
m_TextVars, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
55 wxBoxSizer* bSizerEnvVarBtns;
56 bSizerEnvVarBtns =
new wxBoxSizer( wxHORIZONTAL );
62 bSizerEnvVarBtns->Add( 20, 0, 0, wxEXPAND, 5 );
68 bSizer3->Add( bSizerEnvVarBtns, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
71 bPanelSizer->Add( bSizer3, 1, wxEXPAND, 5 );
74 this->SetSizer( bPanelSizer );
76 bPanelSizer->Fit(
this );
~PANEL_TEXT_VARIABLES_BASE()
STD_BITMAP_BUTTON * m_btnAddTextVar
STD_BITMAP_BUTTON * m_btnDeleteTextVar
PANEL_TEXT_VARIABLES_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 OnRemoveTextVar(wxCommandEvent &event)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
virtual void OnAddTextVar(wxCommandEvent &event)
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...