- /*namespace controller
- {
- //class ButtonContainerController;
- }*/
-
-
- class ListConfigPanel : public wxDialog
- {
- public:
-
- typedef std::map<std::string, wxPanel*> ItemsMap;
- typedef creaButtonContainer::model::TFunctor TFunctor;
- typedef creaButtonContainer::model::ListConfig ListConfig;
- typedef creaButtonContainer::view::ListWx ListWx;
- //typedef std::vector<std::string> NomItem;
-
-
- ListConfigPanel(wxWindow* parent, wxWindowID id,const wxString& title, ListWx* modelList, ListWx* currentList);
-
- ~ListConfigPanel();
-
- ItemsMap
- GetFinalItemsMap();
-
- void
- SetFinalItems(ItemsMap finalItems);
-
- void
- FillList(int i);
-
- void
- OnQuit(wxCommandEvent& event);
-
- void
- ListItemEvent(wxCommandEvent& event);
-
- void
- OnAdd(wxCommandEvent& event);
-
- void
- OnDelete(wxCommandEvent& event);
-
- void
- OkEvent(wxCommandEvent& event);
-
- void
- UpEvent(wxCommandEvent& event);
-
- void
- DownEvent(wxCommandEvent& event);
-
- void
- RefreshViewEvent(wxCommandEvent& event);
-
- ListWx*
- GetFinalListWx();
-
-
- //public:
- //friend class creaButtonContainer::controller::ButtonContainerController;
-
- private:
- ItemsMap m_itemsMap;
- //TFunctor* functor;
- ItemsMap m_finalItems;
- //NomItem m_itemsVector;
-
- wxButton* buttonAdd;
- wxButton* buttonDel;
-
- wxButton* okButton;
- wxButton* cancelButton;
-
- wxButton* upButton;
- wxButton* downButton;
-
- ListWx* m_listWx;
- ListWx* m_finalListWx;
- ListConfig* m_listConfig;
-
- };