[GRASS-dev] GUI architecture in G7

Hi,

I am trying to figure out the architecture of the main wxGUI in G7. My aim is to add “Network Modeling” in the Layer Manager menubar, under Layer Manager → Raster → Hydrologic Modeling. I looked into [0], but clicking “GUI” and “Interfaces” gives me “404 Not Found” error. So, I am trying to figure out the architecture by tracking back the variable names, and discovered that I probably should add the string “Network Modeling” in the file file gui/wxpython/menustring.py but I still don’t have clear where I should add the third level menu, the event and the binding function … I feel a bit lost.

Also, I don’t understand where is located the wxGUI for each command. I mean, for example typing r.watershed in the terminal raises the GUI… where is it written? I am sorry if I ask probably silly questions, but could anyone kindly address me where I can learn more about that? So far I have scripted just for grass 6.5 and it is fairly different to programming on G7, so any hints are very welcome.
Thanks

madi

[0] http://grass.osgeo.org/programming7/index.html


Eng. Margherita Di Leo
Ph.D. Candidate
Methods and Technologies for Environmental Monitoring
Department of Environmental Engineering and Physics (DIFA)

University of Basilicata
Campus Macchia Romana
85100 - Potenza
Italy

Office: +39-0971205360
Web page: http://www.geofemengineering.it/GeofemEngineering/MargheritaDiLeo.html

Hi,

2011/6/23 Margherita Di Leo <dileomargherita@gmail.com>:

I am trying to figure out the architecture of the main wxGUI in G7. My aim
is to add "Network Modeling" in the Layer Manager menubar, under Layer
Manager -> Raster -> Hydrologic Modeling. I looked into [0], but clicking
"GUI" and "Interfaces" gives me "404 Not Found" error. So, I am trying to

well, toc is broken, away links below works, eg.

http://grass.osgeo.org/programming7/wxpythonlib.html

figure out the architecture by tracking back the variable names, and
discovered that I probably should add the string "Network Modeling" in the
file file gui/wxpython/menustring.py but I still don't have clear where I
should add the third level menu, the event and the binding function .. I
feel a bit lost.

This is generated during compilation process, edit
gui/wxpython/xml/menudata.xml instead.

Also, I don't understand where is located the wxGUI for each command. I
mean, for example typing r.watershed in the terminal raises the GUI.. where
is it written? I am sorry if I ask probably silly questions, but could
anyone kindly address me where I can learn more about that? So far I have
scripted just for grass 6.5 and it is fairly different to programming on G7,
so any hints are very welcome.

It's generated on the fly by menuform.py based on `command
--interface-description`.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa