X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_Icons_NDimensions%2FinterfNewContourMenu.cxx;h=4b56e7b2f400f39a3763f855be843f68c63fe019;hb=378b0eb29f4ed8dc8e64726b326a9781f92f9295;hp=db374f0f6a347fbe10cc9f3b8d64b43620812979;hpb=6e3c929c883c405e0075fa8df10b12a935979367;p=creaContours.git diff --git a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx index db374f0..4b56e7b 100644 --- a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx +++ b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx @@ -39,6 +39,11 @@ void interfNewContourMenu::initButtons(wxEvtHandler* evtHandler) { funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourBullseye); hand.push_back(this); + path.push_back(datadir + "/Line.png"); + nom.push_back("Create a Line"); + funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourLine); + hand.push_back(this); + this->addButtons(path, nom); this->setVectorFunction(funct); @@ -77,4 +82,7 @@ void interfNewContourMenu::onCreateContourRectangle( wxCommandEvent& event ){ void interfNewContourMenu::onCreateContourCircle( wxCommandEvent& event ){ interfMainPanel::getInstance()->onCreateContourCircle(); } +void interfNewContourMenu::onCreateContourLine( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourLine(); +}