]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbcreaMaracasVisuPanelButtonContainerSettings.cxx
#3012 creaMaracasVisu Bug New Normal - Update Image in ViewerNV #3065 creaMara...
[creaMaracasVisu.git] / bbtk / src / bbcreaMaracasVisuPanelButtonContainerSettings.cxx
index 0934d08a3f45df1664a6e251f8744c897c0b0632..faded793d1f0aef8d4486d50f20dc1a23e28be6d 100644 (file)
@@ -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)
 //===== 
@@ -18,13 +43,14 @@ PanelButtonContainerSettings::Process( )
 
        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->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( 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() );
@@ -37,15 +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)
@@ -71,7 +96,7 @@ PanelButtonContainerSettings::bbUserFinalizeProcessing( )
 {
 
 }
-}
-// EO namespace bbcreaMaracasVisu
 
 
+}
+// EO namespace bbcreaMaracasVisu