[GRASS-dev] new tests on wxgui

Daniel Cavelo managed to parse the none option for d.barscale so that a
'transparent' check box can be created. For anything with specifies 'none'
for a color in the same way, this check box will be created and parsed
correctly.

Michael

On 5/15/07 6:47 PM, "Hamish" <hamish_nospam@yahoo.com> wrote:

Michael Barton wrote:

Because the options dialog is autogenerated and fairly sophisticated
for wxgrass, it would be helpful if all commands that take "none" for
a color had an identical interface description.

You can assume that anything that takes RRR:GGG:BBB input should accept
"none" as well. (that may not do anything, but it should be a no-op and
not an error)

i.e. I may be wrong, but I think the ->gisprompt=GISPROMPT_COLOR Tcl GUI
can safely have a None button in it. Can you grey-out a color wheel?

things which are just taking a color name right now have to be
explicitly coded to accept "none", hopefully that will show up on the
->options pulldown list when available.

Hamish

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

Hamish wrote:

Moritz wrote:

How about a an option allowing you to display the computational
region as a box in the map display (cf QGIS) ?

Michael wrote:

Interesting idea. Though this would only be helpful for cases where
the computational region is smaller than the display region.

(I'm thinking about something like the lower-left QGIS guide window)

you could then "flip it" and make the display region drawn as say a blue
box inside the computational region. (computational region inside a
display region could be a red box). Maybe this is too nifty and asking
for confusion? Actually it would be ok if you could half-shade the
computational part in the guide-subwindow, so either a shaded box in the
middle or an unshaded box in the middle for the other mode. (visual-only
display area would be clear). A checkbox by the guide could turn that
effect on & off.

The latter one (shaded computational region and non-shaded rest of the
display) is an execellent idea.

Maciek

I made the properties dialogs non-modal again. So the apply buttons work
now. If a properties dialog is launched from the gis manager (i.e.,
associated with a map layer), it will be automatically closed if that layer
is deleted (including drag and drop).

Michael

On 5/13/07 3:57 AM, "Carlos "Guâno" Grohmann" <carlos.grohmann@gmail.com>
wrote:

Apply button - Why? when you ask for a new map (say raster), you get a
window for d.rast, where you choose the map, the you have three
options: "Cancel" "Apply" and "OK". The "Apply" does nothing. It will
put the map name on GIS Manager, but that's all. You can't keep d.rast
window open and draw the map on the display, you can't do nothing
until you hit the "OK" button. So way keep this "Apply" button?
"Cancel" and "OK" are all we need. (This "Apply" thing is way too much
MSWindows IMO).

I also couldn't change the raster map, with "Apply" or with "OK". I
have to add a new one.

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

OK, looking good.

a few things:

zoom to map still doesn't work for me. output msg:

GRASS 6.3.cvs (itarare_250k):~ > Traceback (most recent call last):
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
843, in ZoomToMap
    for item in dcmd.split(' '):
AttributeError: 'list' object has no attribute 'split'

still can't change a raster map by double-clicking in its name and
changing it to another raster in properties.

In g.region dialog, when you click Run, the dialog goes to the Output
tab, but there's no message, just the blank space, so maybe it could
stay in the tab I was?

Oh, the gui-rastanalyze.gif icon does not exists.

nice work!

Carlos

On 5/18/07, Michael Barton <michael.barton@asu.edu> wrote:

I made the properties dialogs non-modal again. So the apply buttons work
now. If a properties dialog is launched from the gis manager (i.e.,
associated with a map layer), it will be automatically closed if that layer
is deleted (including drag and drop).

Michael

On 5/13/07 3:57 AM, "Carlos "Guâno" Grohmann" <carlos.grohmann@gmail.com>
wrote:

>
> Apply button - Why? when you ask for a new map (say raster), you get a
> window for d.rast, where you choose the map, the you have three
> options: "Cancel" "Apply" and "OK". The "Apply" does nothing. It will
> put the map name on GIS Manager, but that's all. You can't keep d.rast
> window open and draw the map on the display, you can't do nothing
> until you hit the "OK" button. So way keep this "Apply" button?
> "Cancel" and "OK" are all we need. (This "Apply" thing is way too much
> MSWindows IMO).
>
> I also couldn't change the raster map, with "Apply" or with "OK". I
> have to add a new one.

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

Carlos,

Here are a couple solutions.

On 5/18/07 4:10 AM, "Carlos "Guâno" Grohmann" <carlos.grohmann@gmail.com>
wrote:

OK, looking good.

a few things:

zoom to map still doesn't work for me. output msg:

GRASS 6.3.cvs (itarare_250k):~ > Traceback (most recent call last):
  File "/usr/local/grass-6.3.cvs/etc/wx/gui_modules/mapdisp.py", line
843, in ZoomToMap
    for item in dcmd.split(' '):
AttributeError: 'list' object has no attribute 'split'

I just fixed this. Another casualty of the change in command syntax from
string to list. There will probably be yet more of these.

still can't change a raster map by double-clicking in its name and
changing it to another raster in properties.

Do you get any error messages?

In g.region dialog, when you click Run, the dialog goes to the Output
tab, but there's no message, just the blank space, so maybe it could
stay in the tab I was?

Does it work OK and just not say anything? g.region usually does not give
any output. Or does it not work?

Oh, the gui-rastanalyze.gif icon does not exists.

You need to update from the cvs. That is where the icons live.

Michael

nice work!

Thanks. I think we're getting there.
Have you tried out the new measure tool?

Michael

On 5/18/07, Michael Barton <michael.barton@asu.edu> wrote:

I made the properties dialogs non-modal again. So the apply buttons work
now. If a properties dialog is launched from the gis manager (i.e.,
associated with a map layer), it will be automatically closed if that layer
is deleted (including drag and drop).

Michael

On 5/13/07 3:57 AM, "Carlos "Guâno" Grohmann" <carlos.grohmann@gmail.com>
wrote:

Apply button - Why? when you ask for a new map (say raster), you get a
window for d.rast, where you choose the map, the you have three
options: "Cancel" "Apply" and "OK". The "Apply" does nothing. It will
put the map name on GIS Manager, but that's all. You can't keep d.rast
window open and draw the map on the display, you can't do nothing
until you hit the "OK" button. So way keep this "Apply" button?
"Cancel" and "OK" are all we need. (This "Apply" thing is way too much
MSWindows IMO).

I also couldn't change the raster map, with "Apply" or with "OK". I
have to add a new one.

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton