]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/buttonContainerPanel.h
#2516 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / buttonContainerPanel.h
index a074b53c38c8bda5cb887a69d725f3fd63e73ed2..f16da5ee6dd99544ed46874a6503c866f823c2c8 100644 (file)
@@ -1,8 +1,33 @@
+/*# ---------------------------------------------------------------------
+#
+# 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.
+# ------------------------------------------------------------------------ */
+
 /*!
  * @file buttonContainerController.h
  * @brief This contains the ButtonContainerController class
  * @author Diego CACERES (diego.caceres[AT]creatis.insa-lyon.fr)
- * @date  2011-05-24
+ * @date  2011-06-02
  */
 
 #ifndef BUTTONCONTAINERPANEL_H
 #include <wx/scrolwin.h>
 #include <wx/button.h>
 #include <wx/sizer.h>
+
 #include <list>
 #include <map>
+#include <exception>
 
 #include "buttonGroup.h"
 #include "groupManager.h"
 #include "buttonGroupFactory.h"
 #include "containerSettings.h"
 #include "buttonContainerController.h"
+//EED-MLER #include "listGroup.h"
+//EED-MLER #include "listGroupFactory.h"
 
 /*!    @namespace <creaButtonContainer>
  *     @brief Contains the creaButtonContainer library included in creaMaracasVisu.
@@ -33,8 +62,7 @@ namespace creaButtonContainer
        {
                /*! @class ButtonContainerController buttonContainerController.h "buttonContainerController.h"
                 *      @brief This class contains the ButtonContainerPanel controller.
-                *  @details This class describes the button events, it derives from wxEvtHandler and it is the
-                *  controller in the MVC.
+                *  @details This class describes the button events, it derives from wxEvtHandler.
                 *  @see <a href="http://docs.wxwidgets.org/stable/wx_wxevthandler.html">wxEvtHandler</a>
                 */
                class ButtonContainerController;
@@ -104,6 +132,17 @@ namespace creaButtonContainer
                                 */
                                typedef creaButtonContainer::controller::ButtonContainerController
                                    BCController;
+
+
+                               //typedef creaButtonContainer::model::ListGroupFactory ListGroupFactory;
+
+                               //typedef creaButtonContainer::view::ListGroup ListGroup;
+
+                               //typedef std::list< ListGroup* > ListGroupList;
+
+                               //typedef creaButtonContainer::model::ListGroupFactory ListGroupFactory;
+
+
                                // ----------------------------------------------------------------------------------
                                //end of typedef definition
                        public:
@@ -112,7 +151,7 @@ namespace creaButtonContainer
                                 * @param parent wxWindow pointer to parent.
                                 * @param settings ButtonGroupSettings Pointer to button container settings.
                                 */
-                               ButtonContainerPanel( wxWindow* parent, ButtonGroupSettings* settings );
+                               ButtonContainerPanel( wxWindow* parent, ButtonGroupSettings* settings);
                                // ----------------------------------------------------------------------------------
                                /*! @fn ~ButtonContainerPanel( );
                                 * @brief This is the destructor.
@@ -125,7 +164,7 @@ namespace creaButtonContainer
                                 * @param groupContainer
                                 */
                                void
-                               SetGroupContainer( ButtonGroupList groupContainer );
+                               SetButtonGroupContainer( ButtonGroupList groupContainer );
                                // ----------------------------------------------------------------------------------
                                /*! @fn PanelInit( );
                                 *      This method initializes the panel.
@@ -134,6 +173,10 @@ namespace creaButtonContainer
                                void
                                PanelInit( );
                                // ----------------------------------------------------------------------------------
+
+                               //void
+                               //SetListGroupContainer(ListGroupList groupContainer );
+                               // ----------------------------------------------------------------------------------
                                /*! @fn FitSizer( );
                                 * This method fits and organizes the sizer.
                                 */
@@ -143,10 +186,15 @@ namespace creaButtonContainer
                        public:
                                friend class creaButtonContainer::controller::ButtonContainerController;
                        private:
-                               GroupManagerList m_GroupManagerList; //!<The container of managers.
-                               ButtonGroupList m_ButtonGroupList; //!<The list of button groups.
-                               BCController* m_ButtonCController; //!<Pontier to controller.
-                               Sizer* m_Sizer; //!<Pointer to wxSizer
+                               GroupManagerList        m_GroupManagerList; //!<The container of managers.
+                               ButtonGroupList         m_ButtonGroupList; //!<The list of button groups.
+                               BCController*           m_ButtonCController; //!<Pontier to controller.
+                               Sizer*                          m_Sizer; //!<Pointer to wxSizer
+
+
+                               //ListGroupList m_ListGroupList;
+
+                       DECLARE_EVENT_TABLE() //!<Event Table declaration.
                };
        }//ecapseman
 }//ecapseman