]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMIProjectTreeNode.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMIProjectTreeNode.cpp
index b444af28d2f8bf922a0e9aa510f158c7a1a9abdd..1c9db624a2e58e1d387ccaf804e9933effca0517 100644 (file)
@@ -34,6 +34,8 @@
 #include "modelCDMIProjectTreeNode.h"
 #include <algorithm>
 
+#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