X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FcreaButtonContainer%2Fview%2FlistConfigDialog.h;fp=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FcreaPanelButtonContainer%2FlistConfigPanel.h;h=d45403aaee1b7836eafe7805c87fd750b2d27ffc;hb=ecf68d834a4193f68661d9d73ea1e6652fb83f20;hp=6e7a5eded01632f50378a0ea7c18725cf660d4f0;hpb=3c6c4d236dd41550927d9180688f40c127301431;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/listConfigPanel.h b/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 6e7a5ed..d45403a 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaPanelButtonContainer/listConfigPanel.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/creaButtonContainer/view/listConfigDialog.h @@ -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 #include @@ -36,13 +36,51 @@ #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