]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTreeView.h
No newline at end of file
[creaImageIO.git] / src2 / creaImageIOTreeView.h
index c5fab53309688d504ffe3ba338885ed793a6234e..a1cb4b2e4cfac5f0ff75df1e651703aa2bf17cdd 100644 (file)
@@ -23,7 +23,7 @@ namespace creaImageIO
     {
     public:
       /// Ctor
-      TreeView(TreeHandler*,TimestampDatabaseHandler*,GimmickView*);
+      TreeView(TreeHandler*,GimmickView*);
       /// Virtual destructor
       virtual ~TreeView();
 
@@ -40,6 +40,9 @@ namespace creaImageIO
       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
@@ -51,17 +54,23 @@ namespace creaImageIO
          /// Gets the next nodes on the list, be it up(true) or down(false).
       virtual void GetNodes(std::vector<tree::Node*>& 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<std::string>& areShown, std::vector<std::string>& 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<std::string>& notShown, int level){ GimmickError("INTERNAL ERROR : TreeView::SetNonVisibleAttributes not overloaded"); }
+
+         ///Creates a new listctrl
+         virtual void CreateCtrl(std::vector<std::string>& notShown, int nlevel){ GimmickError("INTERNAL ERROR : TreeView::CreateCtrl not overloaded"); }
+
     protected:
       TreeHandler* GetTreeHandler() { return mTreeHandler; }
-         TimestampDatabaseHandler* GetTimestampDatabaseHandler() { return mTimestampDatabaseHandler; }
-      GimmickView* GetGimmickView() { return mGimmickView; }
+         GimmickView* GetGimmickView() { return mGimmickView; }
         
     private:
       /// The TreeHandler with which it corresponds
       TreeHandler* mTreeHandler;
-          /// The Timestamp handler with which it corresponds
-         TimestampDatabaseHandler* mTimestampDatabaseHandler;
-      /// The GimmickView which holds the TreeView
+         /// The GimmickView which holds the TreeView
       GimmickView* mGimmickView;  
 
   };