Mercurial > hg > octave-avbm
changeset 13489:cb80550ebaed
Ranges become recognized in the the workspace view.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Wed, 27 Apr 2011 18:03:39 +0200 |
parents | fc754f56453e |
children | 90d4d110721b |
files | gui//src/OctaveLink.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui//src/OctaveLink.cpp +++ b/gui//src/OctaveLink.cpp @@ -54,6 +54,12 @@ } else if(octaveValue.is_complex_scalar()) { return QString("%1 + %2i").arg(octaveValue.scalar_value()).arg(octaveValue.complex_value().imag()); + // Convert range. + } else if(octaveValue.is_range()) { + return QString("%1 : %2 : %3").arg(octaveValue.range_value().base()) + .arg(octaveValue.range_value().inc()) + .arg(octaveValue.range_value().limit()); + // Convert real matrix. } else if(octaveValue.is_real_matrix()) { // TODO: Convert real matrix into a string.