/* * wxCDMMainPanel.cpp * * Created on: 13/11/2012 * Author: daniel */ #include "wxCDMMainDescriptionPanel.h" #include "creaDevManagerIds.h" #include "images/Cicon64.xpm" wxCDMMainDescriptionPanel::wxCDMMainDescriptionPanel( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) { wxCDMMainDescriptionPanel::Create(parent, id, caption, pos, size, style); } wxCDMMainDescriptionPanel::~wxCDMMainDescriptionPanel() { } bool wxCDMMainDescriptionPanel::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style ) { wxPanel::Create(parent, id, pos, size, style); CreateControls(); return TRUE; } void wxCDMMainDescriptionPanel::CreateControls() { wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); //Welcome sizer->Add(new wxStaticText(this, -1, _("Welcome")),0, wxALIGN_CENTER, 0); //Image sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(Cicon)),0, wxALIGN_CENTER, 0); //Crea Development Manager sizer->Add(new wxStaticText(this, -1, _("Crea Development Manager")),0, wxALIGN_CENTER, 0); //Actions wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions")); wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL); sizer -> Add(actionsBoxInnerSizer, 2, wxEXPAND | wxALL, 20); actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_NEWPROJECT, _T("New Project")), 0, wxRIGHT | wxLEFT, 20); actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_OPENPROJECT, _T("Open Project")), 0, wxRIGHT | wxLEFT, 20); //Asign sizer sizer->SetSizeHints(this); SetSizer(sizer); } void wxCDMMainDescriptionPanel::OnBtnNewProject(wxCommandEvent& event) { event.ResumePropagation(1); event.Skip(); } void wxCDMMainDescriptionPanel::OnBtnOpenProject(wxCommandEvent& event) { event.ResumePropagation(1); event.Skip(); }