X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxTabPanelsManager.cxx;h=351551e1403b8dd319e165bd4b14396e67a7fd9b;hb=8fc50de315bff81bdbcc672c38e56926a9e1bd5c;hp=6aa897c1fce75f5239190283519bed80543e7fbf;hpb=108bfeda96a8850e469fa80add666a5c1dbf1c1f;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx index 6aa897c..351551e 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx @@ -1,3 +1,28 @@ +/* +# --------------------------------------------------------------------- +# +# Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image +# pour la Santé) +# Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton +# +# 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. +# ------------------------------------------------------------------------ +*/ + /*========================================================================= Program: bbtk Module: $RCSfile$ @@ -57,6 +82,12 @@ namespace bbtk { } + //========================================================================= + wxGUIEditorGraphicBBS* wxTabPanelsManager::GetParentGUIEditorGraphicBBS() const + { + return this->_parent; + } + //========================================================================= void wxTabPanelsManager::addNewTab(wxString tabName) { @@ -226,7 +257,6 @@ namespace bbtk void wxTabPanelsManager::VerifyLastTabPanel() { -printf("wxTabPanelsManager::VerifyActualTabPanel %d \n", this->_notebook->GetPageCount() ); if (this->_notebook->GetPageCount()==0) { this->_actual=NULL; @@ -344,6 +374,18 @@ printf("wxTabPanelsManager::VerifyActualTabPanel %d \n", this->_notebook->GetPa return _actual->GetCategory(); } + //========================================================================= + std::string wxTabPanelsManager::GetMessageKind() + { + return _actual->GetMessageKind(); + } + + //========================================================================= + std::string wxTabPanelsManager::GetMessageLevel() + { + return _actual->GetMessageLevel(); + } + //========================================================================= void wxTabPanelsManager::SetCbName(std::string cbName) { @@ -376,10 +418,22 @@ printf("wxTabPanelsManager::VerifyActualTabPanel %d \n", this->_notebook->GetPa _actual->SetDescription( description ); } + + //========================================================================= + void wxTabPanelsManager::SetMessageKind(std::string kind){ + _actual->SetMessageKind(kind); + } + + + //========================================================================= + void wxTabPanelsManager::SetMessageLevel(std::string level){ + _actual->SetMessageLevel(level); + } + //========================================================================= bool wxTabPanelsManager::TryToOpenScriptApplication(std::string packageName ,std::string boxType) { - _parent->TryToOpenScriptApplication( packageName, boxType ); + return _parent->TryToOpenScriptApplication( packageName, boxType ); } } // EO namespace bbtk