]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMIProjectTreeNode.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMIProjectTreeNode.h
index 4d06cb6209774713a9bdfc5f4954543841d0db8f..6d5c680f0dfca9b6c3336062a8a53f78690028f2 100644 (file)
 
 #include <iostream>
 #include <vector>
+#include <creaWx.h>
+#include "wx/treectrl.h"
 
 class modelCDMIProjectTreeNode
 {
 public:
-  virtual ~modelCDMIProjectTreeNode(){}
+  virtual ~modelCDMIProjectTreeNode() {}
 
+  static bool CompareNodeItem(const modelCDMIProjectTreeNode* x, const modelCDMIProjectTreeNode* y);
+
+  const wxTreeItemId& GetId() const;
   const std::string& GetPath() const;
   const std::string& GetName() const;
   const unsigned char& GetType() const;
   const int& GetLevel() const;
   const std::vector<modelCDMIProjectTreeNode*>& GetChildren() const;
+  const int& GetLength();
+  void SetId(const wxTreeItemId& id);
+  void SortChildren();
   void SetChildren(const std::vector<modelCDMIProjectTreeNode*>& children);
 
-  const bool& Refresh(std::string*& result);
-  const bool& OpenInFileExplorer(std::string*& result) const;
+  virtual const bool Refresh(std::string*& result);
+  const bool OpenInFileExplorer(std::string*& result) const;
 
 protected:
+  wxTreeItemId id;
   std::string path;
   std::string name;
   unsigned char type;
   int level;
+  int length;
   std::vector<modelCDMIProjectTreeNode*> children;
 
 };