#include "wxCreaDevManagerDescriptionPanel.h"
-#include "images/folder64.xpm"
+#include "images/Cicon64.xpm"
+
+#include "creaDevManagerIds.h"
#include <wx/statbox.h>
+#include <iostream>
+
+BEGIN_EVENT_TABLE(wxCreaDevManagerDescriptionPanel, wxPanel)
+ EVT_BUTTON(ID_BUTTON_NEWPROJECT, wxCreaDevManagerDescriptionPanel::OnBtnNewProject)
+ EVT_BUTTON(ID_BUTTON_OPENPROJECT, wxCreaDevManagerDescriptionPanel::OnBtnOpenProject)
+END_EVENT_TABLE()
+
wxCreaDevManagerDescriptionPanel::wxCreaDevManagerDescriptionPanel(
wxWindow* parent,
wxWindowID id,
wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);
//Title
- sizer->Add(new wxStaticText(this, -1, _("Package")),0, wxALIGN_CENTER, 0);
+ sizer->Add(new wxStaticText(this, -1, _("Welcome")),0, wxALIGN_CENTER, 0);
//Image
- sizer->Add(new wxStaticBitmap(this,-1, wxBitmap(folder64)),0, wxALIGN_CENTER, 0);
+ sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(Cicon)),0, wxALIGN_CENTER, 0);
//Name
- sizer->Add(new wxStaticText(this, -1, _("MyPackage")),0, wxALIGN_CENTER, 0);
+ sizer->Add(new wxStaticText(this, -1, _("Crea Development Manager")),0, wxALIGN_CENTER, 0);
//Properties Box
+ /*
wxStaticBox* propsBox = new wxStaticBox(this, -1, _T("&Properties"));
wxStaticBoxSizer* propsBoxInnerSizer = new wxStaticBoxSizer(propsBox, wxVERTICAL);
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);
+ 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);
SetSizer(sizer);
}
+void wxCreaDevManagerDescriptionPanel::OnBtnNewProject(wxCommandEvent& event)
+{
+ event.ResumePropagation(1);
+ event.Skip();
+}
+
+void wxCreaDevManagerDescriptionPanel::OnBtnOpenProject(wxCommandEvent& event)
+{
+ event.ResumePropagation(1);
+ event.Skip();
+}
EVT_MENU(ID_MENU_REPORT_BUG, wxCreaDevManagerMainFrame::OnMenuReportBug)
EVT_MENU(ID_MENU_ABOUT_CREADEVMANAGER, wxCreaDevManagerMainFrame::OnMenuAboutCreaDevManager)
EVT_MENU(ID_MENU_ABOUT_CREATIS, wxCreaDevManagerMainFrame::OnMenuAboutCreatis)
+ EVT_BUTTON(ID_BUTTON_NEWPROJECT, wxCreaDevManagerMainFrame::OnMenuNewProject)
+ EVT_BUTTON(ID_BUTTON_OPENPROJECT, wxCreaDevManagerMainFrame::OnMenuOpenProject)
END_EVENT_TABLE()
wxCreaDevManagerMainFrame::wxCreaDevManagerMainFrame(
this,
ID_TREE_PROJECTS,
wxDefaultPosition,
- wxDefaultSize,
+ wxSize(300,400),
wxTR_HAS_BUTTONS | wxTR_AQUA_BUTTONS
);
- tree_Projects->SetSize(400,100);
- tree_Projects->SetMinSize(wxSize(300,100));
+ tree_Projects->SetMinSize(wxSize(200,200));
panel_Properties = new wxCreaDevManagerDescriptionPanel(
this,
ID_WINDOW_PROPERTIES,
wxString("Description Panel"),
wxDefaultPosition,
- wxDefaultSize,
+ wxSize(300, 400),
0
);
ID_WINDOW_PROJ_ACTIONS,
wxString("Project Actions Panel"),
wxDefaultPosition,
- wxDefaultSize,
+ wxSize(600,200),
0
);
- panel_ProjectActions->SetMinSize(wxSize(500, 150));
+ panel_ProjectActions->SetMinSize(wxSize(500, 100));
auiManager.AddPane(tree_Projects, wxLEFT, wxString("Projects Tree"));
auiManager.AddPane(panel_ProjectActions, wxBOTTOM, wxString("Project Actions"));
break;
};
- ((wxCreaDevManagerTreeCtrl*)tree_Projects)->BuildTree(this->controller->GetActiveProjects());
+ ((wxCreaDevManagerTreeCtrl*)tree_Projects)->BuildTree(controller->GetActiveProjects());
auiManager.Update();
}