]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMIProjectTreeNode.h
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMIProjectTreeNode.h
index 4d06cb6209774713a9bdfc5f4954543841d0db8f..b74c6f11ccdbac6baaf6c19683f3ec73ff418df5 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;
+  void SetId(const wxTreeItemId& id);
   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;