]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listConfigDialog.h
#2516 creaMaracasVisu Feature New Normal - creaPanelButtonContainer ListPanel with...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / creaButtonContainer / view / listConfigDialog.h
similarity index 58%
rename from lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/listConfigPanel.h
rename to lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listConfigDialog.h
index 6e7a5eded01632f50378a0ea7c18725cf660d4f0..d45403aaee1b7836eafe7805c87fd750b2d27ffc 100644 (file)
@@ -23,8 +23,8 @@
  #  knowledge of the CeCILL-B license and that you accept its terms.
  # ------------------------------------------------------------------------ */
 
-#ifndef LISTCONFIGPANEL_H
-#define LISTCONFIGPANEL_H
+#ifndef LISTCONFIGDIALOG_H
+#define LISTCONFIGDIALOG_H
 
 #include <wx/panel.h>
 #include <wx/sizer.h>
 #include "functor.h"
 #include "listWx.h"
 
-namespace creaPanelButtonContainer
+namespace creaButtonContainer
 {
 
-       class ListConfigPanel: public wxDialog
+       namespace view
        {
 
-       };
+               class ListConfigDialog: public wxDialog
+               {
+                       public:
+
+                               typedef creaButtonContainer::model::TFunctor TFunctor;
+                               typedef creaButtonContainer::view::ListWx ListWx;
+
+                       public:
+
+                               ListConfigDialog(wxWindow* parent, wxWindowID id, const wxString& title,
+                                               ListWx* modelList, ListWx* currentList);
+                               ~ListConfigDialog();
+
+                               void
+                               OnAdd(wxCommandEvent& event);
+                               void
+                               OnDelete(wxCommandEvent& event);
+                               void
+                               OnMoveUp(wxCommandEvent& event);
+                               void
+                               OnMoveDown(wxCommandEvent& event);
+                               void
+                               OnOk(wxCommandEvent& event);
+                               void
+                               OnCancel(wxCommandEvent& event);
+
+                       private:
+                               //todo change it to wxBitmap
+                               wxButton* buttonAdd;
+                               wxButton* buttonDel;
+                               wxButton* okButton;
+                               wxButton* cancelButton;
+                               wxButton* upButton;
+                               wxButton* downButton;
+                               //
+                               ListWx* m_OriginalListWx; // Original list
+                               ListWx* m_CurrentListWx; //Configurable list
+               };
+       }
 }
 
-#endif // LISTCONFIGPANEL_H
+#endif // LISTCONFIGDIALOGL_H