#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_ */
#include<iostream>
#include<vector>
-#include"modelCDMIProjectTreeNode.h"
+#include"modelCDMFolder.h"
#include"modelCDMApplication.h"
-class modelCDMAppli : public modelCDMIProjectTreeNode
+class modelCDMAppli : public modelCDMFolder
{
public:
modelCDMAppli();
#include<iostream>
#include<vector>
-#include"modelCDMIProjectTreeNode.h"
+#include"modelCDMFolder.h"
-class modelCDMApplication : public modelCDMIProjectTreeNode
+class modelCDMApplication : public modelCDMFolder
{
public:
modelCDMApplication();
{
}
-const std::string& modelCDMBlackBox::GetName() const
+const std::string& modelCDMBlackBox::GetNameBlackBox() const
{
- return this->name;
+ return this->nameBlackBox;
}
const std::string& modelCDMBlackBox::GetAuthors() const
return true;
}
-bool modelCDMBlackBox::Refresh(std::string*& result)
+const bool modelCDMBlackBox::Refresh(std::string*& result)
{
//TODO: implement method
return true;
#include<iostream>
-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;
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;
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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;
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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_ */
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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;
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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<iostream>
+#include<vector>
+
+#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_ */
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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;
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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<iostream>
+#include<vector>
+
+#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<modelCDMFolder*> folders;
+};
+
+#endif /* MODELCDMFOLDER_H_ */
#include<iostream>
#include<vector>
-#include "modelCDMIProjectTreeNode.h"
+#include "modelCDMFolder.h"
#include "modelCDMLibrary.h"
-class modelCDMLib : public modelCDMIProjectTreeNode
+class modelCDMLib : public modelCDMFolder
{
public:
modelCDMLib();
#include<iostream>
#include<vector>
-#include "modelCDMIProjectTreeNode.h"
+#include "modelCDMFolder.h"
-class modelCDMLibrary : public modelCDMIProjectTreeNode
+class modelCDMLibrary : public modelCDMFolder
{
public:
modelCDMLibrary();
#include<iostream>
#include<vector>
-#include"modelCDMIProjectTreeNode.h"
+#include"modelCDMFolder.h"
#include"modelCDMBlackBox.h"
-class modelCDMPackage : public modelCDMIProjectTreeNode
+class modelCDMPackage : public modelCDMFolder
{
public:
modelCDMPackage();
#include<iostream>
#include<vector>
-#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();
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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();
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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 <creaWx.h>
+#include <wx/panel.h>
+
+#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_ */
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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();
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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 <creaWx.h>
+#include <wx/panel.h>
+
+#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_ */
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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();
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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 <creaWx.h>
+#include <wx/panel.h>
+
+#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_ */
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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();
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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 <creaWx.h>
+#include <wx/panel.h>
+
+#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_ */
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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();
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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 <creaWx.h>
+#include <wx/panel.h>
+
+#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_ */
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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();
+}
--- /dev/null
+/*
+# ---------------------------------------------------------------------
+#
+# 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 <creaWx.h>
+#include <wx/panel.h>
+
+#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_ */