# ---------------------------------------------------------------------
#
# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
-# pour la Santé)
+# 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
* ModelCreaDevManagerTree.cpp
*
* Created on: 22/10/2012
- * Author: daniel
+ * Author: Daniel Felipe Gonzalez Obando
*/
#include "modelCDMProjectsTree.h"
if(xType != yType)
{
- if(xType == DT_DIR)
+ if(xType == wxDIR_DIRS)
returnValue = true;
else
returnValue = false;
}
path = "/";
- for (int i = 0; i < breadcrumbs.size()-1; i++)
+ for (int i = 0; i < (int)(breadcrumbs.size())-1; i++)
{
path += breadcrumbs[i] + "/";
}
if(!projectFound)
{
- this->projectRoot = modelCDMProjectsTreeNode(path,name,DT_DIR,0);
+ this->projectRoot = modelCDMProjectsTreeNode(path,name,wxDIR_DIRS ,0);
}else{
std::cout << "already existing ";
}
std::string path = node.GetPath()+node.GetName()+"/";
- wxDir dir(wxString(path.c_str()));
+ wxDir dir(crea::std2wx(path.c_str()));
if (!dir.IsOpened())
{
std::cerr << "Couldn't open the directory" << std::endl;