2 * wxCreaDevManagerDescriptionFrame.cpp
4 * Created on: 23/10/2012
8 #include "wxCreaDevManagerDescriptionPanel.h"
10 #include "images/folder64.xpm"
12 #include <wx/statbox.h>
14 wxCreaDevManagerDescriptionPanel::wxCreaDevManagerDescriptionPanel(
17 const wxString& caption,
23 wxCreaDevManagerDescriptionPanel::Create(parent, id, caption, pos, size, style);
26 wxCreaDevManagerDescriptionPanel::~wxCreaDevManagerDescriptionPanel()
30 bool wxCreaDevManagerDescriptionPanel::Create(
33 const wxString& caption,
39 wxPanel::Create(parent, id, pos, size, style);
46 void wxCreaDevManagerDescriptionPanel::CreateView(string title, string imagePath, string type, vector<pair<string, string> > properties)
48 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
51 sizer->Add(new wxStaticText(this, -1, _("Package")),0, wxALIGN_CENTER, 0);
53 sizer->Add(new wxStaticBitmap(this,-1, wxBitmap(folder64)),0, wxALIGN_CENTER, 0);
55 sizer->Add(new wxStaticText(this, -1, _("MyPackage")),0, wxALIGN_CENTER, 0);
58 wxStaticBox* propsBox = new wxStaticBox(this, -1, _T("&Properties"));
60 wxStaticBoxSizer* propsBoxInnerSizer = new wxStaticBoxSizer(propsBox, wxVERTICAL);
61 sizer -> Add(propsBoxInnerSizer, 1, wxCENTER | wxEXPAND | wxALL, 5);
63 wxString propsText = wxString(_T("Property 1: value 1\nProperty 2: long valuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuue 2"));
64 wxStaticText* props = new wxStaticText(this, -1, propsText, wxDefaultPosition, wxSize(140,10));
65 propsBoxInnerSizer->Add(props, 1, wxEXPAND | wxALL, 5);
68 wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions"));
70 wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL);
71 sizer -> Add(actionsBoxInnerSizer, 2, wxCENTER | wxEXPAND | wxALL, 10);
73 actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 1")), 0, wxEXPAND, 0);
74 actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 2")), 0, wxEXPAND, 0);
75 actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 3")), 0, wxEXPAND, 0);
76 actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 4")), 0, wxEXPAND, 0);
77 actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 5")), 0, wxEXPAND, 0);
78 actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 6")), 0, wxEXPAND, 0);
82 sizer->SetSizeHints(this);