[GRASS5] d.dm

Hi clickers,

d.dm is Display Manager (Tcl/Tk):
- create sets of maps and display/zoom/pan in selected monitor
- query selected map
- each monitor has its own region - current region is not changed
- (use: double click set name to rename, click the map name by right button
     to select from list, read mouse-over help for some buttons)

Send me your comments.

Radim
Praga, Bohemiae
  
----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Radim,

thank you very much for the display manager.
I like the concept and think that it could be expanded to a fully
functional "Map Manager" in GRASS.

I had some time ago the idea of a similar program, but no time to spent
on it. My idea was slightly different, i think one should use a
tree-like widget to display the items to display in one window (with the
Set as the root, no need to display more than one set at a time). The
window on the right could contain an entry widget with all the options
for the currently selected display item, one could develop a sort of
meta-description of the options (like the module files for tcltkgrass)
to generate this screen with the entry widgets. And the CELL driver
could be added so that it is possible to create a map on the xdriver and
write it later to a CELL file.

Some general hints on programming with tcl/tk:
tcl/tk has no elaborate data types and (until 8.1) no namespaces, so
that one should waste some time on variable names and composite
variables. It saves much typing if you use only one associative array
for global state variables, e. g. $init(option). I must admit that i am
not very familiar with tcl/tk until now and still learn myself.

I am not shure if it is wise to check in the tcl/tk-script file with
executable permissions and only copy it over to the script dir with
Gmakefile commands. If you check in the script in the script directory
(src/script/contrib) the file will be copied over to the correct
directory and permissions will be set automatically. Or you could look
into the Gmakefile for the scripts directories and adapt the system used
there. On recompiling beta8 yesterday d.dm was not automatically
created, the script was available after i manually executed gmake5 in
the directory.

all the best,

yours,

Andreas

Radim Blazek wrote:

Hi clickers,

d.dm is Display Manager (Tcl/Tk):
- create sets of maps and display/zoom/pan in selected monitor
- query selected map
- each monitor has its own region - current region is not changed
- (use: double click set name to rename, click the map name by right button
     to select from list, read mouse-over help for some buttons)

Send me your comments.

Radim
Praga, Bohemiae

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

--
Andreas Lange, 65187 Wiesbaden, Germany, Tel. +49 611 807850
Andreas.Lange@Rhein-Main.de - A.C.Lange@GMX.net

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Thank you for comments.

Andreas Lange wrote:

Hi Radim,

thank you very much for the display manager.
I like the concept and think that it could be expanded to a fully
functional "Map Manager" in GRASS.

I had some time ago the idea of a similar program, but no time to spent
on it. My idea was slightly different, i think one should use a
tree-like widget to display the items to display in one window (with the
Set as the root, no need to display more than one set at a time). The
window on the right could contain an entry widget with all the options
for the currently selected display item,

I will think about tree+entry (d.dm window displays also something
like legend (color(s), icon,..) and so tree should contain these items.
Changing color would require 3 clicks instead of 2)

one could develop a sort of
meta-description of the options (like the module files for tcltkgrass)
to generate this screen with the entry widgets.

I decided not to use meta-description because only few types of maps
exist (raster,area,line,site,dbsite,label) but with very different entries.
(I want add for example option for vector categories: all,
category, postgres, dbmi and change entry fields dynamicaly according to
selected type)

And the CELL driver
could be added so that it is possible to create a map on the xdriver and
write it later to a CELL file.

Yes I'll add CELL driver. I want also add Plot (ps.map).

Some general hints on programming with tcl/tk:
tcl/tk has no elaborate data types and (until 8.1) no namespaces, so
that one should waste some time on variable names and composite
variables. It saves much typing if you use only one associative array
for global state variables, e. g. $init(option). I must admit that i am
not very familiar with tcl/tk until now and still learn myself.

I am not shure if it is wise to check in the tcl/tk-script file with
executable permissions and only copy it over to the script dir with
Gmakefile commands. If you check in the script in the script directory
(src/script/contrib) the file will be copied over to the correct
directory and permissions will be set automatically. Or you could look
into the Gmakefile for the scripts directories and adapt the system used
there.

Yes I'll add chmod to Gmakefile

On recompiling beta8 yesterday d.dm was not automatically
created, the script was available after i manually executed gmake5 in
the directory.

d.dm is not in list yet, I'll add soon.

Radim

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Hi Radim

On Jul 17, 9:37am, Radim Blazek wrote:

Subject: Re: [GRASS5] d.dm
> thank you very much for the display manager.
> I like the concept and think that it could be expanded to a fully
> functional "Map Manager" in GRASS.
>
> I had some time ago the idea of a similar program, but no time to spent
> on it. My idea was slightly different, i think one should use a
> tree-like widget to display the items to display in one window (with the
> Set as the root, no need to display more than one set at a time). The
> window on the right could contain an entry widget with all the options
> for the currently selected display item,

I will think about tree+entry (d.dm window displays also something
like legend (color(s), icon,..) and so tree should contain these items.
Changing color would require 3 clicks instead of 2)

If you are interested in creating a tree widget, then you should look into the
$GISBASE/bwidget Tcl/Tk library. It includes functions to create a tree widget
and may be useful to you. I haven't used the tree widget myself, but I am using
other bwidget features for the Tcl/Tk version of v.digit, as well as the new
initialization routines. There are README files in the bwidget directory that
inform you how to use bwidget with GRASS as well as how to run the demo scripts
and find the html man pages.

I'm sorry I did not have time to try your code, and this suggestion could be
totally off-base. I just thought this may be useful to you.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

Justin Hickey wrote:

Hi Radim

On Jul 17, 9:37am, Radim Blazek wrote:
> Subject: Re: [GRASS5] d.dm
> > thank you very much for the display manager.
> > I like the concept and think that it could be expanded to a fully
> > functional "Map Manager" in GRASS.
> >
> > I had some time ago the idea of a similar program, but no time to spent
> > on it. My idea was slightly different, i think one should use a
> > tree-like widget to display the items to display in one window (with the
> > Set as the root, no need to display more than one set at a time). The
> > window on the right could contain an entry widget with all the options
> > for the currently selected display item,
>
> I will think about tree+entry (d.dm window displays also something
> like legend (color(s), icon,..) and so tree should contain these items.
> Changing color would require 3 clicks instead of 2)

If you are interested in creating a tree widget, then you should look into the
$GISBASE/bwidget Tcl/Tk library. It includes functions to create a tree widget
and may be useful to you. I haven't used the tree widget myself, but I am using
other bwidget features for the Tcl/Tk version of v.digit, as well as the new
initialization routines. There are README files in the bwidget directory that
inform you how to use bwidget with GRASS as well as how to run the demo scripts
and find the html man pages.

I'm sorry I did not have time to try your code, and this suggestion could be
totally off-base. I just thought this may be useful to you.

Almost everything in d.dm is based on BWidget.
Thank you for commiting BWidget into GRASS source.

Radim

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'

On Jul 19, 12:22pm, Radim Blazek wrote:

> I'm sorry I did not have time to try your code, and this suggestion could

be

> totally off-base. I just thought this may be useful to you.

Almost everything in d.dm is based on BWidget.
Thank you for commiting BWidget into GRASS source.

Ahh. OK, I guess it was somewhat off-base :). That's what happens when you come
back from holidays and don't take time to update the code and look into new
things! Sorry.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

----------------------------------------
If you want to unsubscribe from GRASS Development Team mailing list write to:
minordomo@geog.uni-hannover.de with
subject 'unsubscribe grass5'