anError = DocError_ResourcesProblem;
break;
case PCDM_SS_WriteFailure:
- case PCDM_SS_DiskWritingFailure:
- case PCDM_SS_UserRightsFailure:
+ //case PCDM_SS_DiskWritingFailure:
+ //case PCDM_SS_UserRightsFailure:
anError = DocError_CanNotOpen;
break;
default:
// Dump all model objects to Python script
aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_IMAGE );
+ aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_POLYLINEXY );
aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_BATHYMETRY );
- aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_ARTIFICIAL_OBJECT );
- aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_NATURAL_OBJECT );
+ aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_PROFILE );
+ aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_POLYLINE );
+ aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_IMMERSIBLE_ZONE );
+ aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_STREAM );
+ aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_CHANNEL );
+ aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_DIGUE );
aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_OBSTACLE );
aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_CALCULATION );
- aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_POLYLINE );
- aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_PROFILE );
- aRes = aRes && dumpPartitionToPython( aFile, aTreatedObjects, KIND_ALTITUDE );
return aRes;
}
QStringList aResScript;
- aResScript << QString( "from HYDROData import *" );
+ aResScript << QString( "from HYDROPy import *" );
aResScript << QString( "from PyQt4.QtCore import *" );
aResScript << QString( "from PyQt4.QtGui import *" );
aResScript << QString( "" );