From 58e994c7ddc088821aa0f583354216c6376405c8 Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Wed, 28 Nov 2012 17:23:32 +0100 Subject: [PATCH] Feature #1711 CreaDevManager application implementation Model Adjustment to handle unknown folders and files Creation of description panels --- lib/creaDevManagerLib/creaDevManagerIds.h | 3 + lib/creaDevManagerLib/modelCDMAppli.h | 4 +- lib/creaDevManagerLib/modelCDMApplication.h | 4 +- lib/creaDevManagerLib/modelCDMBlackBox.cpp | 6 +- lib/creaDevManagerLib/modelCDMBlackBox.h | 10 +- .../modelCDMCMakeListsFile.cpp | 60 +++++++ .../modelCDMCMakeListsFile.h | 51 ++++++ lib/creaDevManagerLib/modelCDMFile.cpp | 59 +++++++ lib/creaDevManagerLib/modelCDMFile.h | 54 +++++++ lib/creaDevManagerLib/modelCDMFolder.cpp | 66 ++++++++ lib/creaDevManagerLib/modelCDMFolder.h | 62 ++++++++ lib/creaDevManagerLib/modelCDMLib.h | 4 +- lib/creaDevManagerLib/modelCDMLibrary.h | 4 +- lib/creaDevManagerLib/modelCDMPackage.h | 4 +- lib/creaDevManagerLib/modelCDMProject.h | 4 +- .../wxCDMAppliDescriptionPanel.cpp | 115 ++++++++++++++ .../wxCDMAppliDescriptionPanel.h | 81 ++++++++++ .../wxCDMApplicationDescriptionPanel.cpp | 134 ++++++++++++++++ .../wxCDMApplicationDescriptionPanel.h | 81 ++++++++++ .../wxCDMBlackBoxDescriptionPanel.cpp | 147 ++++++++++++++++++ .../wxCDMBlackBoxDescriptionPanel.h | 81 ++++++++++ .../wxCDMLibDescriptionPanel.cpp | 115 ++++++++++++++ .../wxCDMLibDescriptionPanel.h | 81 ++++++++++ .../wxCDMLibraryDescriptionPanel.cpp | 118 ++++++++++++++ .../wxCDMLibraryDescriptionPanel.h | 81 ++++++++++ .../wxCDMPackageDescriptionPanel.cpp | 147 ++++++++++++++++++ .../wxCDMPackageDescriptionPanel.h | 81 ++++++++++ 27 files changed, 1638 insertions(+), 19 deletions(-) create mode 100644 lib/creaDevManagerLib/modelCDMCMakeListsFile.cpp create mode 100644 lib/creaDevManagerLib/modelCDMCMakeListsFile.h create mode 100644 lib/creaDevManagerLib/modelCDMFile.cpp create mode 100644 lib/creaDevManagerLib/modelCDMFile.h create mode 100644 lib/creaDevManagerLib/modelCDMFolder.cpp create mode 100644 lib/creaDevManagerLib/modelCDMFolder.h create mode 100644 lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.cpp create mode 100644 lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.h create mode 100644 lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.cpp create mode 100644 lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.h create mode 100644 lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.cpp create mode 100644 lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.h create mode 100644 lib/creaDevManagerLib/wxCDMLibDescriptionPanel.cpp create mode 100644 lib/creaDevManagerLib/wxCDMLibDescriptionPanel.h create mode 100644 lib/creaDevManagerLib/wxCDMLibraryDescriptionPanel.cpp create mode 100644 lib/creaDevManagerLib/wxCDMLibraryDescriptionPanel.h create mode 100644 lib/creaDevManagerLib/wxCDMPackageDescriptionPanel.cpp create mode 100644 lib/creaDevManagerLib/wxCDMPackageDescriptionPanel.h diff --git a/lib/creaDevManagerLib/creaDevManagerIds.h b/lib/creaDevManagerLib/creaDevManagerIds.h index 916f5da..7e8881e 100644 --- a/lib/creaDevManagerLib/creaDevManagerIds.h +++ b/lib/creaDevManagerLib/creaDevManagerIds.h @@ -81,5 +81,8 @@ #define ID_BUTTON_CREATE_LIBRARY 10307 #define ID_BUTTON_CREATE_APPLICATION 10308 #define ID_BUTTON_EDIT_CMAKELISTSFILE 10309 +#define ID_BUTTON_CREATE_FOLDER 10310 +#define ID_BUTTON_OPEN_CXX 10311 +#define ID_BUTTON_OPEN_HXX 10312 #endif /* CREADEVMANAGERIDS_H_ */ diff --git a/lib/creaDevManagerLib/modelCDMAppli.h b/lib/creaDevManagerLib/modelCDMAppli.h index b97c012..c8d6003 100644 --- a/lib/creaDevManagerLib/modelCDMAppli.h +++ b/lib/creaDevManagerLib/modelCDMAppli.h @@ -38,10 +38,10 @@ #include #include -#include"modelCDMIProjectTreeNode.h" +#include"modelCDMFolder.h" #include"modelCDMApplication.h" -class modelCDMAppli : public modelCDMIProjectTreeNode +class modelCDMAppli : public modelCDMFolder { public: modelCDMAppli(); diff --git a/lib/creaDevManagerLib/modelCDMApplication.h b/lib/creaDevManagerLib/modelCDMApplication.h index a30517d..2f8834b 100644 --- a/lib/creaDevManagerLib/modelCDMApplication.h +++ b/lib/creaDevManagerLib/modelCDMApplication.h @@ -38,9 +38,9 @@ #include #include -#include"modelCDMIProjectTreeNode.h" +#include"modelCDMFolder.h" -class modelCDMApplication : public modelCDMIProjectTreeNode +class modelCDMApplication : public modelCDMFolder { public: modelCDMApplication(); diff --git a/lib/creaDevManagerLib/modelCDMBlackBox.cpp b/lib/creaDevManagerLib/modelCDMBlackBox.cpp index f285f78..db8b11c 100644 --- a/lib/creaDevManagerLib/modelCDMBlackBox.cpp +++ b/lib/creaDevManagerLib/modelCDMBlackBox.cpp @@ -42,9 +42,9 @@ modelCDMBlackBox::~modelCDMBlackBox() { } -const std::string& modelCDMBlackBox::GetName() const +const std::string& modelCDMBlackBox::GetNameBlackBox() const { - return this->name; + return this->nameBlackBox; } const std::string& modelCDMBlackBox::GetAuthors() const @@ -112,7 +112,7 @@ bool modelCDMBlackBox::OpenHxx(std::string*& result) return true; } -bool modelCDMBlackBox::Refresh(std::string*& result) +const bool modelCDMBlackBox::Refresh(std::string*& result) { //TODO: implement method return true; diff --git a/lib/creaDevManagerLib/modelCDMBlackBox.h b/lib/creaDevManagerLib/modelCDMBlackBox.h index 6755448..7c0bb08 100644 --- a/lib/creaDevManagerLib/modelCDMBlackBox.h +++ b/lib/creaDevManagerLib/modelCDMBlackBox.h @@ -37,13 +37,15 @@ #include -class modelCDMBlackBox +#include"modelCDMFolder.h" + +class modelCDMBlackBox : public modelCDMFolder { public: modelCDMBlackBox(); ~modelCDMBlackBox(); - const std::string& GetName() const; + const std::string& GetNameBlackBox() const; const std::string& GetAuthors() const; const std::string& GetAuthorsEmail() const; const std::string& GetCategories() const; @@ -57,10 +59,10 @@ public: bool OpenCxx(std::string*& result); bool OpenHxx(std::string*& result); - bool Refresh(std::string*& result); + const bool Refresh(std::string*& result); private: - std::string name; + std::string nameBlackBox; std::string authors; std::string authorsEmail; std::string categories; diff --git a/lib/creaDevManagerLib/modelCDMCMakeListsFile.cpp b/lib/creaDevManagerLib/modelCDMCMakeListsFile.cpp new file mode 100644 index 0000000..7cdcc63 --- /dev/null +++ b/lib/creaDevManagerLib/modelCDMCMakeListsFile.cpp @@ -0,0 +1,60 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * modelCDMCMakeListsFile.cpp + * + * Created on: Nov 28, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "modelCDMCMakeListsFile.h" + +modelCDMCMakeListsFile::modelCDMCMakeListsFile() +{ +} + +modelCDMCMakeListsFile::modelCDMCMakeListsFile(const std::string& path, + const int& level) +{ +} + +modelCDMCMakeListsFile::~modelCDMCMakeListsFile() +{ +} + +bool modelCDMCMakeListsFile::OpenFile(std::string*& result) +{ + //TODO: implement method + return true; +} + +const bool modelCDMCMakeListsFile::Refresh(std::string*& result) +{ + //TODO: implement method + return true; +} diff --git a/lib/creaDevManagerLib/modelCDMCMakeListsFile.h b/lib/creaDevManagerLib/modelCDMCMakeListsFile.h new file mode 100644 index 0000000..ef66a29 --- /dev/null +++ b/lib/creaDevManagerLib/modelCDMCMakeListsFile.h @@ -0,0 +1,51 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * modelCDMCMakeListsFile.h + * + * Created on: Nov 28, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef MODELCDMCMAKELISTSFILE_H_ +#define MODELCDMCMAKELISTSFILE_H_ + +#include "modelCDMFile.h" + +class modelCDMCMakeListsFile : public modelCDMFile +{ +public: + modelCDMCMakeListsFile(); + modelCDMCMakeListsFile(const std::string& path, const int& level = 1); + ~modelCDMCMakeListsFile(); + + bool OpenFile(std::string*& result); + virtual const bool Refresh(std::string*& result); +}; + +#endif /* MODELCDMCMAKELISTSFILE_H_ */ diff --git a/lib/creaDevManagerLib/modelCDMFile.cpp b/lib/creaDevManagerLib/modelCDMFile.cpp new file mode 100644 index 0000000..0049e41 --- /dev/null +++ b/lib/creaDevManagerLib/modelCDMFile.cpp @@ -0,0 +1,59 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * modelCDMFile.cpp + * + * Created on: Nov 28, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "modelCDMFile.h" + +modelCDMFile::modelCDMFile() +{ +} + +modelCDMFile::modelCDMFile(const std::string& path, const int& level) +{ +} + +modelCDMFile::~modelCDMFile() +{ +} + +bool modelCDMFile::OpenFile(std::string*& result) +{ + //TODO: implement method + return true; +} + +const bool modelCDMFile::Refresh(std::string*& result) +{ + //TODO: implement method + return true; +} diff --git a/lib/creaDevManagerLib/modelCDMFile.h b/lib/creaDevManagerLib/modelCDMFile.h new file mode 100644 index 0000000..a74990a --- /dev/null +++ b/lib/creaDevManagerLib/modelCDMFile.h @@ -0,0 +1,54 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * modelCDMFile.h + * + * Created on: Nov 28, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef MODELCDMFILE_H_ +#define MODELCDMFILE_H_ + +#include +#include + +#include "modelCDMIProjectTreeNode.h" + +class modelCDMFile : public modelCDMIProjectTreeNode +{ +public: + modelCDMFile(); + modelCDMFile(const std::string& path, const int& level = 3); + ~modelCDMFile(); + + bool OpenFile(std::string* & result); + virtual const bool Refresh(std::string*& result); +}; + +#endif /* MODELCDMFILE_H_ */ diff --git a/lib/creaDevManagerLib/modelCDMFolder.cpp b/lib/creaDevManagerLib/modelCDMFolder.cpp new file mode 100644 index 0000000..a1965a6 --- /dev/null +++ b/lib/creaDevManagerLib/modelCDMFolder.cpp @@ -0,0 +1,66 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * modelCDMFolder.cpp + * + * Created on: Nov 28, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "modelCDMFolder.h" + +modelCDMFolder::modelCDMFolder() +{ +} + +modelCDMFolder::modelCDMFolder(const std::string& path, const int& level) +{ +} + +modelCDMFolder::~modelCDMFolder() +{ +} + +bool modelCDMFolder::CreateFolder(const std::string& name, std::string*& result, + const std::string& path) +{ + //TODO: implement method + return true; +} + +bool modelCDMFolder::OpenCMakeListsFile(std::string*& result) +{ + //TODO: implement method + return true; +} + +const bool modelCDMFolder::Refresh(std::string*& result) +{ + //TODO: implement method + return true; +} diff --git a/lib/creaDevManagerLib/modelCDMFolder.h b/lib/creaDevManagerLib/modelCDMFolder.h new file mode 100644 index 0000000..f1ead30 --- /dev/null +++ b/lib/creaDevManagerLib/modelCDMFolder.h @@ -0,0 +1,62 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * modelCDMFolder.h + * + * Created on: Nov 28, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef MODELCDMFOLDER_H_ +#define MODELCDMFOLDER_H_ + +#include +#include + +#include "modelCDMIProjectTreeNode.h" + +class modelCDMFolder : public modelCDMIProjectTreeNode +{ +public: + modelCDMFolder(); + modelCDMFolder(const std::string& path, const int& level = 3); + ~modelCDMFolder(); + + bool CreateFolder( + const std::string& name, + std::string*& result, + const std::string& path = "/" + ); + bool OpenCMakeListsFile(std::string* & result); + virtual const bool Refresh(std::string*& result); + +private: + std::vector folders; +}; + +#endif /* MODELCDMFOLDER_H_ */ diff --git a/lib/creaDevManagerLib/modelCDMLib.h b/lib/creaDevManagerLib/modelCDMLib.h index f93752e..bf7db0d 100644 --- a/lib/creaDevManagerLib/modelCDMLib.h +++ b/lib/creaDevManagerLib/modelCDMLib.h @@ -38,10 +38,10 @@ #include #include -#include "modelCDMIProjectTreeNode.h" +#include "modelCDMFolder.h" #include "modelCDMLibrary.h" -class modelCDMLib : public modelCDMIProjectTreeNode +class modelCDMLib : public modelCDMFolder { public: modelCDMLib(); diff --git a/lib/creaDevManagerLib/modelCDMLibrary.h b/lib/creaDevManagerLib/modelCDMLibrary.h index d6f33ca..2e5adce 100644 --- a/lib/creaDevManagerLib/modelCDMLibrary.h +++ b/lib/creaDevManagerLib/modelCDMLibrary.h @@ -38,9 +38,9 @@ #include #include -#include "modelCDMIProjectTreeNode.h" +#include "modelCDMFolder.h" -class modelCDMLibrary : public modelCDMIProjectTreeNode +class modelCDMLibrary : public modelCDMFolder { public: modelCDMLibrary(); diff --git a/lib/creaDevManagerLib/modelCDMPackage.h b/lib/creaDevManagerLib/modelCDMPackage.h index dcbce56..e18031a 100644 --- a/lib/creaDevManagerLib/modelCDMPackage.h +++ b/lib/creaDevManagerLib/modelCDMPackage.h @@ -38,10 +38,10 @@ #include #include -#include"modelCDMIProjectTreeNode.h" +#include"modelCDMFolder.h" #include"modelCDMBlackBox.h" -class modelCDMPackage : public modelCDMIProjectTreeNode +class modelCDMPackage : public modelCDMFolder { public: modelCDMPackage(); diff --git a/lib/creaDevManagerLib/modelCDMProject.h b/lib/creaDevManagerLib/modelCDMProject.h index 059b6c4..bafe635 100644 --- a/lib/creaDevManagerLib/modelCDMProject.h +++ b/lib/creaDevManagerLib/modelCDMProject.h @@ -38,12 +38,12 @@ #include #include -#include "modelCDMIProjectTreeNode.h" +#include "modelCDMFolder.h" #include "modelCDMLib.h" #include "modelCDMAppli.h" #include "modelCDMPackage.h" -class modelCDMProject : public modelCDMIProjectTreeNode +class modelCDMProject : public modelCDMFolder { public: modelCDMProject(); diff --git a/lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.cpp new file mode 100644 index 0000000..0bb1df3 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.cpp @@ -0,0 +1,115 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMAppliDescriptionPanel.cpp + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "wxCDMAppliDescriptionPanel.h" + +#include "creaDevManagerIds.h" +#include "images/PrIcon.xpm" + +BEGIN_EVENT_TABLE(wxCDMAppliDescriptionPanel, wxPanel) +EVT_MENU(ID_BUTTON_CREATE_APPLICATION, wxCDMAppliDescriptionPanel::OnBtnCreateApplication) +EVT_MENU(ID_BUTTON_EDIT_CMAKELISTSFILE, wxCDMAppliDescriptionPanel::OnBtnEditCMakeLists) +END_EVENT_TABLE() + +wxCDMAppliDescriptionPanel::wxCDMAppliDescriptionPanel( + wxWindow* parent, + modelCDMAppli* appli, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxCDMAppliDescriptionPanel::Create(parent, appli, id, caption, pos, size, style); +} + +wxCDMAppliDescriptionPanel::~wxCDMAppliDescriptionPanel() +{ +} + +bool wxCDMAppliDescriptionPanel::Create( + wxWindow* parent, + modelCDMAppli* appli, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxPanel::Create(parent, id, pos, size, style); + this->appli = appli; + CreateControls(); + return TRUE; +} + +void wxCDMAppliDescriptionPanel::CreateControls() +{ + wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); + + //Welcome + sizer->Add(new wxStaticText(this, -1, _("Applications")),0, wxALIGN_CENTER, 0); + + //Image + sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(PrIcon)),0, wxALIGN_CENTER, 0); + + //Actions + wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions")); + wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL); + sizer -> Add(actionsBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_CREATE_APPLICATION, _T("Create Application")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_EDIT_CMAKELISTSFILE, _T("Edit CMakeLists File")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + + //Assign sizer + actionsBoxInnerSizer->SetSizeHints(this); + + SetSizer(sizer); + sizer->SetSizeHints(this); +} + +void wxCDMAppliDescriptionPanel::OnBtnCreateApplication(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnCreateApplication not implemented" << std::endl; + event.Skip(); +} + +void wxCDMAppliDescriptionPanel::OnBtnEditCMakeLists(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnEditCMakeLists not implemented" << std::endl; + event.Skip(); +} diff --git a/lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.h new file mode 100644 index 0000000..6b655f3 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMAppliDescriptionPanel.h @@ -0,0 +1,81 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMAppliDescriptionPanel.h + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef WXCDMAPPLIDESCRIPTIONPANEL_H_ +#define WXCDMAPPLIDESCRIPTIONPANEL_H_ + +#include +#include + +#include "modelCDMAppli.h" + +class wxCDMAppliDescriptionPanel : public wxPanel +{ + DECLARE_EVENT_TABLE() +public: + wxCDMAppliDescriptionPanel( + wxWindow* parent, + modelCDMAppli* appli, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + ~wxCDMAppliDescriptionPanel(); + + bool Create( + wxWindow* parent, + modelCDMAppli* appli, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + void CreateControls(); + +private: + modelCDMAppli* appli; + + //handlers +protected: + void OnBtnCreateApplication(wxCommandEvent& event); + void OnBtnEditCMakeLists(wxCommandEvent& event); + +}; + +#endif /* WXCDMAPPLIDESCRIPTIONPANEL_H_ */ diff --git a/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.cpp new file mode 100644 index 0000000..0070024 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.cpp @@ -0,0 +1,134 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMApplicationDescriptionPanel.cpp + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "wxCDMApplicationDescriptionPanel.h" + +#include "creaDevManagerIds.h" +#include "images/PrIcon.xpm" + +BEGIN_EVENT_TABLE(wxCDMApplicationDescriptionPanel, wxPanel) +EVT_MENU(ID_BUTTON_CREATE_FOLDER, wxCDMApplicationDescriptionPanel::OnBtnCreateFolder) +EVT_MENU(ID_BUTTON_EDIT_CMAKELISTSFILE, wxCDMApplicationDescriptionPanel::OnBtnEditCMakeLists) +END_EVENT_TABLE() + +wxCDMApplicationDescriptionPanel::wxCDMApplicationDescriptionPanel( + wxWindow* parent, + modelCDMApplication* application, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxCDMApplicationDescriptionPanel::Create(parent, application, id, caption, pos, size, style); +} + +wxCDMApplicationDescriptionPanel::~wxCDMApplicationDescriptionPanel() +{ +} + +bool wxCDMApplicationDescriptionPanel::Create( + wxWindow* parent, + modelCDMApplication* application, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxPanel::Create(parent, id, pos, size, style); + this->application = application; + CreateControls(); + return TRUE; +} + +void wxCDMApplicationDescriptionPanel::CreateControls() +{ + wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); + + //Welcome + sizer->Add(new wxStaticText(this, -1, _("Project")),0, wxALIGN_CENTER, 0); + + //Image + sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(PrIcon)),0, wxALIGN_CENTER, 0); + + //Project Name + sizer->Add(new wxStaticText(this, -1, crea::std2wx(this->application->GetNameApplication())),0, wxALIGN_CENTER, 0); + + //Project Properties + wxStaticBox* propertiesBox = new wxStaticBox(this, -1, _T("&Properties")); + wxStaticBoxSizer* propertiesBoxInnerSizer = new wxStaticBoxSizer(propertiesBox, wxVERTICAL); + + wxFlexGridSizer* flexGridSizer = new wxFlexGridSizer(4, 2, 9, 15); + + wxStaticText *pMainFile = new wxStaticText(this, -1, wxT("Main File")); + + wxTextCtrl *pMainFiletc = new wxTextCtrl(this, -1, crea::std2wx(this->application->GetMainFile())); + + flexGridSizer->Add(pMainFile, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pMainFiletc, 1, wxEXPAND); + + propertiesBoxInnerSizer -> Add(flexGridSizer, 0, wxEXPAND); + sizer -> Add(propertiesBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + //Actions + wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions")); + wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL); + sizer -> Add(actionsBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_CREATE_FOLDER, _T("Create Folder")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_EDIT_CMAKELISTSFILE, _T("Edit CMakeLists File")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + + //Assign sizer + actionsBoxInnerSizer->SetSizeHints(this); + + SetSizer(sizer); + sizer->SetSizeHints(this); +} + +void wxCDMApplicationDescriptionPanel::OnBtnCreateFolder(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnCreateFolder not implemented" << std::endl; + event.Skip(); +} + +void wxCDMApplicationDescriptionPanel::OnBtnEditCMakeLists(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnEditCMakeLists not implemented" << std::endl; + event.Skip(); +} diff --git a/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.h new file mode 100644 index 0000000..37306b8 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMApplicationDescriptionPanel.h @@ -0,0 +1,81 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMApplicationDescriptionPanel.h + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef WXCDMAPPLICATIONDESCRIPTIONPANEL_H_ +#define WXCDMAPPLICATIONDESCRIPTIONPANEL_H_ + +#include +#include + +#include "modelCDMApplication.h" + +class wxCDMApplicationDescriptionPanel : public wxPanel +{ + DECLARE_EVENT_TABLE() +public: + wxCDMApplicationDescriptionPanel( + wxWindow* parent, + modelCDMApplication* application, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + ~wxCDMApplicationDescriptionPanel(); + + bool Create( + wxWindow* parent, + modelCDMApplication* application, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + void CreateControls(); + +private: + modelCDMApplication* application; + + //handlers +protected: + void OnBtnCreateFolder(wxCommandEvent& event); + void OnBtnEditCMakeLists(wxCommandEvent& event); + +}; + +#endif /* WXCDMAPPLICATIONDESCRIPTIONPANEL_H_ */ diff --git a/lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.cpp new file mode 100644 index 0000000..44d60e8 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.cpp @@ -0,0 +1,147 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMLibraryDescriptionPanel.cpp + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "wxCDMBlackBoxDescriptionPanel.h" + +#include "creaDevManagerIds.h" +#include "images/BBIcon.xpm" + +BEGIN_EVENT_TABLE(wxCDMBlackBoxDescriptionPanel, wxPanel) +EVT_MENU(ID_BUTTON_OPEN_CXX, wxCDMBlackBoxDescriptionPanel::OnBtnOpenCxx) +EVT_MENU(ID_BUTTON_OPEN_HXX, wxCDMBlackBoxDescriptionPanel::OnBtnOpenHxx) +END_EVENT_TABLE() + +wxCDMBlackBoxDescriptionPanel::wxCDMBlackBoxDescriptionPanel( + wxWindow* parent, + modelCDMBlackBox* blackBox, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxCDMBlackBoxDescriptionPanel::Create(parent, blackBox, id, caption, pos, size, style); +} + +wxCDMBlackBoxDescriptionPanel::~wxCDMBlackBoxDescriptionPanel() +{ +} + +bool wxCDMBlackBoxDescriptionPanel::Create( + wxWindow* parent, + modelCDMBlackBox* blackBox, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxPanel::Create(parent, id, pos, size, style); + this->blackBox = blackBox; + CreateControls(); + return TRUE; +} + +void wxCDMBlackBoxDescriptionPanel::CreateControls() +{ + wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); + + //Welcome + sizer->Add(new wxStaticText(this, -1, _("Black Box")),0, wxALIGN_CENTER, 0); + + //Image + sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(BBIcon)),0, wxALIGN_CENTER, 0); + + //BlackBox Name + sizer->Add(new wxStaticText(this, -1, crea::std2wx(this->blackBox->GetNameBlackBox())),0, wxALIGN_CENTER, 0); + + //BlackBox Properties + wxStaticBox* propertiesBox = new wxStaticBox(this, -1, _T("&Properties")); + wxStaticBoxSizer* propertiesBoxInnerSizer = new wxStaticBoxSizer(propertiesBox, wxVERTICAL); + + wxFlexGridSizer* flexGridSizer = new wxFlexGridSizer(4, 2, 9, 15); + + wxStaticText *pAuthor = new wxStaticText(this, -1, wxT("Author")); + wxStaticText *pAuthorEmail = new wxStaticText(this, -1, wxT("Author E-mail")); + wxStaticText *pCategories = new wxStaticText(this, -1, wxT("Categories")); + wxStaticText *pDescription = new wxStaticText(this, -1, wxT("Description")); + + wxTextCtrl *pAuthortc = new wxTextCtrl(this, -1, crea::std2wx(this->blackBox->GetAuthors())); + wxTextCtrl *pAuthorEmailtc = new wxTextCtrl(this, -1, crea::std2wx(this->blackBox->GetAuthorsEmail())); + wxTextCtrl *pCategoriestc = new wxTextCtrl(this, -1, crea::std2wx(this->blackBox->GetCategories())); + wxTextCtrl *pDescriptiontc = new wxTextCtrl(this, -1, crea::std2wx(this->blackBox->GetDescription())); + + flexGridSizer->Add(pAuthor, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pAuthortc, 1, wxEXPAND); + flexGridSizer->Add(pAuthorEmail, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pAuthorEmailtc, 1, wxEXPAND); + flexGridSizer->Add(pCategories, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pCategoriestc, 1, wxEXPAND); + flexGridSizer->Add(pDescription, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pDescriptiontc, 1, wxEXPAND); + + propertiesBoxInnerSizer -> Add(flexGridSizer, 0, wxEXPAND); + sizer -> Add(propertiesBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + + //Actions + wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions")); + wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL); + sizer -> Add(actionsBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_OPEN_CXX, _T("Open Cxx")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_OPEN_HXX, _T("Open Hxx")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + + //Assign sizer + actionsBoxInnerSizer->SetSizeHints(this); + + SetSizer(sizer); + sizer->SetSizeHints(this); +} + +void wxCDMBlackBoxDescriptionPanel::OnBtnOpenCxx(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnOpenCxx not implemented" << std::endl; + event.Skip(); +} + +void wxCDMBlackBoxDescriptionPanel::OnBtnOpenHxx(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnOpenHxx not implemented" << std::endl; + event.Skip(); +} diff --git a/lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.h new file mode 100644 index 0000000..e14e621 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMBlackBoxDescriptionPanel.h @@ -0,0 +1,81 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMBlackBoxDescriptionPanel.h + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef WXCDMBLACKBOXDESCRIPTIONPANEL_H_ +#define WXCDMBLACKBOXDESCRIPTIONPANEL_H_ + +#include +#include + +#include "modelCDMBlackBox.h" + +class wxCDMBlackBoxDescriptionPanel : public wxPanel +{ + DECLARE_EVENT_TABLE() +public: + wxCDMBlackBoxDescriptionPanel( + wxWindow* parent, + modelCDMBlackBox* blackBox, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + ~wxCDMBlackBoxDescriptionPanel(); + + bool Create( + wxWindow* parent, + modelCDMBlackBox* blackBox, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + void CreateControls(); + +private: + modelCDMBlackBox* blackBox; + + //handlers +protected: + void OnBtnOpenCxx(wxCommandEvent& event); + void OnBtnOpenHxx(wxCommandEvent& event); + +}; + +#endif /* WXCDMBLACKBOXDESCRIPTIONPANEL_H_ */ diff --git a/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.cpp new file mode 100644 index 0000000..c9dd6bc --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.cpp @@ -0,0 +1,115 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMLibDescriptionPanel.cpp + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "wxCDMLibDescriptionPanel.h" + +#include "creaDevManagerIds.h" +#include "images/PrIcon.xpm" + +BEGIN_EVENT_TABLE(wxCDMLibDescriptionPanel, wxPanel) +EVT_MENU(ID_BUTTON_CREATE_LIBRARY, wxCDMLibDescriptionPanel::OnBtnCreateLibrary) +EVT_MENU(ID_BUTTON_EDIT_CMAKELISTSFILE, wxCDMLibDescriptionPanel::OnBtnEditCMakeLists) +END_EVENT_TABLE() + +wxCDMLibDescriptionPanel::wxCDMLibDescriptionPanel( + wxWindow* parent, + modelCDMLib* lib, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxCDMLibDescriptionPanel::Create(parent, lib, id, caption, pos, size, style); +} + +wxCDMLibDescriptionPanel::~wxCDMLibDescriptionPanel() +{ +} + +bool wxCDMLibDescriptionPanel::Create( + wxWindow* parent, + modelCDMLib* lib, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxPanel::Create(parent, id, pos, size, style); + this->lib = lib; + CreateControls(); + return TRUE; +} + +void wxCDMLibDescriptionPanel::CreateControls() +{ + wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); + + //Welcome + sizer->Add(new wxStaticText(this, -1, _("Libraries")),0, wxALIGN_CENTER, 0); + + //Image + sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(PrIcon)),0, wxALIGN_CENTER, 0); + + //Actions + wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions")); + wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL); + sizer -> Add(actionsBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_CREATE_LIBRARY, _T("Create Library")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_EDIT_CMAKELISTSFILE, _T("Edit CMakeLists File")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + + //Assign sizer + actionsBoxInnerSizer->SetSizeHints(this); + + SetSizer(sizer); + sizer->SetSizeHints(this); +} + +void wxCDMLibDescriptionPanel::OnBtnCreateLibrary(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnCreateLibrary not implemented" << std::endl; + event.Skip(); +} + +void wxCDMLibDescriptionPanel::OnBtnEditCMakeLists(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnEditCMakeLists not implemented" << std::endl; + event.Skip(); +} diff --git a/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.h new file mode 100644 index 0000000..bf324e9 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMLibDescriptionPanel.h @@ -0,0 +1,81 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMLibDescriptionPanel.h + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef WXCDMLIBDESCRIPTIONPANEL_H_ +#define WXCDMLIBDESCRIPTIONPANEL_H_ + +#include +#include + +#include "modelCDMLib.h" + +class wxCDMLibDescriptionPanel : public wxPanel +{ + DECLARE_EVENT_TABLE() +public: + wxCDMLibDescriptionPanel( + wxWindow* parent, + modelCDMLib* lib, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + ~wxCDMLibDescriptionPanel(); + + bool Create( + wxWindow* parent, + modelCDMLib* lib, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + void CreateControls(); + +private: + modelCDMLib* lib; + + //handlers +protected: + void OnBtnCreateLibrary(wxCommandEvent& event); + void OnBtnEditCMakeLists(wxCommandEvent& event); + +}; + +#endif /* WXCDMLIBDESCRIPTIONPANEL_H_ */ diff --git a/lib/creaDevManagerLib/wxCDMLibraryDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMLibraryDescriptionPanel.cpp new file mode 100644 index 0000000..8bbaf91 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMLibraryDescriptionPanel.cpp @@ -0,0 +1,118 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMLibraryDescriptionPanel.cpp + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "wxCDMLibraryDescriptionPanel.h" + +#include "creaDevManagerIds.h" +#include "images/LIcon.xpm" + +BEGIN_EVENT_TABLE(wxCDMLibraryDescriptionPanel, wxPanel) +EVT_MENU(ID_BUTTON_CREATE_FOLDER, wxCDMLibraryDescriptionPanel::OnBtnCreateFolder) +EVT_MENU(ID_BUTTON_EDIT_CMAKELISTSFILE, wxCDMLibraryDescriptionPanel::OnBtnEditCMakeLists) +END_EVENT_TABLE() + +wxCDMLibraryDescriptionPanel::wxCDMLibraryDescriptionPanel( + wxWindow* parent, + modelCDMLibrary* library, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxCDMLibraryDescriptionPanel::Create(parent, library, id, caption, pos, size, style); +} + +wxCDMLibraryDescriptionPanel::~wxCDMLibraryDescriptionPanel() +{ +} + +bool wxCDMLibraryDescriptionPanel::Create( + wxWindow* parent, + modelCDMLibrary* library, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxPanel::Create(parent, id, pos, size, style); + this->library = library; + CreateControls(); + return TRUE; +} + +void wxCDMLibraryDescriptionPanel::CreateControls() +{ + wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); + + //Welcome + sizer->Add(new wxStaticText(this, -1, _("Library")),0, wxALIGN_CENTER, 0); + + //Image + sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(LIcon)),0, wxALIGN_CENTER, 0); + + //Project Name + sizer->Add(new wxStaticText(this, -1, crea::std2wx(this->library->GetNameLibrary())),0, wxALIGN_CENTER, 0); + + //Actions + wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions")); + wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL); + sizer -> Add(actionsBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_CREATE_FOLDER, _T("Create Folder")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_EDIT_CMAKELISTSFILE, _T("Edit CMakeLists File")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + + //Assign sizer + actionsBoxInnerSizer->SetSizeHints(this); + + SetSizer(sizer); + sizer->SetSizeHints(this); +} + +void wxCDMLibraryDescriptionPanel::OnBtnCreateFolder(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnCreateFolder not implemented" << std::endl; + event.Skip(); +} + +void wxCDMLibraryDescriptionPanel::OnBtnEditCMakeLists(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnEditCMakeLists not implemented" << std::endl; + event.Skip(); +} diff --git a/lib/creaDevManagerLib/wxCDMLibraryDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMLibraryDescriptionPanel.h new file mode 100644 index 0000000..d96e5d3 --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMLibraryDescriptionPanel.h @@ -0,0 +1,81 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMLibraryDescriptionPanel.h + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef WXCDMLIBRARYDESCRIPTIONPANEL_H_ +#define WXCDMLIBRARYDESCRIPTIONPANEL_H_ + +#include +#include + +#include "modelCDMLibrary.h" + +class wxCDMLibraryDescriptionPanel : public wxPanel +{ + DECLARE_EVENT_TABLE() +public: + wxCDMLibraryDescriptionPanel( + wxWindow* parent, + modelCDMLibrary* library, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + ~wxCDMLibraryDescriptionPanel(); + + bool Create( + wxWindow* parent, + modelCDMLibrary* library, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + void CreateControls(); + +private: + modelCDMLibrary* library; + + //handlers +protected: + void OnBtnCreateFolder(wxCommandEvent& event); + void OnBtnEditCMakeLists(wxCommandEvent& event); + +}; + +#endif /* WXCDMLIBRARYDESCRIPTIONPANEL_H_ */ diff --git a/lib/creaDevManagerLib/wxCDMPackageDescriptionPanel.cpp b/lib/creaDevManagerLib/wxCDMPackageDescriptionPanel.cpp new file mode 100644 index 0000000..a7f7a4e --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMPackageDescriptionPanel.cpp @@ -0,0 +1,147 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMPackageDescriptionPanel.cpp + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#include "wxCDMPackageDescriptionPanel.h" + +#include "creaDevManagerIds.h" +#include "images/PkIcon.xpm" + +BEGIN_EVENT_TABLE(wxCDMPackageDescriptionPanel, wxPanel) +EVT_MENU(ID_BUTTON_CREATE_BLACKBOX, wxCDMPackageDescriptionPanel::OnBtnCreateBlackBox) +EVT_MENU(ID_BUTTON_EDIT_CMAKELISTSFILE, wxCDMPackageDescriptionPanel::OnBtnEditCMakeLists) +END_EVENT_TABLE() + +wxCDMPackageDescriptionPanel::wxCDMPackageDescriptionPanel( + wxWindow* parent, + modelCDMPackage* package, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxCDMPackageDescriptionPanel::Create(parent, package, id, caption, pos, size, style); +} + +wxCDMPackageDescriptionPanel::~wxCDMPackageDescriptionPanel() +{ +} + +bool wxCDMPackageDescriptionPanel::Create( + wxWindow* parent, + modelCDMPackage* package, + wxWindowID id, + const wxString& caption, + const wxPoint& pos, + const wxSize& size, + long style +) +{ + wxPanel::Create(parent, id, pos, size, style); + this->package = package; + CreateControls(); + return TRUE; +} + +void wxCDMPackageDescriptionPanel::CreateControls() +{ + wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); + + //Welcome + sizer->Add(new wxStaticText(this, -1, _("Package")),0, wxALIGN_CENTER, 0); + + //Image + sizer->Add(new wxStaticBitmap(this, -1, wxBitmap(PkIcon)),0, wxALIGN_CENTER, 0); + + //Project Name + sizer->Add(new wxStaticText(this, -1, crea::std2wx(this->package->GetNamePackage())),0, wxALIGN_CENTER, 0); + + //Project Properties + wxStaticBox* propertiesBox = new wxStaticBox(this, -1, _T("&Properties")); + wxStaticBoxSizer* propertiesBoxInnerSizer = new wxStaticBoxSizer(propertiesBox, wxVERTICAL); + + wxFlexGridSizer* flexGridSizer = new wxFlexGridSizer(4, 2, 9, 15); + + wxStaticText *pAuthor = new wxStaticText(this, -1, wxT("Author")); + wxStaticText *pAuthorEmail = new wxStaticText(this, -1, wxT("Author E-mail")); + wxStaticText *pVersion = new wxStaticText(this, -1, wxT("Version")); + wxStaticText *pDescription = new wxStaticText(this, -1, wxT("Description")); + + wxTextCtrl *pAuthortc = new wxTextCtrl(this, -1, crea::std2wx(this->package->GetAuthors())); + wxTextCtrl *pAuthorEmailtc = new wxTextCtrl(this, -1, crea::std2wx(this->package->GetAuthorsEmail())); + wxTextCtrl *pVersiontc = new wxTextCtrl(this, -1, crea::std2wx(this->package->GetVersion())); + wxTextCtrl *pDescriptiontc = new wxTextCtrl(this, -1, crea::std2wx(this->package->GetDescription())); + + flexGridSizer->Add(pAuthor, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pAuthortc, 1, wxEXPAND); + flexGridSizer->Add(pAuthorEmail, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pAuthorEmailtc, 1, wxEXPAND); + flexGridSizer->Add(pVersion, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pVersiontc, 1, wxEXPAND); + flexGridSizer->Add(pDescription, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL); + flexGridSizer->Add(pDescriptiontc, 1, wxEXPAND); + + propertiesBoxInnerSizer -> Add(flexGridSizer, 0, wxEXPAND); + sizer -> Add(propertiesBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + //Actions + wxStaticBox* actionsBox = new wxStaticBox(this, -1, _T("&Actions")); + wxStaticBoxSizer* actionsBoxInnerSizer = new wxStaticBoxSizer(actionsBox, wxVERTICAL); + sizer -> Add(actionsBoxInnerSizer, 1, wxEXPAND | wxALL, 20); + + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_CREATE_BLACKBOX, _T("Create Black Box")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + + actionsBoxInnerSizer->Add(new wxButton(this, ID_BUTTON_EDIT_CMAKELISTSFILE, _T("Edit CMakeLists File")), 0, wxEXPAND | wxRIGHT | wxLEFT, 20); + + //Assign sizer + actionsBoxInnerSizer->SetSizeHints(this); + + SetSizer(sizer); + sizer->SetSizeHints(this); +} + +void wxCDMPackageDescriptionPanel::OnBtnCreateBlackBox(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnCreateBlackBox not implemented" << std::endl; + event.Skip(); +} + +void wxCDMPackageDescriptionPanel::OnBtnEditCMakeLists(wxCommandEvent& event) +{ + //TODO: implement method + std::cerr << "Event OnBtnEditCMakeLists not implemented" << std::endl; + event.Skip(); +} diff --git a/lib/creaDevManagerLib/wxCDMPackageDescriptionPanel.h b/lib/creaDevManagerLib/wxCDMPackageDescriptionPanel.h new file mode 100644 index 0000000..b6d7b1b --- /dev/null +++ b/lib/creaDevManagerLib/wxCDMPackageDescriptionPanel.h @@ -0,0 +1,81 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Sant�) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# Previous Authors : Laurent Guigues, Jean-Pierre Roux +# CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil +# +# This software is governed by the CeCILL-B license under French law and +# abiding by the rules of distribution of free software. You can use, +# modify and/ or redistribute the software under the terms of the CeCILL-B +# license as circulated by CEA, CNRS and INRIA at the following URL +# http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html +# or in the file LICENSE.txt. +# +# As a counterpart to the access to the source code and rights to copy, +# modify and redistribute granted by the license, users are provided only +# with a limited warranty and the software's author, the holder of the +# economic rights, and the successive licensors have only limited +# liability. +# +# 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. +# ------------------------------------------------------------------------ + */ + +/* + * wxCDMPackageDescriptionPanel.h + * + * Created on: Nov 27, 2012 + * Author: Daniel Felipe Gonzalez Obando + */ + +#ifndef WXCDMPACKAGEDESCRIPTIONPANEL_H_ +#define WXCDMPACKAGEDESCRIPTIONPANEL_H_ + +#include +#include + +#include "modelCDMPackage.h" + +class wxCDMPackageDescriptionPanel : public wxPanel +{ + DECLARE_EVENT_TABLE() +public: + wxCDMPackageDescriptionPanel( + wxWindow* parent, + modelCDMPackage* package, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + ~wxCDMPackageDescriptionPanel(); + + bool Create( + wxWindow* parent, + modelCDMPackage* package, + wxWindowID id = -1, + const wxString& caption = _("Description Frame"), + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_FRAME_STYLE + ); + + void CreateControls(); + +private: + modelCDMPackage* package; + + //handlers +protected: + void OnBtnCreateBlackBox(wxCommandEvent& event); + void OnBtnEditCMakeLists(wxCommandEvent& event); + +}; + +#endif /* WXCDMPACKAGEDESCRIPTIONPANEL_H_ */ -- 2.45.1