X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMIProjectTreeNode.h;h=6d5c680f0dfca9b6c3336062a8a53f78690028f2;hb=9db3dcfa7151c22fb19fe0202ec03b4e8ac3f4b4;hp=4d06cb6209774713a9bdfc5f4954543841d0db8f;hpb=e2223b619fa37daaf6103b34b39e789efc1a0b94;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMIProjectTreeNode.h b/lib/creaDevManagerLib/modelCDMIProjectTreeNode.h index 4d06cb6..6d5c680 100644 --- a/lib/creaDevManagerLib/modelCDMIProjectTreeNode.h +++ b/lib/creaDevManagerLib/modelCDMIProjectTreeNode.h @@ -37,27 +37,37 @@ #include #include +#include +#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& GetChildren() const; + const int& GetLength(); + void SetId(const wxTreeItemId& id); + void SortChildren(); void SetChildren(const std::vector& 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 children; };