<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <DEFANGED_meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
That's what I've done,<br>
I have develoop some new command, and now I have a shell script that
call in the rigth order a numbers of function and generates maps....<br>
I have some input needed and of course can be simply asked to the user
by using g.parser....<br>
But what I'd like to do is an hydrologic window menu....<br>
I try to better explain me:<br>
<br>
1) a windows with 3 options (button) for preprocessing, calibration,
simulation. Each one opens a new window.<br>
2) in each windows input box and associated button.... <br>
for instance I will have a preprocessing window:<br>
<br>
input elevation map: (text box)&nbsp; - select (button)<br>
input river map name : (text box)&nbsp; - select (button) - extract (button)<br>
<br>
if I press the extract button a new windows for river extraction will
be opened.<br>
It will get the already entered elevation maps and a new user entered
treshold value.<br>
With a run button calculate and display the map.<br>
With a save button return to the preprocessing window with the input
river map text box filled with the calculated map.<br>
<br>
As I'm new to GUI programming, how to get somethink like this
(obviously integrated in GRASS )? <br>
tcltkgrass?<br>
qgis?<br>
other?<br>
Thanks,<br>
Maxi<br>
<br>
<br>
Hamish wrote:<br>
<blockquote type="cite"
 cite="mid20050507145619.2c4e90e1.hamish_nospam@yahoo.com">
  <blockquote type="cite">
    <pre wrap="">I'd like to program an interface to handle preprocessing, calibration 
and simulation of a GRASS based hydrological model.
I have seen that the new interface could be a qgis interface, so my 
question is where I have to focus on? "Tcltkgrass" or "qgis grass
toolbox"?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I would write a shell script using the GRASS's g.parser[*]. Adding that
to the GUI in GRASS or in QGIS would be easy to do - just keep the logic
out of the GUI, use it as a front-end.

[*] see the included GRASS 6 scripts/ in the source distribution and
  <a class="moz-txt-link-freetext" href="http://grass.ibiblio.org/grass60/manuals/html60_user/g.parser.html">http://grass.ibiblio.org/grass60/manuals/html60_user/g.parser.html</a>
 for ideas.



Hamish

  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 

Eng. Massimiliano Cannata
Scuola Universitaria Professionale della Svizzera Italiana
Istituto Scienze della Terra
Via Trevano, c.p. 72
CH-6952 Canobbio-Lugano
Tel: +41 (0)58 666 62 18
Fax +41 (0)58 666 62 09
</pre>
</body>
</html>