[GRASS-SVN] r29576 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 5 17:33:35 EST 2008
Author: martinl
Date: 2008-01-05 17:33:35 -0500 (Sat, 05 Jan 2008)
New Revision: 29576
Modified:
grass/trunk/lib/gis/parser.c
Log:
Flags --overwrite/--verbose/--quiet added to --interface-description output (used for wxPython GUI dialogs)
Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c 2008-01-05 21:51:42 UTC (rev 29575)
+++ grass/trunk/lib/gis/parser.c 2008-01-05 22:33:35 UTC (rev 29576)
@@ -1272,7 +1272,10 @@
char *s, *top;
int i;
char *encoding;
+ int new_prompt = 0;
+ new_prompt = uses_new_gisprompt();
+
/* gettext converts strings to encoding returned by nl_langinfo(CODESET) */
#if defined(HAVE_LANGINFO_H)
@@ -1477,6 +1480,29 @@
*****
*****/
+ if (new_prompt) {
+ /* overwrite */
+ fprintf(stdout, "\t<flag name=\"%s\">\n", "overwrite");
+ fprintf(stdout, "\t\t<description>\n\t\t\t");
+ print_escaped_for_xml(stdout, "Allow output files to overwrite existing files");
+ fprintf(stdout, "\n\t\t</description>\n");
+ fprintf (stdout, "\t</flag>\n");
+ }
+
+ /* verbose */
+ fprintf(stdout, "\t<flag name=\"%s\">\n", "verbose");
+ fprintf(stdout, "\t\t<description>\n\t\t\t");
+ print_escaped_for_xml(stdout, "Verbose module output");
+ fprintf(stdout, "\n\t\t</description>\n");
+ fprintf (stdout, "\t</flag>\n");
+
+ /* quiet */
+ fprintf(stdout, "\t<flag name=\"%s\">\n", "quiet");
+ fprintf(stdout, "\t\t<description>\n\t\t\t");
+ print_escaped_for_xml(stdout, "Quiet module output");
+ fprintf(stdout, "\n\t\t</description>\n");
+ fprintf (stdout, "\t</flag>\n");
+
fprintf(stdout, "</task>\n");
}
More information about the grass-commit
mailing list