X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FInterface_ManagerContour_NDimensions%2FwxContourMainFrame.cxx;h=1e6ff4c9337394ae6d46937c305884932a33ccf8;hb=e53ac8d65c17b4d2eb02b592df2e9fb5e204feec;hp=8c8beb05edb61a3fae3d56edcde0459c526bc5da;hpb=4a87c22cc8be50b2154cb7772ad38cd4cec274df;p=creaContours.git diff --git a/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx b/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx index 8c8beb0..1e6ff4c 100644 --- a/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx +++ b/lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.cxx @@ -1009,6 +1009,23 @@ void wxContourMainFrame::onImport(){ } } +void wxContourMainFrame::onTest(){ + std::string filename, filenamecontours; + wxFileDialog dialog(NULL, _T("Choose a XML Osirix File"), _T(""), _T(""), _T("*.xml"), wxOPEN ); + + if (dialog.ShowModal() == wxID_OK) + { + filename = dialog.GetPath().mb_str(); + filenamecontours = kernelManager->parseOsirixFile(filename); + + if(filenamecontours.compare("") != 0){ + onLoadContours(filenamecontours); + } + + } +} + + //AD: 29-05-09 void wxContourMainFrame::onSave(){ //CMRU 03-09-09-----------------------------------------------------------------------------------------------