4 * Created on: 13/11/2012
8 #include "wxCDMMainDescriptionPanel.h"
9 #include "creaDevManagerIds.h"
10 #include "images/Cicon64.xpm"
13 wxCDMMainDescriptionPanel::wxCDMMainDescriptionPanel(
16 const wxString& caption,
22 wxCDMMainDescriptionPanel::Create(parent, id, caption, pos, size, style);
25 wxCDMMainDescriptionPanel::~wxCDMMainDescriptionPanel()
29 bool wxCDMMainDescriptionPanel::Create(
32 const wxString& caption,
38 wxPanel::Create(parent, id, pos, size, style);
43 void wxCDMMainDescriptionPanel::CreateControls()
45 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
48 sizer->Add(new wxStaticText(this, -1, _("Welcome")),0, wxALIGN_CENTER, 0);
51 sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(Cicon)),0, wxALIGN_CENTER, 0);
53 //Crea Development Manager
54 sizer->Add(new wxStaticText(this, -1, _("Crea Development Manager")),0, wxALIGN_CENTER, 0);
57 wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions"));
58 wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL);
59 sizer -> Add(actionsBoxInnerSizer, 2, wxEXPAND | wxALL, 20);
61 actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_NEWPROJECT, _T("New Project")), 0, wxRIGHT | wxLEFT, 20);
62 actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_OPENPROJECT, _T("Open Project")), 0, wxRIGHT | wxLEFT, 20);
65 sizer->SetSizeHints(this);
69 void wxCDMMainDescriptionPanel::OnBtnNewProject(wxCommandEvent& event)
71 event.ResumePropagation(1);
75 void wxCDMMainDescriptionPanel::OnBtnOpenProject(wxCommandEvent& event)
77 event.ResumePropagation(1);