]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfNewContourMenu.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_Icons_NDimensions / interfNewContourMenu.cxx
index db374f0f6a347fbe10cc9f3b8d64b43620812979..4b56e7b2f400f39a3763f855be843f68c63fe019 100644 (file)
@@ -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();
+}