]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMAppli.cpp
Black Box view and folder structure implemented
[crea.git] / lib / creaDevManagerLib / modelCDMAppli.cpp
index ebd4de0170deefe08dd3e8d453bf5739a1325c44..e35a9c50126c7a47a0b76b23ff03ed10d94e136d 100644 (file)
@@ -74,6 +74,26 @@ modelCDMAppli::modelCDMAppli(const std::string& path, const int& level)
 
           cont = dir.GetNext(&fileName);
         }
+      //files
+      cont = dir.GetFirst(&fileName, wxEmptyString, wxDIR_FILES);
+      while (cont)
+        {
+          std::string stdfileName = crea::wx2std(fileName);
+
+          //if CMakeLists, create CMakeLists
+          if(stdfileName == "CMakeLists.txt")
+            {
+              this->CMakeLists = new modelCDMCMakeListsFile(pathFixed + "/" + stdfileName, this->level + 1);
+              this->children.push_back(this->CMakeLists);
+            }
+          //if is an unknown file, create file
+          else
+            {
+              this->children.push_back(new modelCDMFile(pathFixed + "/" + stdfileName, this->level + 1));
+            }
+
+          cont = dir.GetNext(&fileName);
+        }
 
     }
   this->SortChildren();