From: Daniel Gonzalez Date: Tue, 4 Dec 2012 15:18:46 +0000 (+0100) Subject: Feature #1711 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=b35dc47a0727c7588b68024f73b5dd3c0705ca13;p=crea.git Feature #1711 CreaDevManager application implementation Specified buttons in project's actions Described createPackage process --- diff --git a/lib/creaDevManagerLib/creaDevManagerIds.h b/lib/creaDevManagerLib/creaDevManagerIds.h index ad2e0c6..eacee90 100644 --- a/lib/creaDevManagerLib/creaDevManagerIds.h +++ b/lib/creaDevManagerLib/creaDevManagerIds.h @@ -88,4 +88,8 @@ #define ID_BUTTON_OPEN_FILE 10314 #define ID_BUTTON_OPEN_COMMAND 10315 +#define ID_BUTTON_BUILD_PROJECT 10316 +#define ID_BUTTON_CONFIGURE_BUILD 10317 +#define ID_BUTTON_CONNECT_PROJECT 10318 + #endif /* CREADEVMANAGERIDS_H_ */ diff --git a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp index fec0050..c4e2b0f 100755 --- a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp @@ -21,7 +21,7 @@ # The fact that you are presently reading this means that you have had # knowledge of the CeCILL-B license and that you accept its terms. # ------------------------------------------------------------------------ -*/ + */ /* @@ -33,7 +33,14 @@ #include "wxCDMProjectActionsPanel.h" +#include "creaDevManagerIds.h" +BEGIN_EVENT_TABLE(wxCDMProjectActionsPanel, wxPanel) +EVT_BUTTON(ID_BUTTON_BUILD_PROJECT, wxCDMProjectActionsPanel::OnBtnBuildProject) +EVT_BUTTON(ID_BUTTON_CONFIGURE_BUILD, wxCDMProjectActionsPanel::OnBtnConfigureBuild) +EVT_BUTTON(ID_BUTTON_EDIT_CMAKELISTSFILE, wxCDMProjectActionsPanel::OnBtnEditCMakeLists) +EVT_BUTTON(ID_BUTTON_CONNECT_PROJECT, wxCDMProjectActionsPanel::OnBtnConnectProject) +END_EVENT_TABLE() wxCDMProjectActionsPanel::wxCDMProjectActionsPanel( wxWindow* parent, @@ -71,8 +78,36 @@ bool wxCDMProjectActionsPanel::Create( void wxCDMProjectActionsPanel::CreateControls() { - this->GetSizer()->Add(new wxButton(this, -1, _T("Action 1")), 0, wxALL, 5); - this->GetSizer()->Add(new wxButton(this, -1, _T("Action 2")), 0, wxALL, 5); - this->GetSizer()->Add(new wxButton(this, -1, _T("Action 3")), 0, wxALL, 5); - this->GetSizer()->Add(new wxButton(this, -1, _T("Action 4")), 0, wxALL, 5); + this->GetSizer()->Add(new wxButton(this, ID_BUTTON_BUILD_PROJECT, _T("Build Project (make)")), 0, wxALL, 5); + this->GetSizer()->Add(new wxButton(this, ID_BUTTON_CONFIGURE_BUILD, _T("Configure Build (ccmake)")), 0, wxALL, 5); + this->GetSizer()->Add(new wxButton(this, ID_BUTTON_EDIT_CMAKELISTSFILE, _T("Edit CMakeLists")), 0, wxALL, 5); + this->GetSizer()->Add(new wxButton(this, ID_BUTTON_CONNECT_PROJECT, _T("Connect Project")), 0, wxALL, 5); +} + +void wxCDMProjectActionsPanel::OnBtnBuildProject(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnBuildProject not implemented" << std::endl; + event.Skip(); +} + +void wxCDMProjectActionsPanel::OnBtnConfigureBuild(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnConfigureBuild not implemented" << std::endl; + event.Skip(); +} + +void wxCDMProjectActionsPanel::OnBtnEditCMakeLists(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnEditCMakeLists not implemented" << std::endl; + event.Skip(); +} + +void wxCDMProjectActionsPanel::OnBtnConnectProject(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnConnectProject not implemented" << std::endl; + event.Skip(); } diff --git a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h index 74133d1..48ce669 100755 --- a/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h +++ b/lib/creaDevManagerLib/wxCDMProjectActionsPanel.h @@ -41,6 +41,7 @@ class wxCDMProjectActionsPanel : public wxPanel { + DECLARE_EVENT_TABLE() public: wxCDMProjectActionsPanel( wxWindow* parent, @@ -62,6 +63,11 @@ public: protected: void CreateControls(); + + void OnBtnBuildProject(wxCommandEvent& event); + void OnBtnConfigureBuild(wxCommandEvent& event); + void OnBtnEditCMakeLists(wxCommandEvent& event); + void OnBtnConnectProject(wxCommandEvent& event); }; #endif /* WXCDMPROJECTACTIONSPANEL_H_ */ diff --git a/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp index 2d8b0c1..5093d71 100644 --- a/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp +++ b/lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp @@ -144,6 +144,7 @@ void wxCDMProjectDescriptionPanel::CreateControls() void wxCDMProjectDescriptionPanel::OnBtnCreatePackage(wxCommandEvent& event) { //TODO: implement method + //TODO: call project to create package : use bbCreatePackage [author] [description] std::cerr << "Event OnBtnCreatePackage not implemented" << std::endl; event.Skip(); }