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 listConfigDialog.h
28 * @brief This contains the ListConfigDialog class.
29 * @author Monica ESPINOSA (espinosa[AT]creatis.insa-lyon.fr)
33 #ifndef LISTCONFIGDIALOG_H
34 #define LISTCONFIGDIALOG_H
38 #include <wx/gbsizer.h>
40 #include <wx/bmpbuttn.h>
41 #include <wx/msgdlg.h>
49 #include "ArrowBackG.xpm"
50 #include "ArrowNextG.xpm"
51 #include "ArrowTopG.xpm"
52 #include "ArrowDownG.xpm"
54 /*! @namespace <creaButtonContainer>
55 * @brief Contains the creaButtonContainer library included in creaMaracasVisu.
57 namespace creaButtonContainer
59 /*! @namespace <creaButtonContainer::view>
60 * @brief Contains the implementation of the view in creaButtonContainer library.
61 * @see <a href="http://en.wikipedia.org/wiki/Model-view-controller">MVC Software Architecture</a>
65 /*! @class ListConfigDialog listConfigDialog.h "listConfigDialog.h"
66 * @brief This class contains the list in the wxDialog.
67 * @details This class contains the information of a Dialog with the lists, it derives from wxDialog.
68 * @see <a href="http://docs.wxwidgets.org/trunk/classwx_dialog.html">wxDialog</a>
70 class ListConfigDialog: public wxDialog
74 // ----------------------------------------------------------------------------------
75 /*! typedef creaButtonContainer::model::TFunctor TFunctor;
76 * @brief Defines the TFunctor type.
78 typedef creaButtonContainer::model::TFunctor TFunctor;
79 /*! typedef creaButtonContainer::view::ListWx ListWx;
80 * @brief Defines the List Panel.
82 typedef creaButtonContainer::view::ListWx ListWx;
83 // ----------------------------------------------------------------------------------
84 //end of typedef definition.
86 // ----------------------------------------------------------------------------------
87 /*! @fn ListConfigDialog( wxWindow* parent, wxWindowID id,const wxString& title,
88 ListWx* modelList, ListWx* currentList );
89 * @brief This is the parameterized constructor.
90 * @param parent The wxWindow pointer to parent.
91 * @param id The wxID of the button.
92 * @param title //The title wxDialog.
93 * @param modelList //The list is filled with the elements of model.
94 * @param currentList //The list is filled with the events.
96 ListConfigDialog(wxWindow* parent, wxWindowID id, const wxString& title,
97 ListWx* modelList, ListWx* currentList);
98 // ----------------------------------------------------------------------------------
99 /*! @fn virtual ~Button( );
100 * @brief This is the destructor.
104 // ----------------------------------------------------------------------------------
105 /*! @fn void OnAdd( wxCommandEvent& event );
106 * @brief This method add an item to current list.
110 OnAdd(wxCommandEvent& event);
111 // ----------------------------------------------------------------------------------
112 /*! @fn void OnDelete( wxCommandEvent& event );
113 * @brief This method remove an item of current list.
117 OnDelete(wxCommandEvent& event);
118 // ----------------------------------------------------------------------------------
119 /*! @fn void OnMoveUp( wxCommandEvent& event );
120 * @brief This method move up an item of current list.
124 OnMoveUp(wxCommandEvent& event);
125 // ----------------------------------------------------------------------------------
126 /*! @fn void OnMoveDown( wxCommandEvent& event );
127 * @brief This method move down an item of current list.
131 OnMoveDown(wxCommandEvent& event);
132 // ----------------------------------------------------------------------------------
133 /*! @fn void OnOk( wxCommandEvent& event );
134 * @brief This method confirm the changes of current list.
138 OnOk(wxCommandEvent& event);
139 // ----------------------------------------------------------------------------------
140 /*! @fn void OnCancel( wxCommandEvent& event );
141 * @brief This method discard the changes of current list.
145 OnCancel(wxCommandEvent& event);
146 // ----------------------------------------------------------------------------------
150 wxBitmapButton* m_AddButton; //!< ">" Add button.
151 wxBitmapButton* m_RemoveButton; //!< "<" Remove button.
152 wxButton* m_OkButton; //!< "Ok" Remove button.
153 wxButton* m_CancelButton; //!< "Cancel" Remove button.
154 wxBitmapButton* m_UpButton; //!< "/\" Move Up button.
155 wxBitmapButton* m_DownButton; //!< "\/" Move Down button.
156 wxArrayString m_LastStatus; //!<Last status array.
158 ListWx* m_OriginalListWx; //!< The Original list.
159 ListWx* m_CurrentListWx; //!<The Configurable list.
164 #endif // LISTCONFIGDIALOGL_H