]> Creatis software - bbtk.git/blobdiff - kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.cpp
Feature #1774
[bbtk.git] / kernel / src / ThirdParty / wx / treemultictrl / TreeMultiItemNode.cpp
index 6c6287280b9e2b19dee1892788a02202121f77b1..9d87c86b62e760615329153e69fd94ffce8fe8d4 100644 (file)
@@ -1,11 +1,38 @@
-//---------------------------------------------------------------------------\r
-// $RCSfile: TreeMultiItemNode.cpp,v $\r
-// $Source: /cvs/creatis/bbtk/kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.cpp,v $\r
-// $Revision: 1.1 $\r
-// $Date: 2008/03/28 13:42:18 $\r
-//---------------------------------------------------------------------------\r
-// Author:      Jorgen Bodde\r
-// Copyright:   (c) Jorgen Bodde\r
+/*
+ # ---------------------------------------------------------------------
+ #
+ # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
+ #                        pour la SantÈ)
+ # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
+ # Previous Authors : Laurent Guigues, Jean-Pierre Roux
+ # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
+ #
+ #  This software is governed by the CeCILL-B license under French law and
+ #  abiding by the rules of distribution of free software. You can  use,
+ #  modify and/ or redistribute the software under the terms of the CeCILL-B
+ #  license as circulated by CEA, CNRS and INRIA at the following URL
+ #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+ #  or in the file LICENSE.txt.
+ #
+ #  As a counterpart to the access to the source code and  rights to copy,
+ #  modify and redistribute granted by the license, users are provided only
+ #  with a limited warranty  and the software's author,  the holder of the
+ #  economic rights,  and the successive licensors  have only  limited
+ #  liability.
+ #
+ #  The fact that you are presently reading this means that you have had
+ #  knowledge of the CeCILL-B license and that you accept its terms.
+ # ------------------------------------------------------------------------ */
+
+
+//---------------------------------------------------------------------------
+// $RCSfile: TreeMultiItemNode.cpp,v $
+// $Source: /cvs/creatis/bbtk/kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.cpp,v $
+// $Revision: 1.2 $
+// $Date: 2012/11/16 08:49:16 $
+//---------------------------------------------------------------------------
+// Author:      Jorgen Bodde
+// Copyright:   (c) Jorgen Bodde
 // License:     wxWidgets License
 //---------------------------------------------------------------------------
 
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-    #pragma hdrstop\r
-#endif\r
-\r
-#include "wx/treemultictrl/TreeMultiItemNode.h"\r
-\r
-#include "wx/arrimpl.cpp"\r
-WX_DEFINE_OBJARRAY(TreeMultiItemBaseArray);\r
+    #pragma hdrstop
+#endif
+
+#include "wx/treemultictrl/TreeMultiItemNode.h"
+
+#include "wx/arrimpl.cpp"
+WX_DEFINE_OBJARRAY(TreeMultiItemBaseArray);
 
 /** TreeMultiItemNode
   * This class is a container holder for multiple TreeMultiItemBase classes.
@@ -59,18 +86,18 @@ TreeMultiItemNode::~TreeMultiItemNode()
 void TreeMultiItemNode::AddNode(TreeMultiItemBase *node)
 {
        if(node)
-                _items.Add(node);\r
-}\r
-\r
-void TreeMultiItemNode::InsertNode(TreeMultiItemBase* NodePtr, size_t Position)\r
-{\r
-        if (NodePtr != NULL)\r
-                this->_items.Insert(NodePtr,Position);\r
-}\r
-\r
-//------------------------------------------------------------\r
-\r
-void TreeMultiItemNode::DeleteNode(TreeMultiItemBase *node)\r
+                _items.Add(node);
+}
+
+void TreeMultiItemNode::InsertNode(TreeMultiItemBase* NodePtr, size_t Position)
+{
+        if (NodePtr != NULL)
+                this->_items.Insert(NodePtr,Position);
+}
+
+//------------------------------------------------------------
+
+void TreeMultiItemNode::DeleteNode(TreeMultiItemBase *node)
 {
        // this is wrong. The RemoveAt and Remove should delete
        // the object
@@ -166,22 +193,22 @@ TreeMultiItemBase * TreeMultiItemNode::GetNodeNext(int &cookie) const
 
        return value;
 }
-\r
-//------------------------------------------------------------\r
-\r
-TreeMultiItemBase* TreeMultiItemNode::First() const\r
-{\r
-  if (this->_items.GetCount() > 0)\r
-    return &(this->_items[0]);\r
-  else\r
-    return NULL;\r
-} /* TreeMultiItemNode::First() const */\r
-\r
-TreeMultiItemBase* TreeMultiItemNode::Last() const\r
-{\r
-        if(this->_items.GetCount() > 0)\r
-          return &(this->_items.Last());\r
-        else\r
-          return NULL;\r
-} /* TreeMultiItemNode::Last() const */\r
-\r
+
+//------------------------------------------------------------
+
+TreeMultiItemBase* TreeMultiItemNode::First() const
+{
+  if (this->_items.GetCount() > 0)
+    return &(this->_items[0]);
+  else
+    return NULL;
+} /* TreeMultiItemNode::First() const */
+
+TreeMultiItemBase* TreeMultiItemNode::Last() const
+{
+        if(this->_items.GetCount() > 0)
+          return &(this->_items.Last());
+        else
+          return NULL;
+} /* TreeMultiItemNode::Last() const */
+