]> Creatis software - crea.git/commitdiff
Feature #1711
authorDaniel Gonzalez <daniel@daniel.creatis>
Tue, 4 Dec 2012 15:18:46 +0000 (16:18 +0100)
committerDaniel Gonzalez <daniel@daniel.creatis>
Tue, 4 Dec 2012 15:19:01 +0000 (16:19 +0100)
CreaDevManager application implementation

Specified buttons in project's actions
Described createPackage process

lib/creaDevManagerLib/creaDevManagerIds.h
lib/creaDevManagerLib/wxCDMProjectActionsPanel.cpp
lib/creaDevManagerLib/wxCDMProjectActionsPanel.h
lib/creaDevManagerLib/wxCDMProjectDescriptionPanel.cpp

index ad2e0c664a6c80ddb6203dbb14f3c8a2f4ba195d..eacee9003c203f55b5ea58493e4ed4ad989bc06e 100644 (file)
@@ -88,4 +88,8 @@
 #define ID_BUTTON_OPEN_FILE             10314
 #define ID_BUTTON_OPEN_COMMAND          10315
 
 #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_ */
 #endif /* CREADEVMANAGERIDS_H_ */
index fec00503b752b445a855a7bc09e12eb22cd83298..c4e2b0ff88ef900a946cbc3579cf0fc618876bc9 100755 (executable)
@@ -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.
 # ------------------------------------------------------------------------ 
 #  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.
 # ------------------------------------------------------------------------ 
-*/ 
+ */
 
 
 /*
 
 
 /*
 
 #include "wxCDMProjectActionsPanel.h"
 
 
 #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,
 
 wxCDMProjectActionsPanel::wxCDMProjectActionsPanel(
     wxWindow* parent,
@@ -71,8 +78,36 @@ bool wxCDMProjectActionsPanel::Create(
 
 void wxCDMProjectActionsPanel::CreateControls()
 {
 
 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();
 }
 }
index 74133d126a69651c178048f349458eb35c765118..48ce66945d1024b9d1d8c22400f08453c784f562 100755 (executable)
@@ -41,6 +41,7 @@
 
 class wxCDMProjectActionsPanel : public wxPanel
 {
 
 class wxCDMProjectActionsPanel : public wxPanel
 {
+  DECLARE_EVENT_TABLE()
 public:
   wxCDMProjectActionsPanel(
       wxWindow* parent,
 public:
   wxCDMProjectActionsPanel(
       wxWindow* parent,
@@ -62,6 +63,11 @@ public:
 
 protected:
   void CreateControls();
 
 protected:
   void CreateControls();
+
+  void OnBtnBuildProject(wxCommandEvent& event);
+  void OnBtnConfigureBuild(wxCommandEvent& event);
+  void OnBtnEditCMakeLists(wxCommandEvent& event);
+  void OnBtnConnectProject(wxCommandEvent& event);
 };
 
 #endif /* WXCDMPROJECTACTIONSPANEL_H_ */
 };
 
 #endif /* WXCDMPROJECTACTIONSPANEL_H_ */
index 2d8b0c1a5c1d2588903f2cbe95edfa63895b5622..5093d7173a7855b6141c09b26d8147488f418bb3 100644 (file)
@@ -144,6 +144,7 @@ void wxCDMProjectDescriptionPanel::CreateControls()
 void wxCDMProjectDescriptionPanel::OnBtnCreatePackage(wxCommandEvent& event)
 {
   //TODO: implement method
 void wxCDMProjectDescriptionPanel::OnBtnCreatePackage(wxCommandEvent& event)
 {
   //TODO: implement method
+  //TODO: call project to create package : use bbCreatePackage <path> <name> [author] [description]
   std::cerr << "Event OnBtnCreatePackage not implemented" << std::endl;
   event.Skip();
 }
   std::cerr << "Event OnBtnCreatePackage not implemented" << std::endl;
   event.Skip();
 }