X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaMaracasVisuPanelButtonContainerSettings.cxx;h=faded793d1f0aef8d4486d50f20dc1a23e28be6d;hb=a7017a8ade695bd14a4c7ee70b197d63b5e76765;hp=1911c214eca725f045091e866f3867d5e3e081fd;hpb=de7a931d43b373fdbaba530ae326a64d45148ae9;p=creaMaracasVisu.git diff --git a/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx b/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx index 1911c21..faded79 100644 --- a/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx +++ b/bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.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 +# 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. +# ------------------------------------------------------------------------ */ + //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== @@ -16,26 +41,20 @@ void PanelButtonContainerSettings::Process( ) { - // std::string msg; - // if (bbGetInputTitle()!="") - // { - // msg = bbGetInputTitle()+": " + bbGetInputIn(); - // } - // else - // { - // msg = bbGetInputIn(); - // } - // ((wxStaticText*)bbGetOutputWidget())->SetLabel( bbtk::std2wx( msg ) ); - - this->m_BSettings->groupName = bbGetInputGroupName( ); - this->m_BSettings->buttonName = bbGetInputButtonName( ); - this->m_BSettings->buttonDescription = bbGetInputButtonDescription( ); - this->m_BSettings->iconpath = bbGetInputIconpath( ); - this->m_BSettings->panel = this->myPanel; - this->m_BCSettingsVector = bbGetInputIn(); + this->m_BSettings->groupName = bbGetInputGroupName( ); + this->m_BSettings->buttonName = bbGetInputButtonName( ); + this->m_BSettings->buttonDescription = bbGetInputButtonDescription( ); + //this->m_BSettings->iconpath = bbGetInputIconpath( ); + this->m_BSettings->icon = bbGetInputIcon( ); + this->m_BSettings->panel = this->myPanel; + this->m_BCSettingsVector = bbGetInputIn(); this->m_BCSettingsVector.push_back( this->m_BSettings ); - bbSetOutputOut( bbGetInputIn() ); - + bbSetOutputOut( this->m_BCSettingsVector ); + bbSetOutputSettings( this->m_BSettings ); + printf("EED PanelButtonContainerSettings::Process In %d\n", bbGetInputIn( ).size() ); + printf("EED PanelButtonContainerSettings::Process tmpVec %d\n", this->m_BCSettingsVector.size() ); + printf("EED PanelButtonContainerSettings::Process Out %d\n", bbGetOutputOut( ).size() ); + } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) @@ -44,13 +63,14 @@ void PanelButtonContainerSettings::CreateWidget( wxWindow* parent ) { this->myPanel = new wxPanel( parent, -1 ); - wxWindow* w = bbCreateWidgetOfInput("Widget", myPanel); + wxWindow* w = bbCreateWidgetOfInput("Widget", myPanel); + /// \TODO fix : unused variable \u2018ww\u2019 wxWindow* ww = bbCreateWidgetOfInput("In", parent); wxBoxSizer* sizer = new wxBoxSizer(wxHORIZONTAL); sizer->Add(w,1,wxEXPAND, 0); this->myPanel->SetSizer(sizer); - bbSetOutputWidget( myPanel ); + bbSetOutputWidget( myPanel ); } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) @@ -76,7 +96,7 @@ PanelButtonContainerSettings::bbUserFinalizeProcessing( ) { } -} -// EO namespace bbcreaMaracasVisu +} +// EO namespace bbcreaMaracasVisu