1 #include "interfDeleteMenu.h"
3 interfDeleteMenu::interfDeleteMenu(wxWindow * parent, int sizex, int sizey,wxEvtHandler* evtHandler, std::string datdir)
4 : interfMenuBar(parent, sizex, sizey)
6 this->datadir = datdir;
7 initButtons(evtHandler);
10 void interfDeleteMenu::initButtons(wxEvtHandler* evtHandler) {
12 std::vector<std::string> path, nom;
13 std::vector<wxObjectEventFunction> funct;
15 path.push_back(datadir + "/DeleteContour.png");
16 nom.push_back("Delete the selected contour");
17 funct.push_back(wxCommandEventHandler(wxContourEventHandler::onDeleteContour));
19 path.push_back(datadir + "/DeleteAllContourSlide.png");
20 nom.push_back("Delete all contours in the current slide");
21 funct.push_back(wxCommandEventHandler(wxContourEventHandler::onDeleteContoursActSlice));
23 path.push_back(datadir + "/DeleteAll.png");
24 nom.push_back("Delete all contours in all slides");
25 funct.push_back(wxCommandEventHandler(wxContourEventHandler::onDeleteAllContours));
27 this->addButtons(path, nom);
29 this->setVectorFunction(funct);
30 this->connectEvents(evtHandler);
34 interfDeleteMenu::~interfDeleteMenu()