X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_Icons_NDimensions%2FinterfNewContourMenu.cxx;h=257fe8ce33f19324cf08bb2b4c39693b42199eda;hb=26f06d2da9f31bca99fe2266d5b7e5c38a00bdbb;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..257fe8c 100644 --- a/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx +++ b/lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx @@ -39,6 +39,16 @@ 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); +/* + path.push_back(datadir + "/Line.png"); + nom.push_back("Create Points"); + funct.push_back((wxObjectEventFunction) &interfNewContourMenu::onCreateContourPoints); + hand.push_back(this); +*/ this->addButtons(path, nom); this->setVectorFunction(funct); @@ -77,4 +87,11 @@ void interfNewContourMenu::onCreateContourRectangle( wxCommandEvent& event ){ void interfNewContourMenu::onCreateContourCircle( wxCommandEvent& event ){ interfMainPanel::getInstance()->onCreateContourCircle(); } - +void interfNewContourMenu::onCreateContourLine( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourLine(); +} +/* +void interfNewContourMenu::onCreateContourPoints( wxCommandEvent& event ){ + interfMainPanel::getInstance()->onCreateContourLine(); +} +*/ \ No newline at end of file