case 122:
{
- visuGUI->ExportToFile();
+ //visuGUI->ExportToFile();
break;
}
case VISU::TRESULT:
//thePopup->insertItem("Create Mesh", visuGUI, SLOT(CreateMesh()));
- thePopup->insertItem("Export To File", visuGUI, SLOT(ExportToFile()));
+ //thePopup->insertItem("Export To File", visuGUI, SLOT(ExportToFile()));
//thePopup->insertItem("Delete", visuGUI, SLOT(DeletePrs()));
break;
//flt.append( "Exportable Files (*.med *.dat)" );
//flt.append( "Dat Files (*.dat)" );
flt.append( "Med Files (*.med)" );
+ flt.append( "Dat Files (*.xls)" );
QString aDir = getVisuInputDir();
- QString aFile = QAD_FileDlg::getFileName(QAD_Application::getDesktop(),
- aDir,flt,tr("Import From File"),true);
- if(!aFile.isEmpty()){
- QAD_Application::getDesktop()->putInfo( "Importing From File " + aFile + "..." );
- aDir = QAD_Tools::getDirFromPath(aFile);
+ QFileInfo aFileInfo = QAD_FileDlg::getFileName(QAD_Application::getDesktop(),
+ aDir,flt,tr("Import From File"),true);
+ if(aFileInfo.exists()){
+ QAD_Application::getDesktop()->putInfo( "Importing From File " + aFileInfo.filePath() + "..." );
+ aDir = QAD_Tools::getDirFromPath(aFileInfo.filePath());
QAD_CONFIG->addSetting("Visu:InputDir",aDir);
QAD_WaitCursor wc;
QAD_CONFIG->addSetting("Visu:OutputDir",aDir);
if(VISU::Result_i* aResult = dynamic_cast<VISU::Result_i*>(aBase)){
try{
- aResult->GetInput()->ToFile(aFile.latin1());
+ //APO - aResult->GetInput()->ToFile(aFile.latin1());
QAD_Application::getDesktop()->putInfo(aFile+" exported.");
}catch(...){
QAD_MessageBox::warn1 ( QAD_Application::getDesktop(), tr ("VISU_WARNING"),