1 /*# ---------------------------------------------------------------------
 
   3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
 
   5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
 
   6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
 
   7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
 
   9 #  This software is governed by the CeCILL-B license under French law and
 
  10 #  abiding by the rules of distribution of free software. You can  use,
 
  11 #  modify and/ or redistribute the software under the terms of the CeCILL-B
 
  12 #  license as circulated by CEA, CNRS and INRIA at the following URL
 
  13 #  http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
 
  14 #  or in the file LICENSE.txt.
 
  16 #  As a counterpart to the access to the source code and  rights to copy,
 
  17 #  modify and redistribute granted by the license, users are provided only
 
  18 #  with a limited warranty  and the software's author,  the holder of the
 
  19 #  economic rights,  and the successive licensors  have only  limited
 
  22 #  The fact that you are presently reading this means that you have had
 
  23 #  knowledge of the CeCILL-B license and that you accept its terms.
 
  24 # ------------------------------------------------------------------------ */
 
  27  * @file PanelButtonContainer
 
  28  * @brief This contains the ButtonContainerSettings class.
 
  29  * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
 
  33 #ifndef PANELBUTTONCONTAINER_H_
 
  34 #define PANELBUTTONCONTAINER_H_
 
  37 #include <wx/aui/aui.h>
 
  40 #include "containerSettings.h"
 
  41 #include "buttonContainerPanel.h"
 
  42 #include "buttonContainerSettings.h"
 
  46 /*!     @namespace <creaPanelButtonContainer>
 
  47  *      @brief Contains the creaPanelButtonContainer library included in creaMaracasVisu.
 
  49 namespace creaPanelButtonContainer
 
  51         /*! @class PanelButtonContainer panelButtonContainer.h "panelButtonContainer.h"
 
  52          *      @brief This class contains the PanelButtonContainer. It derives from wxPanel.
 
  53          *  @see <a href="http://docs.wxwidgets.org/stable/wx_wxpanel.html">wxPanel</a>
 
  55         class PanelButtonContainer : public wxPanel
 
  59                         // ----------------------------------------------------------------------------------
 
  60                         /*!     typedef creaPanelButtonContainer::ButtonContainerSettings ButtonContainerSettings;
 
  61                          *      @brief Defines the ButtonContainerSettings type.
 
  63                         typedef creaPanelButtonContainer::ButtonContainerSettings
 
  64                             ButtonContainerSettings;
 
  65                         /*!     typedef creaButtonContainer::view::ButtonContainerPanel ButtonContainerPanel;
 
  66                          *      @brief Defines the ButtonContainerPanel type.
 
  68                         typedef creaButtonContainer::view::ButtonContainerPanel
 
  70                         typedef creaButtonContainer::view::ListWx ListWx;
 
  71                         // ----------------------------------------------------------------------------------
 
  72                         //end of typedef definition.
 
  74                         // ----------------------------------------------------------------------------------
 
  75                         /*! @fn PanelButtonContainer( wxWindow* parent, ButtonContainerSettings* bcSettings );
 
  76                          *      @brief This is the parameterized constructor.
 
  77                          *      @param parent The wxWindow pointer to parent
 
  78                          *      @param bcSettings //The buttonContainerSettings
 
  80                         PanelButtonContainer( wxWindow* parent,
 
  81                             ButtonContainerSettings* bcSettings, int type );
 
  82                         // ----------------------------------------------------------------------------------
 
  83                         /*! @fn virtual PanelButtonContainer( );
 
  84                          *      @brief This is the destructor.
 
  87                         ~PanelButtonContainer( );
 
  88                         // ----------------------------------------------------------------------------------
 
  89                         /*! @fn void UpdatePanel( const std::string &buttonName );
 
  90                          *  @brief This method Updates the m_ButtonPanel to a panel
 
  91                          *  of the clicked button in creaButtonContainer.
 
  95                         UpdatePanel( const std::string &buttonName );
 
  96                         // ----------------------------------------------------------------------------------
 
  97                         /*! @fn void GenericButtonEvent( const std::string &buttonName );
 
  98                          *      @brief This method is the function that calls the panels contained in the buttons
 
  99                          *      (in creaButtonContainer is the function contained in the functors to be called back.
 
 100                          *      @param buttonName The name of the button
 
 103                         GenericButtonEvent( const std::string &buttonName );
 
 104                         // ----------------------------------------------------------------------------------
 
 107                         ButtonContainerSettings* m_ButtonContainerSettings; //!<This is the buttonContainer settings.
 
 109                         ButtonContainerPanel* m_ButtonContainerPanel; //!<This is the panel with de buttons (creaButtonContainer)
 
 110                         wxAuiManager* m_AuiManager; //!<The AUI Manager for the panels.
 
 111                         wxPanel* m_ButtonPanel; //!<This is the panel used to contain the panels of the buttons. (it changes with the buttonAction)
 
 114                         ListWx* mylist; //MLER
 
 116                 DECLARE_EVENT_TABLE() //!<Event Table declaration.
 
 120 #endif // PANELBUTTONCONTAINER_H_