Sfoglia il codice sorgente

managelib: define guisections for option

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45094 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 anni fa
parent
commit
f822a5ee15
1 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. 10 1
      lib/manage/option.c

+ 10 - 1
lib/manage/option.c

@@ -47,7 +47,16 @@ struct Option* M_define_option(int n, const char *desc, int multiple)
     G_asprintf(&str, _("%s to be %s"),
 	       list[n].text, desc);
     p->description = str;
- 
+    if (strcmp(p->key, "rast") == 0 || strcmp(p->key, "rast3d") == 0)
+	p->guisection = _("Raster");
+    else if (strcmp(p->key, "vect") == 0 || strcmp(p->key, "oldvect") == 0 ||
+	     strcmp(p->key, "asciivect") == 0)
+	p->guisection = _("Vector");
+    else if (strcmp(p->key, "region") == 0 || strcmp(p->key, "region3d") == 0)
+	p->guisection = _("Region");
+    else if (strcmp(p->key, "group") == 0)
+	p->guisection = _("Group");
+
     return p;
 }