Hi everyone,
I am Mayank Agrawal and I am working on webgrass.
my report for the week 4
Q. What did you get done this week?
- parsing of the xml files
- Creation of new window.
- working UI of module windows.
- calling and clicking of modules.
commit
Screenshot
Status - Clicking on the different modules and generation of UI
Q. What do you plan on doing next week?
- There is some inconsistency with parsing for generation of different modules. Removing those.
Q. Are you blocked on anything?
Not rite now.
Mayank Agrawal
Lab for Spatial Informatics
IIIT Hyderabad
Hyderabad
Hi everyone,
I am student working on the WebGrass project for this GSoC. I was making the dialog boxes of different modules in grass. While doing this, I come across a problem. I am using the xml files of these modules using command (x.module --interface-description). When a dialog box opens, there are many options. For example, for the v.buffer (v.buffer --interface-description), there is option for “input vector map” and “output vector map” (screenshot). When you see the xml, then you will notice “input vector map” is under label tag and “output vector map” is under description tag. Though both are shown at same place in dialog box. Same thing is done at many places in different modules. I want to know whether it is on purpose or some kind of error as this makes the parsing of xml for generation of dialog box, a little bit tricky. At some places, description tag is used and somewhere label tag is used. Also any help in this regard(parsing) will be highly appreciated.
Mayank Agrawal
Lab for Spatial Informatics
IIIT Hyderabad
Hyderabad
···
On Sun, Jun 19, 2016 at 4:14 PM, Mayank Agrawal <mayankagrawal333@gmail.com> wrote:
Hi everyone,
I am Mayank Agrawal and I am working on webgrass.
my report for the week 4
Q. What did you get done this week?
- parsing of the xml files
- Creation of new window.
- working UI of module windows.
- calling and clicking of modules.
commit
Screenshot
Status - Clicking on the different modules and generation of UI
Q. What do you plan on doing next week?
- There is some inconsistency with parsing for generation of different modules. Removing those.
Q. Are you blocked on anything?
Not rite now.
Mayank Agrawal
Lab for Spatial Informatics
IIIT Hyderabad
Hyderabad
Hi Mayank,
On Tue, Jun 21, 2016 at 2:32 PM, Mayank Agrawal <mayankagrawal333@gmail.com>
wrote:
for the v.buffer (v.buffer --interface-description), there is option for
"input vector map" and "output vector map" (screenshot
<https://cloud.githubusercontent.com/assets/12744703/16241571/e05a7402-380b-11e6-9701-9c211da3ebc3.png>\).
When you see the xml
<https://gist.github.com/mayank33/5dccaa844787abee280c0291a1561ed2>, then
you will notice "input vector map" is under label
<https://gist.github.com/mayank33/5dccaa844787abee280c0291a1561ed2#file-buffer-xml-L12> tag
and "output vector map" is under description
<https://gist.github.com/mayank33/5dccaa844787abee280c0291a1561ed2#file-buffer-xml-L95> tag.
Though both are shown at same place in dialog box. Same thing is done at
many places in different modules. I want to know whether it is on purpose
or some kind of error as this makes the parsing of xml for generation of
dialog box, a little bit tricky. At some places, description tag is used
and somewhere label tag is used. Also any help in this regard(parsing) will
be highly appreciated.
The current definition of the option label and description is that
description is filled out and when it is very long, label is filled out as
well to provide a shorter text which can be shown in things like GUI. The
same applies also to flag and module. Both of them can be empty (which is
of course not good, but it is supported by --help).
It may be obvious that the definition is actually a legacy thing because
originally there was only description, so the modules usually define just
that. The label is a later addition which is not always present. This is of
course not ideal but that's the current backwards compatible state.
The right way to implement it for the (relatively short) labels in GUI is
to use label if available and use description if it is not. When the manual
page or --help are created, both are used if present, first label followed
by description.
Hope this helps,
Vaclav