]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMIProjectTreeNode.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMIProjectTreeNode.h
index b74c6f11ccdbac6baaf6c19683f3ec73ff418df5..6d5c680f0dfca9b6c3336062a8a53f78690028f2 100644 (file)
@@ -45,7 +45,7 @@ class modelCDMIProjectTreeNode
 public:
   virtual ~modelCDMIProjectTreeNode() {}
 
-  static bool CompareNodeItem(const modelCDMIProjectTreeNode& x, const modelCDMIProjectTreeNode& y);
+  static bool CompareNodeItem(const modelCDMIProjectTreeNode* x, const modelCDMIProjectTreeNode* y);
 
   const wxTreeItemId& GetId() const;
   const std::string& GetPath() const;
@@ -53,7 +53,9 @@ public:
   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);
 
   virtual const bool Refresh(std::string*& result);
@@ -65,6 +67,7 @@ protected:
   std::string name;
   unsigned char type;
   int level;
+  int length;
   std::vector<modelCDMIProjectTreeNode*> children;
 
 };