X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOWxTreeView.h;h=6683a13f5d07a5a3a5d44243947065c262f3175a;hb=efe10f4ac0d8de45d26ca7b1f74f3676802c1b90;hp=db62a0a3c8a52ca668365fb21d3fcabcff3f47be;hpb=3a22e19184c369b130d4caa992a8e98e50c7a0ee;p=creaImageIO.git diff --git a/src/creaImageIOWxTreeView.h b/src/creaImageIOWxTreeView.h index db62a0a..6683a13 100644 --- a/src/creaImageIOWxTreeView.h +++ b/src/creaImageIOWxTreeView.h @@ -1,3 +1,30 @@ +/* +# --------------------------------------------------------------------- +# +# 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. +# ------------------------------------------------------------------------ +*/ + #ifndef __creaImageIOWxTreeView_h_INCLUDED__ #define __creaImageIOWxTreeView_h_INCLUDED__ @@ -114,21 +141,21 @@ namespace creaImageIO /// such as the vector of attribute keys corresponding to the columns struct LevelType { - // The List Control - wxListCtrl* wxCtrl; - wxSplitterWindow* wxSplitter; - std::vector key; - // The vector of currently selected nodes of the level - std::vector Selected; - // True iff the vector Selected is up to date - bool SelectedUpToDate; - // The column used for sorting - unsigned int SortColumn; - ///Boolean that defines the direction of the sort - ///True is ascending order and false is descending - bool SortAscending; - //The vector of not shown attributes - std::vector notShownAtts; + // The List Control + wxListCtrl *wxCtrl; + wxSplitterWindow *wxSplitter; + std::vector key; + // The vector of currently selected nodes of the level + std::vector Selected; + // True iff the vector Selected is up to date + bool SelectedUpToDate; + // The column used for sorting + unsigned int SortColumn; + ///Boolean that defines the direction of the sort + ///True is ascending order and false is descending + bool SortAscending; + //The vector of not shown attributes + std::vector notShownAtts; }; /// The vector of levels : one for each level of the tree std::vector mLevelList; @@ -138,7 +165,7 @@ namespace creaImageIO /// return the wxSplitter of one level wxSplitterWindow* GetSplitter(int l) { return mLevelList[l].wxSplitter; } //Returns the maximum number of levels - int GetNumberOfLevels(){ return mLevelList.size(); } + int GetNumberOfLevels(){ return (int)mLevelList.size(); } /// Gets the user selected data from the level passed as a parameter /// Updates the vector if necessary const std::vector& GetSelected(int level); @@ -183,16 +210,16 @@ namespace creaImageIO ///Initial color palette std::vector mColorPalette; - wxMenu* menu; + wxMenu *menu; - wxObject* senderCtrl; + wxObject *senderCtrl; int mAscendingID; int mDescendingID; int mFilterID; unsigned int mLastLevel; - wxMenu* menuItem; - wxMenu *subExportMenu; + wxMenu *menuItem; + wxMenu *subExportMenu; int mAnonymizingID; int mLocalCopyID; int mEditFieldID; @@ -217,7 +244,6 @@ namespace creaImageIO wxString title, const wxSize& size); ~RemoveAlertDlg(); - bool isChecked(); private :