--- /dev/null
+/*
+ * wxCreaDevManagerDescriptionFrame.cpp
+ *
+ * Created on: 23/10/2012
+ * Author: daniel
+ */
+
+#include "wxCreaDevManagerDescriptionPanel.h"
+
+#include "images/folder64.xpm"
+
+#include <wx/statbox.h>
+
+wxCreaDevManagerDescriptionPanel::wxCreaDevManagerDescriptionPanel(
+ wxWindow* parent,
+ wxWindowID id,
+ const wxString& caption,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style
+)
+{
+ wxCreaDevManagerDescriptionPanel::Create(parent, id, caption, pos, size, style);
+}
+
+wxCreaDevManagerDescriptionPanel::~wxCreaDevManagerDescriptionPanel()
+{
+}
+
+bool wxCreaDevManagerDescriptionPanel::Create(
+ wxWindow* parent,
+ wxWindowID id,
+ const wxString& caption,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style
+)
+{
+ wxPanel::Create(parent, id, pos, size, style);
+
+ CreateView();
+
+ return TRUE;
+}
+
+void wxCreaDevManagerDescriptionPanel::CreateView(string title, string imagePath, string type, vector<pair<string, string> > properties)
+{
+ wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
+
+ //Title
+ sizer->Add(new wxStaticText(this, -1, _("Package")),0, wxALIGN_CENTER, 0);
+ //Image
+ sizer->Add(new wxStaticBitmap(this,-1, wxBitmap(folder64)),0, wxALIGN_CENTER, 0);
+ //Name
+ sizer->Add(new wxStaticText(this, -1, _("MyPackage")),0, wxALIGN_CENTER, 0);
+
+ //Properties Box
+ wxStaticBox* propsBox = new wxStaticBox(this, -1, _T("&Properties"));
+
+ wxStaticBoxSizer* propsBoxInnerSizer = new wxStaticBoxSizer(propsBox, wxVERTICAL);
+ sizer -> Add(propsBoxInnerSizer, 1, wxCENTER | wxEXPAND | wxALL, 5);
+
+ wxString propsText = wxString(_T("Property 1: value 1\nProperty 2: long valuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuue 2"));
+ wxStaticText* props = new wxStaticText(this, -1, propsText, wxDefaultPosition, wxSize(140,10));
+ propsBoxInnerSizer->Add(props, 1, wxEXPAND | wxALL, 5);
+
+ //Actions Box
+ wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions"));
+
+ wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL);
+ sizer -> Add(actionsBoxInnerSizer, 2, wxCENTER | wxEXPAND | wxALL, 10);
+
+ actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 1")), 0, wxEXPAND, 0);
+ actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 2")), 0, wxEXPAND, 0);
+ actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 3")), 0, wxEXPAND, 0);
+ actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 4")), 0, wxEXPAND, 0);
+ actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 5")), 0, wxEXPAND, 0);
+ actionsBoxInnerSizer->Add(new wxButton(this, -1, _T("Action 6")), 0, wxEXPAND, 0);
+
+
+
+ sizer->SetSizeHints(this);
+
+
+ SetSizer(sizer);
+}
+