#2749: Integrate 'Change mapset' dialog in manager toolbar
---------------------------------------------+-------------------------
Reporter: mwortmann | Owner: grass-dev@…
Type: enhancement | Status: new
Priority: normal | Milestone: 7.1.0
Component: wxGUI | Version: unspecified
Keywords: mapset, toolbars, layer manager | CPU: Unspecified
Platform: Unspecified |
---------------------------------------------+-------------------------
Wouldn't the simple (Settings > GRASS working environment > ) Change
mapset dialog be a lot more useful in the Layer Manager toolbar? I'm not
sure how many people are actually using the dialog, but I'm sure most use
the commandline to do this simple change. I always thought typing
'g.mapset xyz' (plus maybe g.mapset -l) or going to the dialog, seems too
much for such a simple thing. The simple dropdown without the Ok button
would be quick and easy. Plus it could show the current mapset which is
somewhat missing in the Layer Manager.
Replying to [ticket:2749 mwortmann]:
> Wouldn't the simple (Settings > GRASS working environment > ) Change
mapset dialog be a lot more useful in the Layer Manager toolbar? I'm not
sure how many people are actually using the dialog, but I'm sure most use
the commandline to do this simple change. I
I use the dialog quite often when I don't remember the mapset names.
>always thought typing 'g.mapset xyz' (plus maybe g.mapset -l) or going to
the dialog, seems too much for such a simple thing. The simple dropdown
without the Ok button would be quick and easy. Plus it could show the
current mapset which is somewhat missing in the Layer Manager.
I mostly agree but I am not sure where to put it, there is already a lot
of things in the toolbar, so we would have to start a new row of toolbars?
Maybe the data catalog tab would be an option?
BTW, on Ubuntu, you can type Alt and then 'Change ...' and launch the
dialog in this way, too.
I had a little fiddle and copying the approach from the mapdisplay
toolbox, adding the following lines to the LMWorkspaceToolbar __init_
method gives you an impression how it would look like:
I havent found a working way to for the self.OnChangeMapset method though.
Regarding the size, I have two rows and neither of them is filled. Adding
the 150px select combo fills out the top row nicely. I'm running the g.gui
from a remote machine, so the Ubuntu shortcut doesnt work for me:$
Replying to [ticket:2749 mwortmann]:
> Wouldn't the simple (Settings > GRASS working environment > ) Change
mapset dialog be a lot more useful in the Layer Manager toolbar? I'm not
sure how many people are actually using the dialog, but I'm sure most use
the commandline to do this simple change. I
I use the dialog quite often when I don't remember the mapset names.
+1 I use it a lot as well
>always thought typing 'g.mapset xyz' (plus maybe g.mapset -l) or going to
the dialog, seems too much for such a simple thing. The simple dropdown
without the Ok button would be quick and easy. Plus it could show the
current mapset which is somewhat missing in the Layer Manager.
I mostly agree but I am not sure where to put it, there is already a lot
of things in the toolbar, so we would have to start a new row of toolbars?
Maybe the data catalog tab would be an option?
I think the number of buttons is fairly limited, one more wouldn't be a problem i.m.h.o. But a context menu when right clicking on a map set in the data catalog, with the option to change to that map set may even be better,
BTW, on Ubuntu, you can type Alt and then 'Change ...' and launch the
dialog in this way, too.
I totally forgot about that, thanks for the reminder
Now I see what you mean. These combos in the toolbars mostly work but in
general are best avoided, so I wouldn't add another one if not necessary.
The Mapset name is in the Map Display window title, although in a cryptic
way.
I agree that in the map display toolbox the combo box is a bit awkward,
but I think for a potentially long list of mapsets this would be the most
convenient way to change them. Putting a mapset changer a bit more
prominent into the gui would also help newbies come to terms with the
mapset idea and give them an incentive to use them. I know far too many
people starting with grass that just dump all their maps into PERMANENT.
Re displaying the current mapset: The Map Display title doesnt update when
you actually change the mapset, which makes it more confusing than helpful
sometimes. I tweak my commandline prompter in my .grass.bashrc two have a
constant reminder of where I am, which also updates. But there is nothing
like that in the gui.
> Re displaying the current mapset: The Map Display title doesnt update
when you actually change the mapset, which makes it more confusing than
helpful sometimes.
This is a clear bug or imperfection, please open another report for that.
You can add your suggestion of formatting as well, unless you thing that
the current one is ok.