X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src2%2FcreaImageIOTreeView.h;h=a1cb4b2e4cfac5f0ff75df1e651703aa2bf17cdd;hb=e4a54c9026a2a0c17e3be0b5915c34688a9385ad;hp=5bfb116c9fba0458e536b7bf11dd9a46d392a41f;hpb=7c5180e6b19690ba9a264f2a66c04bc0a03c53ef;p=creaImageIO.git diff --git a/src2/creaImageIOTreeView.h b/src2/creaImageIOTreeView.h index 5bfb116..a1cb4b2 100644 --- a/src2/creaImageIOTreeView.h +++ b/src2/creaImageIOTreeView.h @@ -2,6 +2,7 @@ #define __creaImageIOTreeView_h_INCLUDED__ #include +#include #include #include @@ -31,33 +32,45 @@ namespace creaImageIO virtual void UpdateLevel( int ) { GimmickError("INTERNAL ERROR : TreeView::UpdateLevel not overloaded");} - ///Removes selected nodes on given level - virtual void RemoveSelected( int ) + ///Removes selected nodes + virtual void RemoveSelected( ) { GimmickError("INTERNAL ERROR : TreeView::RemoveSelected not overloaded");} ///Validates the selected images virtual void ValidateSelectedImages() { GimmickError("INTERNAL ERROR : TreeView::ValidateSelected not overloaded");} + ///Returns the last selected level + virtual unsigned int GetLastSelectedLevel(){GimmickError("INTERNAL ERROR : TreeView::GetLastSelectedLevel not overloaded");} + ///Returns the maximum number of levels virtual int GetNumberOfLevels(){ GimmickError("INTERNAL ERROR : TreeView::GetLevels not overloaded"); } ///Gets the current selections filenames virtual void GetSelectedAsString(std::vector&s){ GimmickError("INTERNAL ERROR : TreeView::GetSelectedAsString not overloaded"); } /// Gets the user selected data from the level passed as a parameter - virtual std::vector GetSelected(int level){ GimmickError("INTERNAL ERROR : TreeView::GetSelected not overloaded"); } + virtual const std::vector& GetSelected(int level){ GimmickError("INTERNAL ERROR : TreeView::GetSelected not overloaded"); } /// Gets the next nodes on the list, be it up(true) or down(false). virtual void GetNodes(std::vector& nodes, bool direction){ GimmickError("INTERNAL ERROR : TreeView::GetNodes not overloaded"); } + /// Gets the attributes that are being shown and the ones that have been blocked on a specific level + virtual void GetAttributes(std::vector& areShown, std::vector& notShown, int level){ GimmickError("INTERNAL ERROR : TreeView::GetAttributes not overloaded"); } + + ///Sets the non visible attributes and refreshes the GUI + virtual void SetNonVisibleAttributes(const std::vector& notShown, int level){ GimmickError("INTERNAL ERROR : TreeView::SetNonVisibleAttributes not overloaded"); } + + ///Creates a new listctrl + virtual void CreateCtrl(std::vector& notShown, int nlevel){ GimmickError("INTERNAL ERROR : TreeView::CreateCtrl not overloaded"); } + protected: TreeHandler* GetTreeHandler() { return mTreeHandler; } - GimmickView* GetGimmickView() { return mGimmickView; } + GimmickView* GetGimmickView() { return mGimmickView; } private: /// The TreeHandler with which it corresponds TreeHandler* mTreeHandler; - /// The GimmickView which holds the TreeView + /// The GimmickView which holds the TreeView GimmickView* mGimmickView; };