X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMIProjectTreeNode.cpp;h=1c9db624a2e58e1d387ccaf804e9933effca0517;hb=ae979655a8f5e455fb8381c2cbf081ac0ec18132;hp=b444af28d2f8bf922a0e9aa510f158c7a1a9abdd;hpb=62dfbfc86db5ed98a2272d0b6620af1711791c27;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMIProjectTreeNode.cpp b/lib/creaDevManagerLib/modelCDMIProjectTreeNode.cpp index b444af2..1c9db62 100644 --- a/lib/creaDevManagerLib/modelCDMIProjectTreeNode.cpp +++ b/lib/creaDevManagerLib/modelCDMIProjectTreeNode.cpp @@ -34,6 +34,8 @@ #include "modelCDMIProjectTreeNode.h" #include +#include "wx/dir.h" + bool modelCDMIProjectTreeNode::CompareNodeItem(const modelCDMIProjectTreeNode* x, const modelCDMIProjectTreeNode* y) { bool returnValue; @@ -71,7 +73,7 @@ bool modelCDMIProjectTreeNode::CompareNodeItem(const modelCDMIProjectTreeNode* x if(xType != yType) { - if(xType == DT_DIR) + if(xType == wxDIR_DIRS) returnValue = true; else returnValue = false; @@ -133,6 +135,11 @@ const bool modelCDMIProjectTreeNode::Refresh(std::string*& result) return false; } +const int& modelCDMIProjectTreeNode::GetLength() +{ + return this->length; +} + const bool modelCDMIProjectTreeNode::OpenInFileExplorer(std::string*& result) const { //TODO: implement method