Skip to content
Permalink
Browse files
added parsing of GRASS_INFO_MESSAGE
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4926 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
rblazek committed Feb 28, 2006
1 parent 90b4100 commit 6501aca78f6fb5abcdb68618c219a0fafaa399eb
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/plugins/grass/qgsgrassmodule.cpp
@@ -707,6 +707,7 @@ void QgsGrassModule::readStderr()

QString line;
QRegExp rxpercent ( "GRASS_INFO_PERCENT: (\\d+)" );
QRegExp rxmessage ( "GRASS_INFO_MESSAGE\\(\\d+,\\d+\\): (.*)" );
QRegExp rxwarning ( "GRASS_INFO_WARNING\\(\\d+,\\d+\\): (.*)" );
QRegExp rxerror ( "GRASS_INFO_ERROR\\(\\d+,\\d+\\): (.*)" );
QRegExp rxend ( "GRASS_INFO_END\\(\\d+,\\d+\\)" );
@@ -719,6 +720,8 @@ void QgsGrassModule::readStderr()
if ( rxpercent.search ( line ) != -1 ) {
int progress = rxpercent.cap(1).toInt();
mProgressBar->setProgress ( progress, 100 );
} else if ( rxmessage.search ( line ) != -1 ) {
mOutputTextBrowser->append ( rxmessage.cap(1) );
} else if ( rxwarning.search ( line ) != -1 ) {
QString warn = rxwarning.cap(1);
QString img = mAppDir + "/share/qgis/themes/default/grass/grass_module_warning.png";

0 comments on commit 6501aca

Please sign in to comment.