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