]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfToolsMenu.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_Icons_NDimensions / interfToolsMenu.cxx
index 535a86ff7fc0eff02075da6cc8f98bad19b9697b..5467db7ededd5774088d475d2dde0f6fc1748d8f 100644 (file)
@@ -39,6 +39,14 @@ void interfToolsMenu::initButtons(wxEvtHandler* evtHandler) {
        nom.push_back("Configuration of the window");
        funct.push_back((wxObjectEventFunction) &interfToolsMenu:: onConfigurationPressed);
 
+       path.push_back(datadir + "/Help.png");
+       nom.push_back("Show help page with information about the tools");
+       funct.push_back((wxObjectEventFunction) &interfToolsMenu:: onHelpPressed);
+
+       path.push_back(datadir + "/Mirror.png");
+       nom.push_back("Create an Axis and select a contour to mirror it accordingly");
+       funct.push_back((wxObjectEventFunction) &interfToolsMenu:: onMirrorPressed);
+
        this->addButtons(path, nom);    
        this->setVectorFunction(funct);
 
@@ -84,3 +92,15 @@ void  interfToolsMenu::onConfigurationPressed(wxCommandEvent& event){
 
 }
 
+void interfToolsMenu::onHelpPressed(wxCommandEvent& event){
+
+  wxLaunchDefaultBrowser(_T("http://www.creatis.insa-lyon.fr/creatools/node/25"), 0);
+
+}
+
+void interfToolsMenu::onMirrorPressed(wxCommandEvent& event){
+
+  interfMainPanel::getInstance()->onMirrorPressed();
+
+}
+