# 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