X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FThirdParty%2Fwx%2Ftreemultictrl%2FTreeMultiItemNode.h;h=ffde8ef9e01d827244681162d3f00f6ca7755d89;hb=9c6b34ade419c6f122fedac19563dca4c2407bc2;hp=c8754f12ee4104ffc8fdbc1aad9d213702de6038;hpb=302e341409d918a232cd2ec25f2c533c27eb9011;p=bbtk.git diff --git a/kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.h b/kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.h index c8754f1..ffde8ef 100644 --- a/kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.h +++ b/kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.h @@ -1,11 +1,38 @@ -//--------------------------------------------------------------------------- -// $RCSfile: TreeMultiItemNode.h,v $ -// $Source: /cvs/creatis/bbtk/kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.h,v $ -// $Revision: 1.1 $ -// $Date: 2008/03/28 13:42:18 $ -//--------------------------------------------------------------------------- -// Author: Jorgen Bodde -// Copyright: (c) Jorgen Bodde +/* + # --------------------------------------------------------------------- + # + # 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.h,v $ +// $Source: /cvs/creatis/bbtk/kernel/src/ThirdParty/wx/treemultictrl/TreeMultiItemNode.h,v $ +// $Revision: 1.2 $ +// $Date: 2012/11/16 08:49:16 $ +//--------------------------------------------------------------------------- +// Author: Jorgen Bodde +// Copyright: (c) Jorgen Bodde // License: wxWidgets License //--------------------------------------------------------------------------- @@ -16,14 +43,14 @@ #pragma interface "TreeMultiItemNode.cpp" #endif -#ifndef WX_PRECOMP - #include "wx/wx.h" -#endif -#include "wx/treebase.h" - - -#include -#include "TreeMultiItemBase.h" +#ifndef WX_PRECOMP + #include "wx/wx.h" +#endif +#include "wx/treebase.h" + + +#include +#include "TreeMultiItemBase.h" #include "TreeMultiItemWindow.h" /** TreeMultiItemNode @@ -47,27 +74,27 @@ private: /** Caption of this node. */ wxString _caption; - /** Indicates if this node is expanded (true) or collapsed (false) */ - bool _nodeExpanded; - - /** visual attributes of the node */ - wxTreeItemAttr m_Attributes; - -public: - TreeMultiItemNode(TreeMultiItemNode *parent, const wxString &caption = wxEmptyString, const wxString &name = wxEmptyString); - virtual ~TreeMultiItemNode(); + /** Indicates if this node is expanded (true) or collapsed (false) */ + bool _nodeExpanded; + + /** visual attributes of the node */ + wxTreeItemAttr m_Attributes; + +public: + TreeMultiItemNode(TreeMultiItemNode *parent, const wxString &caption = wxEmptyString, const wxString &name = wxEmptyString); + virtual ~TreeMultiItemNode(); // isClass method virtual TreeMultiItemNode *IsTreeMultiItemNode() const { return (TreeMultiItemNode *)this; }; - - // add methods - void AddNode(TreeMultiItemBase *node); - void InsertNode(TreeMultiItemBase* NodePtr, size_t Position); - - // delete methods - void Clear(); + + // add methods + void AddNode(TreeMultiItemBase *node); + void InsertNode(TreeMultiItemBase* NodePtr, size_t Position); + + // delete methods + void Clear(); void DeleteNode(TreeMultiItemBase *node); void DeleteNode(int index); TreeMultiItemBase *RemoveNode(TreeMultiItemBase *node); @@ -75,15 +102,15 @@ public: // get methods int GetNodeCount() const; - TreeMultiItemBase *GetNode(int index) const; - int Index(TreeMultiItemBase *node, bool searchFromEnd = false) const; - TreeMultiItemBase *GetNodeNext(int &cookie) const; - - TreeMultiItemBase* First() const; - TreeMultiItemBase* Last() const; - - /** Fold function sets or clears the expanded flag. Note when excluded from drawing, this - will have no effect on redraw */ + TreeMultiItemBase *GetNode(int index) const; + int Index(TreeMultiItemBase *node, bool searchFromEnd = false) const; + TreeMultiItemBase *GetNodeNext(int &cookie) const; + + TreeMultiItemBase* First() const; + TreeMultiItemBase* Last() const; + + /** Fold function sets or clears the expanded flag. Note when excluded from drawing, this + will have no effect on redraw */ void Fold(bool expand) { if(_nodeExpanded != expand) _nodeExpanded = expand;