/* * wxCDMProjectActionsPanel.cpp * * Created on: 25/10/2012 * Author: daniel */ #include "wxCDMProjectActionsPanel.h" wxCDMProjectActionsPanel::wxCDMProjectActionsPanel( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) { wxCDMProjectActionsPanel::Create(parent,id,caption,pos,size,style); } wxCDMProjectActionsPanel::~wxCDMProjectActionsPanel() { } bool wxCDMProjectActionsPanel::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) { wxPanel::Create(parent,id,pos,size,style); wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL); this->SetSizer(sizer); CreateControls(); return TRUE; } void wxCDMProjectActionsPanel::CreateControls() { this->GetSizer()->Add(new wxButton(this, -1, _T("Action 1")), 0, wxALL, 5); this->GetSizer()->Add(new wxButton(this, -1, _T("Action 2")), 0, wxALL, 5); this->GetSizer()->Add(new wxButton(this, -1, _T("Action 3")), 0, wxALL, 5); this->GetSizer()->Add(new wxButton(this, -1, _T("Action 4")), 0, wxALL, 5); }